Redo/Undo not working
PureFORM 1.99 (yet another FORM designer)
Moderator: gnozal
- 
				gnozal
 - PureBasic Expert

 - Posts: 4229
 - Joined: Sat Apr 26, 2003 8:27 am
 - Location: Strasbourg / France
 - Contact:
 
Should be fixed in build 374.klaver wrote:Why the X and Y coordinates aren't updated while resizing?
Could you be more specific ?klaver wrote:Redo/Undo not working
Note that undo has to be enabled in preferences.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
						I think I found a bug:
Put a PanelGadget in form. Place a ScrollArea on it's Tab. Now, click on TOP edge of this ScrollArea and resize it by moving your cursor. Note the ScrollArea moves a bit to the top while it should only RESIZE. Every time you perform this action, the gadget gets higher and higher...
 It's the strangest thing I ever seen! 
Can you tell me what is the point of saving forms to temporary files for Undo/Redo actions? Why don't use memory as most of programs do?
Let's assume that to remember 1 action done by user (like move, resize, edit text, etc) you need ~10 bytes (might be wrong - correct me if so) in just 1MB of memory about 100k of such actions could be remembered.
Forgive asking this, but I'm afraid I can't read 75 pages of this topic to check if it was already answered
.
			
			
									
									
						Put a PanelGadget in form. Place a ScrollArea on it's Tab. Now, click on TOP edge of this ScrollArea and resize it by moving your cursor. Note the ScrollArea moves a bit to the top while it should only RESIZE. Every time you perform this action, the gadget gets higher and higher...
... Actually, I didn't know.gnozal wrote:Note that undo has to be enabled in preferences.
Can you tell me what is the point of saving forms to temporary files for Undo/Redo actions? Why don't use memory as most of programs do?
Let's assume that to remember 1 action done by user (like move, resize, edit text, etc) you need ~10 bytes (might be wrong - correct me if so) in just 1MB of memory about 100k of such actions could be remembered.
Forgive asking this, but I'm afraid I can't read 75 pages of this topic to check if it was already answered
hehe, you have never coded an undo facility have you?Let's assume that to remember 1 action done by user (like move, resize, edit text, etc) you need ~10 bytes (might be wrong - correct me if so) in just 1MB of memory about 100k of such actions could be remembered.
Imagine in the case of PureFORM then, that a user deletes a container gadget which contains 300 child gadgets, some of which are containers etc. All of these 300 child gadgets have had lots of properties set such as colors, sizes, fonts... Now this single deletion obviously results in all of these 300 or so child gadgets being deleted as well.
Fancy undoing that little lot anytime soon?
Having said all of this, there are ways around this, but my rather contrived example does serve to illustrate that coding a full undo/redo facility is not as easy at it might at first seem!
I think that Gnozal adopted his particular method simply for convenience. I think it is fair to say that for complex applications you really need to build your undo/redo facility in from the start. It is next to impossible to add it in at a later date.
I may look like a mule, but I'm not a complete ass.
						- 
				gnozal
 - PureBasic Expert

 - Posts: 4229
 - Joined: Sat Apr 26, 2003 8:27 am
 - Location: Strasbourg / France
 - Contact:
 
The next build may fix it.klaver wrote:I think I found a bug
The point is it's much easier to code and it works.klaver wrote:Can you tell me what is the point of saving forms to temporary files for Undo/Redo actions?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
						Code Infusion
Gnozal,
I am having a blast with PureFORM however my staccato programming style has me writing just a few lines of code at a time before doing a compile/run. With the Code Infusion being modal, I spend a tremendous amount of time closing and re-opening windows.
If had three wishes they would be:
Code Infusion editor and Explorer would stay open during compile. If that is not feasible, the Explorer would stay open at a minimum.
Selecting Code Infusion from right clicking on a gadget would pop up the the event and line you were last editing for that gadget or at least just the event.
Compile errors would pop up Code Infusion or Code View with the offending line highlighted or CodeView. Double clicking a line in Code View would open the Code Infusion editor for that line.
			
			
									
									
						I am having a blast with PureFORM however my staccato programming style has me writing just a few lines of code at a time before doing a compile/run. With the Code Infusion being modal, I spend a tremendous amount of time closing and re-opening windows.
