PureFORM 1.99 (yet another FORM designer)

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by Kurzer »

Thank you for the fast fix, Gnozal.

But hey, what the hell PureFORM is doing when the user change the state of one of the containergadget checkboxes? :lol:

The complete gadget list will be redrawn, all gadgets within the container will be erased and redrawn two times (it looks like they first will be redrawn outside of of the containergadget and immediately after this they will be redrawn at the correct position within the container gadget).
It's a wild flickering gadget orgy... :lol: But no matter... it's just funny to look at. At the end all looks fine. :wink:
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

kurzer wrote:Thank you for the fast fix, Gnozal.
But hey, what the hell PureFORM is doing when the user change the state of one of the containergadget checkboxes? :lol:
The complete gadget list will be redrawn, all gadgets within the container will be erased ...
Yes, all the gadets (splitter, splitter childs, container childs etc...) are erased and recreated with the new style(s) / flag(s).
Only once, but with a splitter first the gadgets are drawn and then the splitter.

I have uploaded build 392 which should flicker a lot less in this situation.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by Kurzer »

Gnozal, that was not a bug report. :shock:
But nonetheless many thanks for improving this. :wink:
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by Kurzer »

Sorry for posting twice.

Gnozal, is there a way to format the text of a menuitem via TAB [chr(9)] like in the Example code of the PB help?

Code: Select all

        MenuItem(1, "Open"   +Chr(9)+"Ctrl+O")
        MenuItem(2, "Save"   +Chr(9)+"Ctrl+S")
        MenuItem(3, "Save as"+Chr(9)+"Ctrl+A")
        MenuItem(4, "Close"  +Chr(9)+"Ctrl+C")
It sems, it is not possible in the PureForm Menueditor, because each time I press the TAB key within the menu text-field the cursor jumps out of the edit field. This is of course a normal behaviour of a windows GUI, but bad to enter the TAB character as part of the menu title.
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

kurzer wrote:Gnozal, is there a way to format the text of a menuitem via TAB [chr(9)] like in the Example code of the PB help?
Yes.
In the menu builder, the escape characters \t [TAB] and \q ["] are supported for the menu item text.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by Kurzer »

Ahhrg, I should more often read manuals. :oops:
Thank you.
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by Kurzer »

This week is obviously "PureFORM issue week" :lol:

In my current project I connected two gadgets via splittergadget. All went okay.
Now I added another splitter gadget to connect two other gadgets.

But this time PureForm generates the PB code lines in the wrong order.
It generate:
1) First gadget
2) Splittergadget
3) Second gadget

Now I get an "Gadget is not initialized" error when the project compiles.
The errrormessage is correct, because at position 2) the referencing gadget No. 3 does not exists.

How can I solve this problem within PureForm?

Image

Btw: I had a look into the help manual this time :lol: ... but didnt found any helpful informations concerning this issue.
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

kurzer wrote:...
In my current project I connected two gadgets via splittergadget. All went okay.
Now I added another splitter gadget to connect two other gadgets.
But this time PureForm generates the PB code lines in the wrong order.
It generate:
1) First gadget
2) Splittergadget
3) Second gadget
Now I get an "Gadget is not initialized" error when the project compiles.
The errrormessage is correct, because at position 2) the referencing gadget No. 3 does not exists.
How can I solve this problem within PureForm?
Damn splitters...
I can't reproduce this.
However I see on your picture that I forgot to remove a debug comment : this is a hint ... maybe it found the issue.
I have uploaded build 393 (I hope it doesn't break something else) : could you test it ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by Kurzer »

Hello Gnozal,
you have got mail. ;)

Removing and re-creating the splitter doesn't changed anything.

Edit: Oh, I see you worked already on this issue and edit your post.
Okay, I test the new version now, Mr. "faster than light". :lol:

Edit2: You'r my hero! All works very fine now.
The splitterentry is now at the end of the gadget list.

Maybe some day I can buy you a really big drink. ;)

