PureFORM 1.99 (yet another FORM designer)
Moderator: gnozal
-
- New User
- Posts: 4
- Joined: Fri May 09, 2008 1:38 pm
-
- New User
- Posts: 4
- Joined: Fri May 09, 2008 1:38 pm
-
- New User
- Posts: 4
- Joined: Fri May 09, 2008 1:38 pm
Adding gadgets to a panel
Hey I have a question about adding gadgets to a panel. I Have a window with a panel gadget in it that has 5 tabs. I originally added gadgets in each tab as I created them and it worked perfectly. After doing a bunch of coding, I added a couple of text gadgets after going to the tab in the panel I wanted them in, but PureForm seems to only add them to the Window. I tried doing the "temp copy" procedure in the help, but it always seems to add the gadgets to the Window instead of the panel. If you add the gadgets right when you create the panel, however, it works fine. Is there another procedure to get the gadgets to be added "under" the specific tab in the panel?
And forgive me if this has been answered, but the search function simply brings up the entire thread.
And forgive me if this has been answered, but the search function simply brings up the entire thread.
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: Adding gadgets to a panel
Sounds like a parent gadget / window issue.LDSang wrote:After doing a bunch of coding, I added a couple of text gadgets after going to the tab in the panel I wanted them in, but PureForm seems to only add them to the Window
No, simply switch to the desired tab and draw the new gadgets on the tab client area.LDSang wrote:Is there another procedure to get the gadgets to be added "under" the specific tab in the panel?
Did you try using the context menu (add gadget) on the panel gadget client area instead of using the gadget bar ?
This may be a bug, but I can only help if you post / send me your project (PBF file or copy your project to clipboard and paste it between code tags into forum).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Re: Adding gadgets to a panel
Okay, I know I'm not going nuts but I just tried it to confirm and it worked? I spent about 20 minutes trying a few days ago and I know that everytime I went to add a gadget on the tab it would add it, but when I'd look at other tabs it was there as well. I'll try to retrace all of my steps though.gnozal wrote:No, simply switch to the desired tab and draw the new gadgets on the tab client area.
Using the menu doesn't seem to work at all. I tried adding text and button gadgets thru the "Add gadget" menu on the tab, but nothing seems to happen when I do.gnozal wrote: Did you try using the context menu (add gadget) on the panel gadget client area instead of using the gadget bar ?
Seems to be working for what I need to do, although the add gadget part thru the menu isn't working. Thanks for the reply.gnozal wrote: This may be a bug, but I can only help if you post / send me your project (PBF file or copy your project to clipboard and paste it between code tags into forum).
- Fangbeast
- PureBasic Protozoa
- Posts: 4789
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
Translate from source
Just tried out "Translate from source" and it imported almost everything perfectly from my huge Address book project. Will you be adding translating menus, statusbars and adding of columns to listicongadgets as well from the source in the future?
This could save heaps more time for me.
This could save heaps more time for me.
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Re: Adding gadgets to a panel
No context menu when right-clicking on the panel gadget client area (not on the tab itself!) ?LDSang wrote:Using the menu doesn't seem to work at all. I tried adding text and button gadgets thru the "Add gadget" menu on the tab, but nothing seems to happen when I do.gnozal wrote: Did you try using the context menu (add gadget) on the panel gadget client area instead of using the gadget bar ?
From this menu you only select the gadget class, you still need to draw the gadget.
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:
Re: Translate from source
I am not sure... much work !Fangbeast wrote:Just tried out "Translate from source" and it imported almost everything perfectly from my huge Address book project. Will you be adding translating menus, statusbars and adding of columns to listicongadgets as well from the source in the future?
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 (build 316)
Changes :
- fixed broken support for PB4.20 menu icons in generated code (was only working with PureCOLOR)
- fixed seldom random crash after adding a new gadget (I hope)
Changes :
- fixed broken support for PB4.20 menu icons in generated code (was only working with PureCOLOR)
- fixed seldom random crash after adding a new gadget (I hope)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
hi gnozal,
there's a small bug when moving a gadget which is inside a panelgadget. seems that 'non' parent window are not repainted.

there's a small bug when moving a gadget which is inside a panelgadget. seems that 'non' parent window are not repainted.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Yes, I know about this. To avoid flickering, the 'non' parent window is only redrawn when you release the gadget. Maybe I find a way to do better.Flype wrote:hi gnozal,
there's a small bug when moving a gadget which is inside a panelgadget. seems that 'non' parent window are not repainted.
But it's just a cosmetic issue.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).