PureFORM 1.99 (yet another FORM designer)

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

Moderator: gnozal

srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: PureFORM 1.99 (yet another FORM designer)

Post by srod »

Thanks for the quick fix. 8)
I may look like a mule, but I'm not a complete ass.
PbFan
New User
New User
Posts: 1
Joined: Sun Jun 18, 2006 10:01 am

Re: PureFORM 1.99 (yet another FORM designer)

Post by PbFan »

Hi gnozal,

PureForm is super...!!!

But i found the following:
I put a checkbox in a form and give her the option disabled. In the preview of the form the checkbox is also shown as disabled. Only in the code it is not implemented.

Greetings PbFan
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: PureFORM 1.99 (yet another FORM designer)

Post by cas »

Found bug in creating gadget code:
1. Open PureFORM
2. Create PanelGadget on top
3. Add two EditorGadgets to bottom (or any other two gadgets)
4. Add SplitterGadget to EditorGadgets
It generates this code:

Code: Select all

Procedure OpenWindow_Window_0()
  If OpenWindow(#Window_0, 22, 20, 400, 378, "Window_0", #PB_Window_SystemMenu|#PB_Window_TitleBar)
    If CreateGadgetList(WindowID(#Window_0))
      EditorGadget(#Editor_1, 20, 155, 135, 195)
      EditorGadget(#Editor_2, 175, 155, 190, 195)
      PanelGadget(#Panel_0, 10, 15, 360, 115)
        ; Tab #1
        AddGadgetItem(#Panel_0, -1, "Tab #1")
        SplitterGadget(#Splitter_3, 10, 140, 375, 230, #Editor_1, #Editor_2, #PB_Splitter_Separator)
      CloseGadgetList()
      SetGadgetState(#Splitter_3, 117)
    EndIf
  EndIf
EndProcedure
Line with "SplitterGadget(#Splitter_3 ... " should be after CloseGadgetList() because it is not in panel.
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 »

PbFan wrote:But i found the following:
I put a checkbox in a form and give her the option disabled. In the preview of the form the checkbox is also shown as disabled. Only in the code it is not implemented.
Hi,
As explained in the help file, you can hide and/or disable a gadget in a form. This can be handy if you have several layers of gadgets.
The hidden or disabled state is not translated during code generation.
You may add some code using the code infusion feature though.
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 »

cas wrote:Found bug in creating gadget code:
1. Open PureFORM
2. Create PanelGadget on top
3. Add two EditorGadgets to bottom (or any other two gadgets)
4. Add SplitterGadget to EditorGadgets
...
Line with "SplitterGadget(#Splitter_3 ... " should be after CloseGadgetList() because it is not in panel.
Confirmed, thanks.
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 388)

Changes :
- fixed splitter code generation issue (posted by cas)
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,

today I figured out, PureForm does not support the #PB_Ignore parameter of the AddStatusBarField() command.
#PB_Ignore let adjust the size of a statusbarfield automatically depending on the window size.

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 »

Update (build 389)

Changes :
- added #PB_Ignore support for field width in statusbar builder.
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! Thank you, Gnozal! Image
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!"
Klonk
Enthusiast
Enthusiast
Posts: 173
Joined: Tue Jul 13, 2004 2:17 pm

Re: PureFORM 1.99 (yet another FORM designer)

Post by Klonk »

Gnozal,

found a small bug:
When importing a new project from source (translate from source) already existing tooltips are discarded/ignored.

Don'T know whether it is intended this way. Simply would be nice to keep them.
Bye Karl
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 »

Klonk wrote:When importing a new project from source (translate from source) already existing tooltips are discarded/ignored.
Don'T know whether it is intended this way. Simply would be nice to keep them.
Hi Klonk,
the 'Translate from source' feature is incomplete, it only imports windows and gadgets (missing : statusbar / menu / tooltips / etc...) .
It may be improved, but it will never be perfect, as PureFORM handles some data it's own way.
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 »

Aloah Gnozal, :)

not really a bug, but I think you could point out this in your PureFORM documentation:

If you work with splitters together with PureResize, then it is important to activate PureResize ONLY for the splittergadget and NOT for the gadgets within the splitter.

If one activate PureResize for both parts it will result in a wired behaviour in the resulting exe - see this XVid screenvideo
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:... not really a bug, but I think you could point out this in your PureFORM documentation ...
Thank you, help file updated.
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,

I found another strange issue in connection with a container gadget:

After changing the properties of a container gadget (see 1), the "active entry marker" of the gadget list (Integrator) jumps immediately one row up to the line "Splittergadget". Immediately means: You can not even see the new checkbox state before it switch to the other gadget.

This happens each time you change a property of the container gadget.

Image
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 found another strange issue in connection with a container gadget:
After changing the properties of a container gadget (see 1), the "active entry marker" of the gadget list (Integrator) jumps immediately one row up to the line "Splittergadget". Immediately means: You can not even see the new checkbox state before it switch to the other gadget...
Thanks.
Should be fixed in build 391.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply