PureFORM 1.99 (yet another FORM designer)

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

Moderator: gnozal

Molchyn
User
User
Posts: 42
Joined: Thu Jan 29, 2004 12:54 am

Post by Molchyn »

gnozal
one more thing
After creating Spingadget and frame3dgadget, then you start move frame3d it's "glued" to spingadget (if you create frame3d inside spingadget).

Code: Select all

;{[PureFORM Project]
;PureFORM_Project_Begin
;Project¶spingadget
;Window¶1¶#Window_0¶13500416¶#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar¶#Window_0¶447¶134¶400¶400¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶¶
;SpinGadget¶14¶#SpinGadget_13¶1¶-1¶-1¶0¶0¶23¶0¶0¶¶Gadget_13¶¶-1¶0¶0¶100¶0¶100¶0¶0¶0¶85¶150¶255¶215¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;Frame3DGadget¶15¶#Frame3DGadget_14¶1¶14¶23¶0¶0¶11¶0¶0¶¶Gadget_14¶¶-1¶0¶¶¶0¶0¶0¶0¶0¶100¶5¶180¶55¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;PureFORM_Project_End
;}
same effect if you add inside:
progressbar -> editor gadget
hyperlink -> editor gadget
text gadget -> editor gadget
text gadget -> webgadget
etc..
Then you create them, they jump out, but then you start to move them, they "glued" to gadget inside witch they was created.
:roll:
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Molchyn wrote:gnozal
one more thing
After creating Spingadget and frame3dgadget, then you start move frame3d it's "glued" to spingadget (if you create frame3d inside spingadget)....
Hum, creating a Frame3D inside a spingadget doesn't make sense to me, neither a progressbar in an editor gadget :shock:
It only makes sense to me to create gadgets inside container gadgets like Panel/Container/ScrollAreaGadgets.
But you are right, I did not test those invalid attempts to create a gadget.
I have modified (download updated) PureFORM so that you can't create gadgets with an invalid parent gadget.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Yogi Yang
Enthusiast
Enthusiast
Posts: 107
Joined: Sun Dec 11, 2005 2:19 pm

Post by Yogi Yang »

PureForm is really superb!

gnozal, when are you integrating it with jaPBe as plugin?

Thanks for creating such a grand product and keeping it free. :)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Yogi Yang wrote:PureForm is really superb!

gnozal, when are you integrating it with jaPBe as plugin?

Thanks for creating such a grand product and keeping it free. :)
Thanks.
jaPBe plugin functions are on the todo list...
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Molchyn
User
User
Posts: 42
Joined: Thu Jan 29, 2004 12:54 am

Post by Molchyn »

gnozal
Then I try to customize in Gadget properties Enumeration, by my own and copy text from anover Gadget Enum,
it's don't give put a copy of previous Enum for small changing like #SG_blablaX on #SG_blablaY.
May be better if you check Enum name after loseafocus or enter?

And some bug with splittergadget and panelgadget,
If you first create on form panelgadget , after that add other gadget and
add splitter between them - it's create wrong code:

Code: Select all

