PureFORM 1.99 (yet another FORM designer)

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

Moderator: gnozal

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

Post by gnozal »

Update

Changes :
- beta 46 : fixed splitter element rename bug (see post above)
- beta 47 : fixed gadget group spingadgets not initialized after 'Reset' button pressed

Thanks for the feedback.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

pff, tis nothing compared to my Vizuil Dizzigner!


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

Post by gnozal »

dracflamloc wrote:pff, tis nothing compared to my Vizuil Dizzigner!

:lol:
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
ok about freezing try to choose in Gadget list Container Gadget or ExplorerTreegadget or PanelGadget_4

Code: Select all

PureFORM_Project_Begin
Project¶errr
Window¶1¶#Window_0¶13500416¶#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar¶#Window_0¶520¶181¶640¶480¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶
ContainerGadget¶1¶#ContainerGadget_0¶1¶-1¶-1¶0¶0¶5¶0¶2¶#PB_Container_Raised¶¶¶-1¶3¶¶¶0¶0¶1¶0¶0¶0¶0¶640¶235¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
ContainerGadget¶2¶#ContainerGadget_1¶1¶-1¶-1¶0¶0¶5¶0¶2¶#PB_Container_Raised¶¶¶3¶3¶¶¶0¶0¶1¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
SplitterGadget¶3¶#SplitterGadget_2¶1¶-1¶-1¶0¶0¶24¶236¶2¶#PB_Splitter_Separator¶Gadget_2¶¶2¶0¶#ContainerGadget_0¶#ContainerGadget_1¶1¶2¶0¶0¶0¶0¶0¶640¶480¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶0¶0¶¶0¶¶0¶0
ButtonGadget¶4¶#ButtonGadget_3¶1¶2¶5¶0¶0¶0¶0¶0¶¶Gadget_3¶¶-1¶0¶¶¶0¶0¶0¶0¶0¶4¶5¶40¶25¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
PanelGadget¶5¶#PanelGadget_4¶1¶2¶5¶4¶0¶19¶0¶0¶¶¶¶-1¶7¶¶¶0¶0¶1¶1¶5¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶Tab #1·Tab #2·Tab #3·Tab #4¶0¶¶0¶0
ExplorerTreeGadget¶6¶#ExplorerTreeGadget_5¶1¶2¶5¶0¶0¶10¶0¶0¶¶Gadget_5¶¶7¶7¶c:\¶¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
SplitterGadget¶7¶#SplitterGadget_6¶1¶2¶5¶0¶0¶24¶293¶3¶#PB_Splitter_Separator|#PB_Splitter_Vertical¶Gadget_6¶¶6¶0¶#PanelGadget_4¶#ExplorerTreeGadget_5¶5¶6¶0¶0¶0¶45¶0¶585¶225¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶0¶0¶¶0¶¶0¶0
WebGadget¶8¶#WebGadget_7¶1¶1¶5¶0¶0¶29¶0¶0¶¶about:WebGadget_7¶¶-1¶0¶¶¶0¶0¶0¶0¶0¶5¶5¶380¶215¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
PanelGadget¶9¶#PanelGadget_8¶1¶1¶5¶0¶0¶19¶0¶0¶¶¶¶-1¶0¶¶¶0¶0¶1¶1¶2¶390¶0¶235¶215¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶Tab #1¶0¶¶0¶0
PureFORM_Project_End
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
ok about freezing try to choose in Gadget list Container Gadget or ExplorerTreegadget or PanelGadget_4
Ok, I see what you mean : you can't select a splitter element, only the splitter itself. It's a feature : without it, you could not move or resize the splitter : when you click on a splitter element, the splitter itself is selected and not the element.
But I agree it's not usefull if you click on the list. I will change this.
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:

Post by gnozal »

Update

Changes :
- some fixes
- fixed : cosmetic bug ; the mouse cursor shape now changes correctly if a window is resizable
- added : some keyboard shortcuts (see menus)
- added : generated code option ; #PB_Any for Gadgets/Windows
- changed : you can now select a splitter element in the gadget list
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

THX gnozal for the next nice and fast update.


Nico
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

@gnozal

any way to delet only a gadget inside a splitter and not the splitter?
it is not so nice if i have a splitter wiht a lot of gadgets inside and now i want only delet one of this gadgets, i must delet the splitter with all the gadgets inside.

Can you chang this?
a idea is that you safe alle the gadgets for a splitter at the developer time in a list and so we can delet or change the gadgets inside the splitter.

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

Post by gnozal »

nicolaus wrote:@gnozal

any way to delet only a gadget inside a splitter and not the splitter?
?!
You can delete any gadget in a splitter but not the splitter elements.
Example form (splitter between two containers with buttons) :

Code: Select all