Code: Select all

   [...]
    Window_Main_Text_LastWatchdogLineModule = TextGadget(#PB_Any, 540, 390, 150, 15, "Watchdog l. Eingriff bei:")
    Window_Main_Container_ModuleProgram = ContainerGadget(#PB_Any, 220, 0, 240, 280, #PB_Container_BorderLess)
      Window_Main_String_ModuleProgramHeader = StringGadget(#PB_Any, 5, 0, 160, 15, "Cmd   Li.Mod IO = Wert", #PB_String_BorderLess|#PB_String_ReadOnly)
      Window_Main_Editor_ModuleProgram = EditorGadget(#PB_Any, 0, 18, 240, 240)
      Window_Main_String_ModuleProgramFooter = StringGadget(#PB_Any, 0, 260, 240, 20, "", #PB_String_ReadOnly)
    CloseGadgetList()
    Window_Main_Splitter_LinesTree = SplitterGadget(#PB_Any, 15, 60, 460, 280, Window_Main_Tree_LinesAndModules, Window_Main_Container_ModuleProgram, #PB_Splitter_FirstFixed|#PB_Splitter_Vertical)
    Window_Main_Splitter_Registers = SplitterGadget(#PB_Any, 480, 215, 210, 125, Window_Main_ListView_Registers, Window_Main_Text_RegisterComment, #PB_Splitter_FirstFixed)
    SetGadgetAttribute(Window_Main_Splitter_LinesTree, #PB_Splitter_FirstMinimumSize, 120)
    SetGadgetAttribute(Window_Main_Splitter_LinesTree, #PB_Splitter_SecondMinimumSize, 175)
    SetGadgetState(Window_Main_Splitter_LinesTree, 215)
    SetGadgetAttribute(Window_Main_Splitter_Registers, #PB_Splitter_FirstMinimumSize, 45)
    SetGadgetAttribute(Window_Main_Splitter_Registers, #PB_Splitter_SecondMinimumSize, 20)
    SetGadgetState(Window_Main_Splitter_Registers, 100)
    PureRESIZE_SetGadgetResize(Window_Main_Frame3D_ProgramManager, 1, 1, 1, 1)
    PureRESIZE_SetGadgetResize(Window_Main_Text_Lines, 1, 1, 0, 0)
    PureRESIZE_SetGadgetResize(Window_Main_Text_ModuleProgram, 1, 1, 0, 0)
   [...]
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by Kurzer »

Again posting twice. Sorry for that.

Not a bug this time, but a suggestion.

PureForm does not provide all possible (M$ Windows-)style constants for gadgets (in my current case it is the #ES_AUTOVSCROLL constant for a string gadget).
So what about a additional field within the properties area of PureFORM, where User can enter additional own Style constants (flags) for the gadgets?

Kind regards,
Kurzer (your pain in the neck :wink: )
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

kurzer wrote:... PureForm does not provide all possible (M$ Windows-)style constants for gadgets (in my current case it is the #ES_AUTOVSCROLL constant for a string gadget).
So what about a additional field within the properties area of PureFORM, where User can enter additional own Style constants (flags) for the gadgets?
Could you try the new build ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

Update (build 344)

Changes :
- You may define custom gadget flags by creating a PureFORM.Flags file.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by Kurzer »

Great solution! :shock:
Will try it as soon as I'm at home.

One other question, Gnozal - maybe you can help me:
I want to move some existing gadgets into a new container gadget. If I use PureForm for this task, I have to recreate the gadgets, so I want to alter the concerning entries in the *.pbf file via notepad++.

Please can you tell me which fields I have to change on a gadget-record, to move the gadgets later into a container?
As far as I see I have to change the second parameter, which seems to be a pointer to a parent gadget (normaly -1), but changing only this entry does not work for me.

Are there another fields I have to fit?

Thanks.

Kind regards, Kurzer
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

kurzer wrote:I want to move some existing gadgets into a new container gadget. If I use PureForm for this task, I have to recreate the gadgets, so I want to alter the concerning entries in the *.pbf file via notepad++.
You could select the gadgets (gadget group functions) and paste them in the new container. Should work.
1. Select gadgets to be moved (mouse or CTRL + left-click)
2. Right-click on one selected gadget in the group : save group to temp group
3. Right-click on container (where you want to place the gadgets) : move gadget group [Mouse pos] -> temp group
kurzer wrote:Please can you tell me which fields I have to change on a gadget-record, to move the gadgets later into a container?As far as I see I have to change the second parameter, which seems to be a pointer to a parent gadget (normaly -1), but changing only this entry does not work for me.
You are right, it's the parent gadget number.
But it's a bit more complicated : after the parent gadget number, you have the ParentGadgetClass (5 for container, see previous post for the ID's). After that, ParentGadgetHasTabs and ParentGadgetTabNumber. Etc...!
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: PureFORM 1.99 (yet another FORM designer)

Post by Kurzer »

Sorry Gnozal, I haven't tested this new feature yet.

At first I have to solve some problems which happens when I rearrange gadgets in my current project.
Maybe the next days you'll get a screenvideo from me wich show the difficulties.

But probably I am only to stupid to work smooth with PureForm. :lol:
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2024: 56y
"Happiness is a pet." | "Never run a changing system!"
Post Reply