PureFORM 1.99 (yet another FORM designer)
Moderator: gnozal
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Update
Changes :
- fixed broken gadget tooltip code generation in gadget enumeration mode (only worked in #PB_Any mode).
Changes :
- fixed broken gadget tooltip code generation in gadget enumeration mode (only worked in #PB_Any mode).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Sorry, should be fixed.michel wrote:Hello Gnozal,
Could you please check up your last downloadable file, build 145 is missing.
Michel
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Update
Changes :
- added : gadget text now supports escape characters \n [CRLF] and \t [TAB], usefull for multiline gadgets
- added : custom gadgets (user defined gadgets) ; please see help topic in PureFORM.chm
Changes :
- added : gadget text now supports escape characters \n [CRLF] and \t [TAB], usefull for multiline gadgets
- added : custom gadgets (user defined gadgets) ; please see help topic in PureFORM.chm
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
user gadgets
Hello Gnozal,
Super idea to integrate user gadgets. Unfortunately I discovered the following bug:
adding a customer gadget works fine, deleting it does only work in the window; the code window and the gadget list stay unchanged.
Michel
Super idea to integrate user gadgets. Unfortunately I discovered the following bug:
adding a customer gadget works fine, deleting it does only work in the window; the code window and the gadget list stay unchanged.

Michel
user gadget
Hello Gnozal,
Sorry for my previous reply, i was to quick: it is OK
new question: If there are more than one user gadgets:
how to select them in the right click menu?
(the gadget bar opens a selection window, OK)
michel
Sorry for my previous reply, i was to quick: it is OK
new question: If there are more than one user gadgets:
how to select them in the right click menu?
(the gadget bar opens a selection window, OK)
michel
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: user gadget
Oops .. forgot the context menu ... should be fixed (build 147).michel wrote:new question: If there are more than one user gadgets: how to select them in the right click menu?
(the gadget bar opens a selection window, OK)michel
Thanks !srod wrote:Jeepers, what a great tool this has become!
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Thanks a lot gnozal for this awesome great Masterpeace !!!
But ... I'm afraid I found a bug during my first tries, where PureFORM crashes (=> hangs with 100% CPU usage).
After it chrashes several times during my tests, lately I found a quick way to reproduce the Bug:
- create a new Project
- create a PanelGadget
- add 4 more Panels to the Gadget (maybe not necessary)
- create a Frame3DGadget within the PanelGadget
- play a little bit with the Frame3DGadget and change Position and Size a few times.
After a few Clicks you will already recognize that something is not working like expected and after a few more moves (the main problem seems to be a resize of the Frame3DGadget) PureFORM will not respond anymore and hangs with a 100% CPU Usage.
If you cannot reproduce this bug, I could try to create a ScreenShot-Video for you.
Further I have some small proposals and a question:
- Option to LOCK the coordinates and dimensions of a Gadget (maybe quick lock for all as well as a seperate lock for x,y,with,height)
- accept smaler gridvalues then 5 pixel
- Option to Cut a Gadget (usually Ctrl+X => Copy into Clipboard and Delete)
- Moving a Group of selected Gadgets by using the Cursor-Keys would be very helpfull (or is it a bug, that it does not work so far?).
- Enabeling MultiLine-Selection in the Gadget-List Window would make it easier to select the right Gadgts for a Multiselect or a Group.
Reasons for the first two of the above proposals:
The Gridfunction itselve is very usefull ... no question.
But quite often the height of a Gadget (and also either the x or y coordinate) has to be an amount which could not be devided by the gridvalue - so the value has to be set seperately using the SpinGadgets in the PropertySection ... no Problem so far.
But if you grab this Gadget again (to move it or change only one dimension) all 4 corners will snap to the Grid again and you have to resize the hole Gadget again.
So either a gridsnapamount of less than 5 or even better a lock-option to lock dimensions and/or x/y-coordinates whould be great.
- Question: Is there an easier way to move a Gadget from one container/panel into another container/panel (or even out of a container/panel) rather than copying it, deleting it, pasting it into the other container/panel, moving it to the right (old) coordinates and reentering all its properties again?
[Edit:] I just recognized the new "Group"-Functions. Even if they are not available for a single Gadget, they are still very helpfull to simplify the procedure above.
Nevertheless this peace of software is absolutely awesome !!!
ThanX a lot for this and also for all the other great PureXXXX libs from you.
Greetz, PureLust.
----------------------------------------------------------------------------------------------------------------------------------
Sorry for my imperfect english, I tried my best .... I hope you can understand what I'd like to advise.

But ... I'm afraid I found a bug during my first tries, where PureFORM crashes (=> hangs with 100% CPU usage).

After it chrashes several times during my tests, lately I found a quick way to reproduce the Bug:
- create a new Project
- create a PanelGadget
- add 4 more Panels to the Gadget (maybe not necessary)
- create a Frame3DGadget within the PanelGadget
- play a little bit with the Frame3DGadget and change Position and Size a few times.
After a few Clicks you will already recognize that something is not working like expected and after a few more moves (the main problem seems to be a resize of the Frame3DGadget) PureFORM will not respond anymore and hangs with a 100% CPU Usage.
If you cannot reproduce this bug, I could try to create a ScreenShot-Video for you.
Further I have some small proposals and a question:
- Option to LOCK the coordinates and dimensions of a Gadget (maybe quick lock for all as well as a seperate lock for x,y,with,height)
- accept smaler gridvalues then 5 pixel
- Option to Cut a Gadget (usually Ctrl+X => Copy into Clipboard and Delete)
- Moving a Group of selected Gadgets by using the Cursor-Keys would be very helpfull (or is it a bug, that it does not work so far?).
- Enabeling MultiLine-Selection in the Gadget-List Window would make it easier to select the right Gadgts for a Multiselect or a Group.
Reasons for the first two of the above proposals:
The Gridfunction itselve is very usefull ... no question.
But quite often the height of a Gadget (and also either the x or y coordinate) has to be an amount which could not be devided by the gridvalue - so the value has to be set seperately using the SpinGadgets in the PropertySection ... no Problem so far.
But if you grab this Gadget again (to move it or change only one dimension) all 4 corners will snap to the Grid again and you have to resize the hole Gadget again.
So either a gridsnapamount of less than 5 or even better a lock-option to lock dimensions and/or x/y-coordinates whould be great.
- Question: Is there an easier way to move a Gadget from one container/panel into another container/panel (or even out of a container/panel) rather than copying it, deleting it, pasting it into the other container/panel, moving it to the right (old) coordinates and reentering all its properties again?
[Edit:] I just recognized the new "Group"-Functions. Even if they are not available for a single Gadget, they are still very helpfull to simplify the procedure above.
Nevertheless this peace of software is absolutely awesome !!!
ThanX a lot for this and also for all the other great PureXXXX libs from you.
Greetz, PureLust.
----------------------------------------------------------------------------------------------------------------------------------
Sorry for my imperfect english, I tried my best .... I hope you can understand what I'd like to advise.

-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Sorry, I followed your procedure but no crash or 100% CPU usage here (on a PII-300 MHz test machine !).PureLust wrote:I found a quick way to reproduce the Bug:
- create a new Project
- create a PanelGadget
- add 4 more Panels to the Gadget (maybe not necessary)
- create a Frame3DGadget within the PanelGadget
- play a little bit with the Frame3DGadget and change Position and Size a few times.
After a few Clicks you will already recognize that something is not working like expected and after a few more moves (the main problem seems to be a resize of the Frame3DGadget) PureFORM will not respond anymore and hangs with a 100% CPU Usage.
I am not sure the video would help, but the crash error message almost surely would.
You can already disable a gadget, so you can't move/resize it accidentlyPureLust wrote:- Option to LOCK the coordinates and dimensions of a Gadget (maybe quick lock for all as well as a seperate lock for x,y,with,height)
I will think about itPureLust wrote:- accept smaler gridvalues then 5 pixel
- Option to Cut a Gadget (usually Ctrl+X => Copy into Clipboard and Delete)
- Moving a Group of selected Gadgets by using the Cursor-Keys would be very helpfull .
- Enabeling MultiLine-Selection in the Gadget-List Window would make it easier to select the right Gadgts for a Multiselect or a Group.
Note that I don't use the grid myself : I use the gadget align / arrange functions and get perfect alignments without much trouble.
Currently, you can only move a gadget within the same parent (window or gadget), not from a parent to another.PureLust wrote:Is there an easier way to move a Gadget from one container/panel into another container/panel
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Sorry, I forgot to tell you under which environment i was testing:gnozal wrote:Sorry, I followed your procedure but no crash or 100% CPU usage here (on a PII-300 MHz test machine !).
On this machine I'm running Windows XP-Pro SP2 - maybe you're not using XP on a PII-300 MHz.
Machine: A64-3200, 1GB, Radeon X800-XL, 2 Monitor Desktop 1680x1050 + 1024x768, PureForm 1.50 build 147
[Edit:] A friend of mine could also reproduce this Bug on his Machine: WinXP-Home, AthlonXP 2400+, 768MB, Radeon X1650, Desktop: 1680 x 1050
First he created the Frame3DGadget outside the PanelGadget and had no problems. After he createt it within the Panel and played a bit with the Frame-Size PureFORM hangs with 100% CPU-Usage.
Nevertheless I'll test it on 2 other machines (another XP-SP2 and Win2k-SP4) and will give you the Results.
ThanX, that should help. Stupid me ...gnozal wrote:You can already disable a gadget, so you can't move/resize it accidently

[Edit2] Maybe it has something to do with the Real-Time-Refresh of the Code- and Property-Windows (maybe a recursion-problem during the Refresh?).
Usually I'm working while the following Windows are open:
- PureForm (Main Window)
- Gadget list
- Gadget properties
- Code view
- Window properties
- Gadgets
- Window List
If I reduce the opened Windows to PureForm and Gadgets, I can not get PureForm to hang, but it will still not react like it should when you try to resize the Frame3DGadget.
[Edit3] The Problem seems to be the Frame3DGadget only.
Further it looks like, that the hanging has something to do with an recursive Resfresh.
I've created and >uploaded< a Testform for you which includes all Gadgets.
If you select one of the other Gadgets, the resfresh tooks only a few Milliseconds.
If you select the Frame3DGadget, the refresh takes about 2 Seconds. Further some Gadgets went black (>see Screenshot<).

Also PureFORM displays an errormessage on loading this Form, right after it has included the Frame3DGadget.
If you try to move/resize the Frame3D during the 2 Seconds it needs for the refresh, you could easily get PureForm to hang after a few tries.
[Edit4]
Thanks a lot and sorry for finding this bug.gnozal wrote:I will see what I can do

Last edited by PureLust on Mon Apr 16, 2007 3:17 pm, edited 3 times in total.
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
About the error when opening the project :
- #HyperLink_14 parent is #ExplorerList_11 (?!)
- #Image_16 parent is #HyperLink_15 (?!)
Did you draw these controls over another (non container) control ?
Anyway, I have added a check to avoid creating gadgets with an invalid parent (like when you draw a gadget on top of another).
I still can't reproduce your problem, even on a XP/SP2 machine (and I tried hard).
I have done some few changes (build 148), does it help ?
- #HyperLink_14 parent is #ExplorerList_11 (?!)
- #Image_16 parent is #HyperLink_15 (?!)
Did you draw these controls over another (non container) control ?
Anyway, I have added a check to avoid creating gadgets with an invalid parent (like when you draw a gadget on top of another).
I still can't reproduce your problem, even on a XP/SP2 machine (and I tried hard).
I have done some few changes (build 148), does it help ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
No, I dont. But as you can see on the GadgetNumber, #HyperLink_14 is the Gadgets I created directly after the Frame3DGadget and (as far as I can remember) I played a bit with the Frame3DGadget before I created #Image_16.gnozal wrote:About the error when opening the project :
- #HyperLink_14 parent is #ExplorerList_11 (?!)
- #Image_16 parent is #HyperLink_15 (?!)
Did you draw these controls over another (non container) control ?
So I think this has caused the corruption in the Data.
YESSSSSSSS !!!!! I don't know what you've changed, but it looks like, that it was the right thing !!!gnozal wrote:I have done some few changes (build 148), does it help ?

Now the Refresh for the Frame3DGadget is as fast as on the other Gadgets and I was not able to get PureFORM hanging again !!!

Thanks a lot Philippe ... you are a real genius .... and a very fast one as well.

[Edit] Sorry for coming up straight with another hint.

I just recogniced a very little one and I don't know if anyone else has already reported it:
If you grab a Gadget on at the top or the left side to resize it, it will change the position and size of the Gadget imediately when you click - without moving the mouse. Usually the changes are just 1-2 Pixel.
If the Gadget is within a PanelGadget and you grab it on the top, it jumps up up to 15 Pixel and changes his height as well.