;{[PureFORM Project]
;PureFORM_Project_Begin
;Project¶MyProject
;Window¶1¶#Window_0¶13500416¶#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget|#PB_Window_TitleBar¶#Window_0¶450¶200¶400¶400¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶
;ContainerGadget¶1¶#ContainerGadget_Element1¶1¶-1¶-1¶0¶0¶5¶0¶2¶#PB_Container_Raised¶¶¶-1¶3¶¶¶0¶0¶1¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;ContainerGadget¶2¶#ContainerGadget_Element2¶1¶-1¶-1¶0¶0¶5¶0¶2¶#PB_Container_Raised¶¶¶3¶3¶¶¶0¶0¶1¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;SplitterGadget¶3¶#SplitterGadget_2¶1¶-1¶-1¶0¶0¶24¶167¶2¶#PB_Splitter_Separator¶Gadget_2¶¶2¶0¶#ContainerGadget_Element1¶#ContainerGadget_Element2¶1¶2¶0¶0¶0¶20¶20¶350¶335¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶0¶0¶¶0¶¶0¶0
;ButtonGadget¶4¶#ButtonGadget_GadgetInSplitter1¶1¶1¶5¶0¶0¶0¶0¶0¶¶1¶¶-1¶0¶¶¶0¶0¶0¶0¶0¶65¶25¶135¶25¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;ButtonGadget¶5¶#ButtonGadget_GadgetInSplitter2¶1¶1¶5¶0¶0¶0¶0¶0¶¶2¶¶-1¶0¶¶¶0¶0¶0¶0¶0¶85¶80¶140¶35¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;ButtonGadget¶6¶#ButtonGadget_GadgetInSplitter3¶1¶2¶5¶0¶0¶0¶0¶0¶¶3¶¶-1¶0¶¶¶0¶0¶0¶0¶0¶90¶50¶165¶30¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;PureFORM_Project_End
;}
You can delete the buttons 1, 2 and 3 (gadgets in splitter) but not the containers (splitter elements).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

hehe....
Ok but i want delet one of the container´s and add a new gadget at this place.
Wat do you think about my idea e.g. at develop time you save the gadgets of a splitter (i your example one of the containres) in a list (LinkedList or so), and so we can at the devolop time in PureFORM every time change and or delet one of the gadget parts from a Splitter.

i want make you an example and found one more bug ;)
Here is an example, you have momently 4 gadgets, Splittergadget with 2 Treegadgets inside and a Scrollarea gadget.
Now i want add one more splittergadget to add the first splittergadget into the new and also the scrollareagadget, but if i want add the splittergadget alltimes is see a errormessage like "You need at least two gadgets...." but i have two gadgets (the first splitter and the scrollareagadget).

here the example so you can test to add a aplitter for the splitter and the scrollareagadget.

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¶156¶149¶683¶400¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶
;TreeGadget¶1¶#TreeGadget_0¶1¶-1¶-1¶0¶0¶28¶0¶32¶#PB_Tree_AlwaysShowSelection¶¶¶-1¶3¶¶¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;TreeGadget¶2¶#TreeGadget_1¶1¶-1¶-1¶0¶0¶28¶0¶32¶#PB_Tree_AlwaysShowSelection¶¶¶3¶3¶¶¶0¶0¶0¶0¶0¶0¶5¶190¶290¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;SplitterGadget¶3¶#SplitterGadget_2¶1¶2¶28¶0¶0¶24¶0¶2¶#PB_Splitter_Separator¶Gadget_2¶¶2¶0¶#TreeGadget_0¶#TreeGadget_1¶1¶2¶0¶0¶0¶0¶10¶190¶290¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶0¶0¶¶0¶¶0¶0
;ScrollAreaGadget¶4¶#ScrollAreaGadget_3¶1¶-1¶-1¶0¶0¶21¶0¶4¶#PB_ScrollArea_Single¶Gadget_3¶¶-1¶0¶411¶604¶411¶604¶1¶0¶0¶240¶15¶410¶300¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;PureFORM_Project_End
;}
regards,
Nico
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

nicolaus wrote:hehe....
Ok but i want delet one of the container´s and add a new gadget at this place.
Wat do you think about my idea e.g. at develop time you save the gadgets of a splitter (i your example one of the containres) in a list (LinkedList or so), and so we can at the devolop time in PureFORM every time change and or delet one of the gadget parts from a Splitter.
Ok, so you don't want to delete a gadget but replace a gadget with another, like replacing the container with a scrollarea ?
The gadgets are already in a linked list, the problem is I can't change a splitter element with PB3.94, and we are talking of a container, so I would have to delete all the gadgets and recreate them and the splitter ... A bit complicated ...
nicolaus wrote:i want make you an example and found one more bug ;)
The bug is in the form
;SplitterGadget¶3¶#SplitterGadget_2¶1¶2¶28¶0¶0¶24¶0¶2¶#PB_Splitter_Separator¶Gadget_2¶¶2¶0¶#TreeGadget_0¶#TreeGadget_1¶1¶2¶0¶0¶0¶0¶10¶190¶290¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶0¶0¶¶0¶¶0¶0
should be
;SplitterGadget¶3¶#SplitterGadget_2¶1¶-1¶28¶0¶0¶24¶0¶2¶#PB_Splitter_Separator¶Gadget_2¶¶2¶0¶#TreeGadget_0¶#TreeGadget_1¶1¶2¶0¶0¶0¶0¶10¶190¶290¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶0¶0¶¶0¶¶0¶0
And so it works. I have build a form like yours with 4 gadgets, Splittergadget with 2 Treegadgets inside and a Scrollarea gadget, but the saved form was correct. If you could reproduce this and tell me the steps to get this bug, it would be really usefull.
Anyway, I have updated to beta 50 ; it should correct this form problem while loading it.
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
awesome :lol:
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes
- some mouse cursor shape fixes
- changed : if enabled, PureRESIZE is only active in Preview mode (F5 to toggle Preview/Build mode) to avoid problems while resizing gadgets in Build mode.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Post by Berikco »

dracflamloc wrote:pff, tis nothing compared to my Vizuil Dizzigner!


jk ;)
:lol: :lol: :lol:

Thanks drac, that laughing meed me feel better ;)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Berikco wrote:
dracflamloc wrote:pff, tis nothing compared to my Vizuil Dizzigner!


jk ;)
:lol: :lol: :lol:

Thanks drac, that laughing meed me feel better ;)
And soon there will be another one : WiDe :lol:
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply