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 :

- fixed selection rectangle problem mentioned in the post above.
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 »

@gnozal

With the Splittergadget you have one more prob.
First a samplecode from PureFORM for testing

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¶211¶-17¶786¶702¶0¶10¶10¶0¶5000¶5000¶0¶-1¶1¶0¸Datei·1¸Open
;TreeGadget¶1¶#tr_formes¶1¶-1¶-1¶0¶0¶28¶0¶32¶#PB_Tree_AlwaysShowSelection¶¶¶-1¶3¶¶¶0¶0¶0¶0¶0¶0¶0¶0¶0¶1¶1¶1¶1¶1¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;TreeGadget¶2¶#tr_objects¶1¶-1¶-1¶0¶0¶28¶0¶32¶#PB_Tree_AlwaysShowSelection¶¶¶3¶3¶¶¶0¶0¶0¶0¶0¶0¶0¶0¶0¶1¶1¶1¶1¶1¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;SplitterGadget¶3¶#splt_left¶1¶-1¶28¶0¶0¶24¶332¶2¶#PB_Splitter_Separator¶Gadget_2¶¶2¶0¶#tr_formes¶#tr_objects¶1¶2¶0¶0¶0¶0¶0¶200¶664¶1¶1¶1¶0¶0¶0¶0¶-1¶-1¶0¶0¶¶0¶¶0¶0
;PanelGadget¶4¶#pan_editor¶1¶-1¶-1¶0¶0¶19¶0¶0¶¶¶¶-1¶0¶¶¶0¶0¶1¶1¶2¶200¶0¶580¶660¶1¶0¶0¶1¶1¶0¶0¶-1¶-1¶-1¶-1¶Tab #1¶0¶¶0¶0
;PureFORM_Project_End
;}
So, now if you have load this in your PureFORM, go with right mousbutton click in the window to the menu and than go to add gadget and click the Splittergadget. You see a errormessage but this is fals!!!
We have 2 gadgets wat have the sam window as parent, the splitter at the left side and the panelgadget at the right side.
I want now a a splitter for the left splitter and the right panelgadget but no way to do that.

Hope you know wat i mean and can show to fix this.

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

Post by Molchyn »

gnozal
How difficult to add a popup menu on selected gadget?
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

With the Splittergadget you have one more prob.
First a samplecode from PureFORM for testing
So, now if you have load this in your PureFORM, go with right mousbutton click in the window to the menu and than go to add gadget and click the Splittergadget. You see a errormessage but this is fals!!!
We have 2 gadgets wat have the sam window as parent, the splitter at the left side and the panelgadget at the right side.
I want now a a splitter for the left splitter and the right panelgadget but no way to do that.

Hope you know wat i mean and can show to fix this.

regards,
nico
It's not a bug, it's a feature ... I had no time to create a help file yet.
Let me explain : right-click menu 'Add gadget' and click on gadgetbar are not always equivalent.
- if you use the right-click menu to add a splitter, PureFORM assumes the parentgadget for the splitter is the gadget on wich you clicked (if this gadget is a container (ContainerGadget, PanelGadget, ...)), and if there are <2 child gadgets you get the error message.
- if you use the gadgetbar, PureFORM assumes that the current selected gadget is the parentgadget for the splitter _if_ it is a container _and_ it has child gadgets, _else_ the splitter parentgadget is the parentwindow or parentgadget of the selected gadget. Remember that you can select no gadget using 'ESC' ; in this case the splitter is created directly on the window.
In this case, just use the gadgetbar.
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 »

Molchyn wrote:gnozal
How difficult to add a popup menu on selected gadget?
I don't understand ; you mean add a pop-up menu with the menu builder ?
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
I don't understand ; you mean add a pop-up menu with the menu builder ?
Yep
I think adding in menu builder CreatePopupMenu() for selected gadget - helpfull thing. :roll:
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

@gnozal

How i can add a toolbar to my project?
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Pop-up menu and toolbar are not available yet.

I need some time to improve PureFORM.
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 :
- added Toolbar editor (works like Menu editor)
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, i want test it :wink:
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

thx gnozal

ToolBarToolTip doesn't work. 3 parameters required!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

Changes :
- fixed ToolBarToolTip() in code generated for PB4 (3 parameters for PB4, 2 for PB3.94)
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 »

thx gnozal. :D
dlolo
New User
New User
Posts: 4
Joined: Wed May 18, 2005 11:23 pm
Location: France

Post by dlolo »

First, thx Gnozal for this great work!
Posted: Tue Oct 03, 2006 7:24 am Post subject:

--------------------------------------------------------------------------------

Update

...

- fixed : cosmetic bug ; the mouse cursor shape now changes correctly if a window is resizable

...
Yes it works for preview windows but all mouse cursor of project windows (Gadget list, window list ...) still not changing.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

dlolo wrote:First, thx Gnozal for this great work!
[...]
Yes it works for preview windows but all mouse cursor of project windows (Gadget list, window list ...) still not changing.
Should be fixed (build 59).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply