Page 4 of 103

Posted: Wed Sep 06, 2006 1:16 pm
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:

Posted: Wed Sep 06, 2006 4:14 pm
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.

Posted: Wed Sep 06, 2006 9:44 pm
by AL90
Very nice work Gnozal. (Thumbs Up)
When is coming XP-Skin support? (See postings from ts-soft)

Posted: Thu Sep 07, 2006 7:31 am
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.

Posted: Thu Sep 07, 2006 3:28 pm
by gnozal
Update

- added 'Compile/Run' menu item (compiles the form with PBCompiler.exe from the command line), with or without the manifest thingy.

Posted: Thu Sep 07, 2006 6:52 pm
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:

Posted: Thu Sep 07, 2006 11:41 pm
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:

Posted: Fri Sep 08, 2006 7:32 am
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).

Posted: Fri Sep 08, 2006 7:33 am
by gnozal
Berikco wrote:Realy?? mmmmm, must get new glasses :lol:
What ?
You cheated :lol:

Posted: Fri Sep 08, 2006 7:36 am
by Dare
:lol:

Posted: Fri Sep 08, 2006 8:31 am
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

Posted: Fri Sep 08, 2006 9:27 am
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.

Posted: Fri Sep 08, 2006 9:54 am
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.

Posted: Fri Sep 08, 2006 10:05 am
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.

Posted: Fri Sep 08, 2006 10:50 am
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]