PureFORM 1.99 (yet another FORM designer)

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

Moderator: gnozal

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 »

gnozal wrote: Works here.
Could you post the project (Edit\Copy project to clipboard), and maybe a link to the image ?

Code: Select all

;{[PureFORM Project]
;PureFORM_Project_Begin
;Project¶PureFORM_Clipboard2
;Window¶1¶#Window_0¶13500417¶#PB_Window_ScreenCentered|#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget¶#Window_0¶446¶216¶399¶425¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶
;ImageGadget¶1¶#ImageGadget_0¶1¶-1¶-1¶0¶0¶14¶0¶512¶#PB_Image_Border¶Gadget_0¶¶-1¶0¶E:\Eigene Dateien\Eigene Bilder\About.bmp¶#Image_ImageGadget_0¶0¶0¶0¶0¶0¶10¶0¶310¶410¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
;PureFORM_Project_End
;}
PureFORM_Project_Begin
Project¶CRASH[20060906-141224]_
Window¶1¶#Window_0¶13500417¶#PB_Window_ScreenCentered|#PB_Window_SystemMenu|#PB_Window_SizeGadget|#PB_Window_MinimizeGadget¶#Window_0¶446¶216¶399¶425¶0¶10¶10¶0¶5000¶5000¶0¶-1¶0¶
ImageGadget¶1¶#ImageGadget_0¶1¶-1¶-1¶0¶0¶14¶0¶512¶#PB_Image_Border¶Gadget_0¶¶-1¶0¶,$83576D83,$6D83576D,$576D8357
Data.l $83576D83,$6D83576D,$576D8357,$83576D83,$6D83576D,$576D8357,$83576D83,$6D83576D,$576D8357,$83576D83,$6D83576D,$576D8357
Data.l $83576D83,$6D83576D,$576D8357,$83576D53$Data.l $83576D83,$6D83576D,$576D8357,$83576D83,¶#Image_ImageGadget_0¶0¶0¶0¶0¶0¶10¶0¶310¶410¶0¶0¶0¶0¶0¶0¶0¶-1¶-1¶-1¶-1¶¶0¶¶0¶0
PureFORM_Project_End
Image: http://ts-soft.eu/dl/about.bmp

:wink:
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 »

@ts-soft : Ok, I found the problem.
PB was running out of string space. I never thought of including a 378446 bytes image as hexadecimal data !
The code for your simple 'about' window is 7940 lines long and 1026348 bytes large ...

Anyway, I changed the code. It should work now.
Code generation should also be faster.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
AL90
Enthusiast
Enthusiast
Posts: 217
Joined: Fri Sep 16, 2005 7:47 pm
Location: Germany
Contact:

Post by AL90 »

Very nice work Gnozal. (Thumbs Up)
When is coming XP-Skin support? (See postings from ts-soft)
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

AL90 wrote:When is coming XP-Skin support? (See postings from ts-soft)
When I add the 'compile FORM' function ; more precisely, when it's done :wink:
And it will be done.
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

- added 'Compile/Run' menu item (compiles the form with PBCompiler.exe from the command line), with or without the manifest thingy.
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 »

gnozal wrote:
Berikco wrote:
gnozal wrote:
Berikco wrote: Maybe you can help me with the official VD4 ? :wink:
I fear I am not good enough.
Now, don't be so shy, everybody here knows you are an expert PB coder! :D
Look at my avatar, no expert here :twisted:
Realy?? mmmmm, must get new glasses :lol:
User avatar
AL90
Enthusiast
Enthusiast
Posts: 217
Joined: Fri Sep 16, 2005 7:47 pm
Location: Germany
Contact:

Post by AL90 »

gnozal wrote:When I add the 'compile FORM' function ; more precisely, when it's done :wink:
And it will be done.
Good work. XP-Skin works fine in the new version. Thanks a lot for this. :wink:
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Small update

- 'Compile/Run' now shows compiler error message if form could not be compiled
- You can use the escape key to quit the form compiled with 'Compile/Run' : usefull if the form doesn't have a close button (more practical than Alt+F4).
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 »

Berikco wrote:Realy?? mmmmm, must get new glasses :lol:
What ?
You cheated :lol:
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

:lol:
Dare2 cut down to size
applePi
Addict
Addict
Posts: 1404
Joined: Sun Jun 25, 2006 7:28 pm

Post by applePi »

excellent visual designer. thanks very much.
in the Window properties: Coordinates: i could not change the width and heigth by writing the desired values manually, only we could change it by clicking the mouse on the arrows.
my remote wish is the ability to attach a code to a Gadget by double clicking on a Gadget, in visual basic and real basic when we double clicking on a button it will open a button_click event editor and we can write the code for this event, and since PureBasic is much powerfull than these languages it deserves the easy VD which those languages have.
best wishes
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

Very nice work gnozal!

Some minor suggestions - when dragging or resizing a gadget, it would be helpful if the gadget snapped to the grid as you dragged or resized. Also please support deleting a gadget using the Del key (after clicking on a gadget to select it). Also ctrl-z undo operations (to go back after an accidental gadget movement). Thanks.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

mskuma wrote:Some minor suggestions - when dragging or resizing a gadget, it would be helpful if the gadget snapped to the grid as you dragged or resized.
The gadget should be snapped to the grid after you release it. During moving / resizing, I don't know if it's usefull. I will think about it.
mskuma wrote:Also please support deleting a gadget using the Del key (after clicking on a gadget to select it).
Good idea, I will add it.
mskuma wrote:Also ctrl-z undo operations (to go back after an accidental gadget movement).
Would be tricky to add ... Maybe generate a temp pbf each time something changes ? I will see.
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 »

applePi wrote:in the Window properties: Coordinates: i could not change the width and heigth by writing the desired values manually, only we could change it by clicking the mouse on the arrows.
It's by design : it's for pixel by pixel change. Use the mouse for big changes.
applePi wrote:my remote wish is the ability to attach a code to a Gadget by double clicking on a Gadget
That's a huge wish, but I am not surprised. It would be easier as jaPBe plugin function (the editor functions are already there) : just scrolling to the appropriate function in the editor (like Button1_OnClick()) or create it if it does not exists. But you also need an event engine like the EasyVent one http://www.purebasic.fr/english/viewtopic.php?t=21136 (not tested but seems very good).
applePi wrote:in visual basic and real basic when we double clicking on a button it will open a button_click event editor and we can write the code for this event
Afaik, Edwin Knoppert's PBDev ( http://www.hellobasic.com/pbdev.aspx ) does this.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
mskuma
Enthusiast
Enthusiast
Posts: 573
Joined: Sat Dec 03, 2005 1:31 am
Location: Australia

Post by mskuma »

gnozal wrote:
mskuma wrote:Some minor suggestions - when dragging or resizing a gadget, it would be helpful if the gadget snapped to the grid as you dragged or resized.
The gadget should be snapped to the grid after you release it. During moving / resizing, I don't know if it's usefull. I will think about it.
As you know, currently when you move it around currently, it doesn't snap, and when you let go, it snaps to the nearest grid point. Sometimes it doesn't snap to where you quite want it to go - this is not the fault of the program, but if the program snapped to begin with, there would be no placement error at all. [edit: same feature requested for when you resize too]
Post Reply