It is currently Thu Sep 09, 2010 8:55 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1214 posts ]  Go to page Previous  1 ... 77, 78, 79, 80, 81  Next
Author Message
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Mon Jul 26, 2010 8:20 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3773
Location: Strasbourg / France
kurzer wrote:
... I found another strange issue in connection with a container gadget:
After changing the properties of a container gadget (see 1), the "active entry marker" of the gadget list (Integrator) jumps immediately one row up to the line "Splittergadget". Immediately means: You can not even see the new checkbox state before it switch to the other gadget...
Thanks.
Should be fixed in build 391.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Tue Jul 27, 2010 8:23 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 166
Location: I live in "Bratwurst" land ;-)
Thank you for the fast fix, Gnozal.

But hey, what the hell PureFORM is doing when the user change the state of one of the containergadget checkboxes? :lol:

The complete gadget list will be redrawn, all gadgets within the container will be erased and redrawn two times (it looks like they first will be redrawn outside of of the containergadget and immediately after this they will be redrawn at the correct position within the container gadget).
It's a wild flickering gadget orgy... :lol: But no matter... it's just funny to look at. At the end all looks fine. :wink:


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Wed Jul 28, 2010 7:38 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3773
Location: Strasbourg / France
kurzer wrote:
Thank you for the fast fix, Gnozal.
But hey, what the hell PureFORM is doing when the user change the state of one of the containergadget checkboxes? :lol:
The complete gadget list will be redrawn, all gadgets within the container will be erased ...

Yes, all the gadets (splitter, splitter childs, container childs etc...) are erased and recreated with the new style(s) / flag(s).
Only once, but with a splitter first the gadgets are drawn and then the splitter.

I have uploaded build 392 which should flicker a lot less in this situation.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Wed Jul 28, 2010 3:02 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 166
Location: I live in "Bratwurst" land ;-)
Gnozal, that was not a bug report. :shock:
But nonetheless many thanks for improving this. :wink:


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Thu Jul 29, 2010 10:18 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 166
Location: I live in "Bratwurst" land ;-)
Sorry for posting twice.

Gnozal, is there a way to format the text of a menuitem via TAB [chr(9)] like in the Example code of the PB help?

Code:
        MenuItem(1, "Open"   +Chr(9)+"Ctrl+O")
        MenuItem(2, "Save"   +Chr(9)+"Ctrl+S")
        MenuItem(3, "Save as"+Chr(9)+"Ctrl+A")
        MenuItem(4, "Close"  +Chr(9)+"Ctrl+C")

It sems, it is not possible in the PureForm Menueditor, because each time I press the TAB key within the menu text-field the cursor jumps out of the edit field. This is of course a normal behaviour of a windows GUI, but bad to enter the TAB character as part of the menu title.


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Fri Jul 30, 2010 7:57 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3773
Location: Strasbourg / France
kurzer wrote:
Gnozal, is there a way to format the text of a menuitem via TAB [chr(9)] like in the Example code of the PB help?
Yes.
In the menu builder, the escape characters \t [TAB] and \q ["] are supported for the menu item text.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Fri Jul 30, 2010 8:43 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 166
Location: I live in "Bratwurst" land ;-)
Ahhrg, I should more often read manuals. :oops:
Thank you.


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Fri Jul 30, 2010 2:07 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 166
Location: I live in "Bratwurst" land ;-)
This week is obviously "PureFORM issue week" :lol:

In my current project I connected two gadgets via splittergadget. All went okay.
Now I added another splitter gadget to connect two other gadgets.

But this time PureForm generates the PB code lines in the wrong order.
It generate:
1) First gadget
2) Splittergadget
3) Second gadget

Now I get an "Gadget is not initialized" error when the project compiles.
The errrormessage is correct, because at position 2) the referencing gadget No. 3 does not exists.

How can I solve this problem within PureForm?

Image

Btw: I had a look into the help manual this time :lol: ... but didnt found any helpful informations concerning this issue.


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Fri Jul 30, 2010 2:28 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3773
Location: Strasbourg / France
kurzer wrote:
...
In my current project I connected two gadgets via splittergadget. All went okay.
Now I added another splitter gadget to connect two other gadgets.
But this time PureForm generates the PB code lines in the wrong order.
It generate:
1) First gadget
2) Splittergadget
3) Second gadget
Now I get an "Gadget is not initialized" error when the project compiles.
The errrormessage is correct, because at position 2) the referencing gadget No. 3 does not exists.
How can I solve this problem within PureForm?
Damn splitters...
I can't reproduce this.
However I see on your picture that I forgot to remove a debug comment : this is a hint ... maybe it found the issue.
I have uploaded build 393 (I hope it doesn't break something else) : could you test it ?

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Fri Jul 30, 2010 3:25 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 166
Location: I live in "Bratwurst" land ;-)
Hello Gnozal,
you have got mail. ;)

Removing and re-creating the splitter doesn't changed anything.

Edit: Oh, I see you worked already on this issue and edit your post.
Okay, I test the new version now, Mr. "faster than light". :lol:

Edit2: You'r my hero! All works very fine now.
The splitterentry is now at the end of the gadget list.

Maybe some day I can buy you a really big drink. ;)