If had three wishes they would be:
Code Infusion editor and Explorer would stay open during compile. If that is not feasible, the Explorer would stay open at a minimum.
Selecting Code Infusion from right clicking on a gadget would pop up the the event and line you were last editing for that gadget or at least just the event.
Compile errors would pop up Code Infusion or Code View with the offending line highlighted or CodeView. Double clicking a line in Code View would open the Code Infusion editor for that line.
menu for PureForm
How can I downloade this manual for PureForm. It looks like it has possibilities. So did Purevision and Visual Deaigner Tho. With out a manual
it would be a real pain to half to go to the web every 1/2 hr or so. I don't keep my computer online because the fixing virus's is more expensive when your continually online.
			
			
									
									it would be a real pain to half to go to the web every 1/2 hr or so. I don't keep my computer online because the fixing virus's is more expensive when your continually online.
It took 73 years for me to get this Stupid!
						- 
				gnozal
 - PureBasic Expert

 - Posts: 4229
 - Joined: Sat Apr 26, 2003 8:27 am
 - Location: Strasbourg / France
 - Contact:
 
Re: menu for PureForm
1. The manual is included in the download [http://freenet-homepage.de/gnozal/PureFORM.zip -> PureFORM.exe (executable) + PureFORM.chm (manual/help file) ].Zooker wrote:How can I download the manual for PureForm.
2. You can also view it on line : http://freenet-homepage.de/gnozal/PureF ... Manual.htm
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
						PureForm: Wrong resize-function for toolbar buttons
Hello Gnozal,
there is a little issue in the toolbar-editor of PureForm.
If you select a 'custom icon size' for a toolbar button (for instance you load a 16 x 16 icon for the button and select then 16 x 32 size), then the button-rect will be strechted in the wrong direction. The image will be stretched correctly.

It seems you mix up the x and y coordinates for the image stretching in the procedure "SetToolBarIconSize()".
			
			
									
									
						there is a little issue in the toolbar-editor of PureForm.
If you select a 'custom icon size' for a toolbar button (for instance you load a 16 x 16 icon for the button and select then 16 x 32 size), then the button-rect will be strechted in the wrong direction. The image will be stretched correctly.

It seems you mix up the x and y coordinates for the image stretching in the procedure "SetToolBarIconSize()".
PureFORM Request
Hi Gnozal!
As always, thank you for PureFORM. PB wouldn't be the same without it. I am coding an app and for the preferences section I use a treegadget to show or hide different containergadgets. This would be very hard without hiding/disabling the gadgets since they occupy the same space. I am well aware that the hide/disable options aren't saved. My question is: could this be made optional? Now I how to disable all containergadgets but one every time I am working on this project. There are quite a few and it just seems a lot of unnecessary work. In a distant future maybe?
Best Regards,
Storck
			
			
									
									
						As always, thank you for PureFORM. PB wouldn't be the same without it. I am coding an app and for the preferences section I use a treegadget to show or hide different containergadgets. This would be very hard without hiding/disabling the gadgets since they occupy the same space. I am well aware that the hide/disable options aren't saved. My question is: could this be made optional? Now I how to disable all containergadgets but one every time I am working on this project. There are quite a few and it just seems a lot of unnecessary work. In a distant future maybe?
Best Regards,
Storck
- 
				gnozal
 - PureBasic Expert

 - Posts: 4229
 - Joined: Sat Apr 26, 2003 8:27 am
 - Location: Strasbourg / France
 - Contact:
 
Re: PureFORM Request
Done.storck wrote:Hi Gnozal!
As always, thank you for PureFORM. PB wouldn't be the same without it. I am coding an app and for the preferences section I use a treegadget to show or hide different containergadgets. This would be very hard without hiding/disabling the gadgets since they occupy the same space. I am well aware that the hide/disable options aren't saved. My question is: could this be made optional? Now I how to disable all containergadgets but one every time I am working on this project. There are quite a few and it just seems a lot of unnecessary work. In a distant future maybe?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
						