;{[PureFORM Project]
;PureFORM_Project_Begin
;Project¶PureFORM_Clipboard2
;Window¶1¶#Window_0¶13500416¶#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar¶#Window_0¶668¶467¶400¶400¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶¶
;PanelGadget¶1¶#PanelGadget_0¶1¶-1¶-1¶0¶0¶19¶0¶0¶¶¶¶-1¶3¶¶¶0¶0¶1¶1¶2¶5¶10¶200¶380¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶Tab #1¶0¶¶0¶0
;EditorGadget¶2¶#EditorGadget_1¶1¶-1¶-1¶0¶0¶7¶0¶0¶¶Gadget_1¶¶3¶3¶¶¶0¶0¶0¶0¶0¶205¶5¶185¶380¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;SplitterGadget¶3¶#SplitterGadget_2¶1¶-1¶-1¶0¶0¶24¶197¶3¶#PB_Splitter_Separator|#PB_Splitter_Vertical¶Gadget_2¶¶2¶0¶#PanelGadget_0¶#EditorGadget_1¶1¶2¶0¶0¶0¶0¶0¶395¶395¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶0¶0¶¶0¶¶0¶0
;Window¶2¶#Window_1¶13500416¶#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar¶#Window_1¶253¶471¶400¶400¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶¶
;PanelGadget¶4¶#PanelGadget_3¶2¶-1¶-1¶0¶0¶19¶0¶0¶¶¶¶-1¶6¶¶¶0¶0¶1¶1¶2¶0¶5¶185¶370¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶Tab #1¶0¶¶0¶0
;TreeGadget¶5¶#TreeGadget_4¶2¶-1¶-1¶0¶0¶28¶0¶32¶#PB_Tree_AlwaysShowSelection¶¶¶6¶6¶¶¶0¶0¶0¶0¶0¶205¶5¶170¶375¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;SplitterGadget¶6¶#SplitterGadget_5¶2¶-1¶-1¶0¶0¶24¶199¶3¶#PB_Splitter_Separator|#PB_Splitter_Vertical¶Gadget_5¶¶5¶0¶#PanelGadget_3¶#TreeGadget_4¶4¶5¶0¶0¶0¶0¶0¶395¶390¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶0¶0¶¶0¶¶0¶0
;Window¶3¶#Window_2¶13500416¶#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar¶#Window_2¶253¶467¶400¶400¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶¶
;EditorGadget¶7¶#EditorGadget_6¶3¶-1¶-1¶0¶0¶7¶0¶0¶¶Gadget_6¶¶-1¶9¶¶¶0¶0¶0¶0¶0¶10¶15¶185¶365¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;TreeGadget¶8¶#TreeGadget_7¶3¶-1¶-1¶0¶0¶28¶0¶32¶#PB_Tree_AlwaysShowSelection¶¶¶9¶9¶¶¶0¶0¶0¶0¶0¶215¶10¶165¶365¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;SplitterGadget¶9¶#SplitterGadget_8¶3¶-1¶-1¶0¶0¶24¶196¶3¶#PB_Splitter_Separator|#PB_Splitter_Vertical¶Gadget_8¶¶8¶0¶#EditorGadget_6¶#TreeGadget_7¶7¶8¶0¶0¶0¶0¶0¶390¶390¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶0¶0¶¶0¶¶0¶0
;Window¶4¶#Window_3¶13500416¶#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar¶#Window_3¶253¶467¶400¶400¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶¶
;TreeGadget¶10¶#TreeGadget_9¶4¶-1¶-1¶0¶0¶28¶0¶32¶#PB_Tree_AlwaysShowSelection¶¶¶-1¶12¶¶¶0¶0¶0¶0¶0¶15¶10¶180¶370¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;PanelGadget¶11¶#PanelGadget_10¶4¶-1¶-1¶0¶0¶19¶0¶0¶¶¶¶12¶12¶¶¶0¶0¶1¶1¶2¶215¶10¶170¶360¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶Tab #1¶0¶¶0¶0
;SplitterGadget¶12¶#SplitterGadget_11¶4¶-1¶-1¶0¶0¶24¶197¶3¶#PB_Splitter_Separator|#PB_Splitter_Vertical¶Gadget_11¶¶11¶0¶#TreeGadget_9¶#PanelGadget_10¶10¶11¶0¶0¶0¶0¶0¶390¶395¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶0¶0¶¶0¶¶0¶0
;PureFORM_Project_End
;}
if you add first other gadget and after that panelgadget work fine.
difference - need to swap
CloseGadgetList() and SplitterGadget
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Very nice program. Great work gnozal :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Molchyn wrote:gnozal
And some bug with splittergadget and panelgadget,
If you first create on form panelgadget , after that add other gadget and
add splitter between them - it's create wrong code
Should be fixed.
Download updated
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

Just a quick question, maybe I missed this...
After I have generated the code, and I have added some of my own code, do I have to write it again if I need to edit the source with the designer?
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

GeoTrail wrote:Just a quick question, maybe I missed this...
After I have generated the code, and I have added some of my own code, do I have to write it again if I need to edit the source with the designer?
I don't understand exactly what you mean.
- PureFORM does not update your code (yet?). You have to paste the generated code manually.
- If you mean the 'Translate from source' function, it's only a basic translation to get a FORM from a PB source.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
GeoTrail
Addict
Addict
Posts: 2794
Joined: Fri Feb 13, 2004 12:45 am
Location: Bergen, Norway
Contact:

Post by GeoTrail »

gnozal wrote:PureFORM does not update your code (yet?). You have to paste the generated code manually.
Ok, that's what I ment :)
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

How about adding the position of gadget.
Bring to Front
Bring to Back

:D
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

JCV wrote:How about adding the position of gadget.
Bring to Front
Bring to Back
Sorry, I don't understand what you mean with the gadget position front/back.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

We find it in any RAD application.
Right click control and you can select to move to front/back or toppest control . Its like deciding which control should be created first or last.

Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

JCV wrote:We find it in any RAD application.
I guess I don't have any RAD application then. My only reference is VD, can't find it here.
JCV wrote:Right click control and you can select to move to front/back or toppest control .
Why would this be needed ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

Example if you want to place a control above a control.
Its like deciding which control must be created first.
The popup menu isnt really needed, additional move up/down in gadget list is ok.
The toppest control on the list will be created first until the last listed control.
Post Reply