Code:
   [...]
    Window_Main_Text_LastWatchdogLineModule = TextGadget(#PB_Any, 540, 390, 150, 15, "Watchdog l. Eingriff bei:")
    Window_Main_Container_ModuleProgram = ContainerGadget(#PB_Any, 220, 0, 240, 280, #PB_Container_BorderLess)
      Window_Main_String_ModuleProgramHeader = StringGadget(#PB_Any, 5, 0, 160, 15, "Cmd   Li.Mod IO = Wert", #PB_String_BorderLess|#PB_String_ReadOnly)
      Window_Main_Editor_ModuleProgram = EditorGadget(#PB_Any, 0, 18, 240, 240)
      Window_Main_String_ModuleProgramFooter = StringGadget(#PB_Any, 0, 260, 240, 20, "", #PB_String_ReadOnly)
    CloseGadgetList()
    Window_Main_Splitter_LinesTree = SplitterGadget(#PB_Any, 15, 60, 460, 280, Window_Main_Tree_LinesAndModules, Window_Main_Container_ModuleProgram, #PB_Splitter_FirstFixed|#PB_Splitter_Vertical)
    Window_Main_Splitter_Registers = SplitterGadget(#PB_Any, 480, 215, 210, 125, Window_Main_ListView_Registers, Window_Main_Text_RegisterComment, #PB_Splitter_FirstFixed)
    SetGadgetAttribute(Window_Main_Splitter_LinesTree, #PB_Splitter_FirstMinimumSize, 120)
    SetGadgetAttribute(Window_Main_Splitter_LinesTree, #PB_Splitter_SecondMinimumSize, 175)
    SetGadgetState(Window_Main_Splitter_LinesTree, 215)
    SetGadgetAttribute(Window_Main_Splitter_Registers, #PB_Splitter_FirstMinimumSize, 45)
    SetGadgetAttribute(Window_Main_Splitter_Registers, #PB_Splitter_SecondMinimumSize, 20)
    SetGadgetState(Window_Main_Splitter_Registers, 100)
    PureRESIZE_SetGadgetResize(Window_Main_Frame3D_ProgramManager, 1, 1, 1, 1)
    PureRESIZE_SetGadgetResize(Window_Main_Text_Lines, 1, 1, 0, 0)
    PureRESIZE_SetGadgetResize(Window_Main_Text_ModuleProgram, 1, 1, 0, 0)
   [...]


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Fri Jul 30, 2010 5:45 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 166
Location: I live in "Bratwurst" land ;-)
Again posting twice. Sorry for that.

Not a bug this time, but a suggestion.

PureForm does not provide all possible (M$ Windows-)style constants for gadgets (in my current case it is the #ES_AUTOVSCROLL constant for a string gadget).
So what about a additional field within the properties area of PureFORM, where User can enter additional own Style constants (flags) for the gadgets?

Kind regards,
Kurzer (your pain in the neck :wink: )


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Mon Aug 02, 2010 10:21 am 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3773
Location: Strasbourg / France
kurzer wrote:
... PureForm does not provide all possible (M$ Windows-)style constants for gadgets (in my current case it is the #ES_AUTOVSCROLL constant for a string gadget).
So what about a additional field within the properties area of PureFORM, where User can enter additional own Style constants (flags) for the gadgets?
Could you try the new build ?

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Mon Aug 02, 2010 1:15 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3773
Location: Strasbourg / France
Update (build 344)

Changes :
- You may define custom gadget flags by creating a PureFORM.Flags file.

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Mon Aug 02, 2010 1:33 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Sun Jun 11, 2006 12:07 am
Posts: 166
Location: I live in "Bratwurst" land ;-)
Great solution! :shock:
Will try it as soon as I'm at home.

One other question, Gnozal - maybe you can help me:
I want to move some existing gadgets into a new container gadget. If I use PureForm for this task, I have to recreate the gadgets, so I want to alter the concerning entries in the *.pbf file via notepad++.

Please can you tell me which fields I have to change on a gadget-record, to move the gadgets later into a container?
As far as I see I have to change the second parameter, which seems to be a pointer to a parent gadget (normaly -1), but changing only this entry does not work for me.

Are there another fields I have to fit?

Thanks.

Kind regards, Kurzer


Top
 Profile  
 
 Post subject: Re: PureFORM 1.99 (yet another FORM designer)
PostPosted: Mon Aug 02, 2010 1:52 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat Apr 26, 2003 8:27 am
Posts: 3773
Location: Strasbourg / France
kurzer wrote:
I want to move some existing gadgets into a new container gadget. If I use PureForm for this task, I have to recreate the gadgets, so I want to alter the concerning entries in the *.pbf file via notepad++.
You could select the gadgets (gadget group functions) and paste them in the new container. Should work.
1. Select gadgets to be moved (mouse or CTRL + left-click)
2. Right-click on one selected gadget in the group : save group to temp group
3. Right-click on container (where you want to place the gadgets) : move gadget group [Mouse pos] -> temp group
kurzer wrote:
Please can you tell me which fields I have to change on a gadget-record, to move the gadgets later into a container?As far as I see I have to change the second parameter, which seems to be a pointer to a parent gadget (normaly -1), but changing only this entry does not work for me.
You are right, it's the parent gadget number.
But it's a bit more complicated : after the parent gadget number, you have the ParentGadgetClass (5 for container, see previous post for the ID's). After that, ParentGadgetHasTabs and ParentGadgetTabNumber. Etc...!

_________________
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1214 posts ]  Go to page Previous  1 ... 77, 78, 79, 80, 81  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye