PureFORM 1.99 (yet another FORM designer)

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

Moderator: gnozal

User avatar
ar-s
Enthusiast
Enthusiast
Posts: 344
Joined: Sat Oct 06, 2007 11:20 pm
Location: France

Re: PureFORM 1.99 (yet another FORM designer)

Post by ar-s »

gnozal wrote:
michel wrote:When do you plan to extend PureForm to the new features of PB4.6 (canvas gadet etc)
When I have time to upgrade the code to PB4.xx...
Anyway, did you check the custom gadgets feature ? You can easily add the Canvas Gadget...
Custom Gadget Settings For Canvas Gadget wrote: Name : CanvasGadget
Init code :<empty>
Create code : CanvasGadget(%id%, %x%, %y%, %w%, %h%, %[flags]%)
Free code : <empty>
Flags : #PB_Canvas_Border|#PB_Canvas_ClipMouse|#PB_Canvas_Keyboard|#PB_Canvas_DrawFocus
Comment : CanvasGadget [Gadget Library, Purebasic 4.60+]
Thanks for that :D
~Ar-S~
My Image Hoster for PB users
My webSite (french) with PB apps : LDVMULTIMEDIA
PB - 3.x / 5.7x / 6 - W11 x64 - Ryzen 7 3700x / #Rpi4

Code: Select all

r3p347 : 7ry : un71l d0n3 = 1
ZerroJack
New User
New User
Posts: 1
Joined: Thu Mar 22, 2007 12:03 pm
Location: Rabbithole

Re: PureFORM 1.99 (yet another FORM designer)

Post by ZerroJack »

How i can create a OpenWindowedScreen() in PureForm ? (excluded manually :( )
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

ZerroJack wrote:How i can create a OpenWindowedScreen() in PureForm ? (excluded manually :( )
You can't.
PureFORM only supports the 'Window' library, not the 'Screen' library.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Panelgadget with icons

Post by michel »

Hello Gnozal,

Pureform offer the possibility to add an icon beside the text on a panel. Is there any possibility to insert larger icons e.g. 32 x 32 ?

kind regards

Michel
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: Panelgadget with icons

Post by gnozal »

michel wrote:Pureform offer the possibility to add an icon beside the text on a panel. Is there any possibility to insert larger icons e.g. 32 x 32 ?
I have updated PureFORM.
It is now possible to set a PanelGadget's tab width and height in 'Gadget Properties'.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

Panetgadget with icons

Post by michel »

Hello Gnozal,

INCREDIBLE !!!! :D :D :D

thank you

Michel
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: PureFORM 1.99 (yet another FORM designer)

Post by le_magn »

Hi Gnozal, is possible to add option "WordWrap" for editor gadget?
I add this code manually for enable wordwrap everytime i need it: SendMessage_(GadgetID(#Editor), #EM_SETTARGETDEVICE, #Null, 0)

Thank you :)
Image
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: PureFORM 1.99 (yet another FORM designer)

Post by Tenaja »

Am I just missing the way to AddKeyboardShortcut() to gadgets in PureForm? It has so many features, I have to believe I'm just not looking in the right place.

Thanks... and thanks for a neat tool!
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

Tenaja wrote:Am I just missing the way to AddKeyboardShortcut() to gadgets in PureForm? It has so many features, I have to believe I'm just not looking in the right place.
PureFORM only supports keyboard shortcuts for menus.
For gadget keyboard shortcuts, you may add the code manually using code infusion (Location:Window event, Event: Window creation)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: PureFORM 1.99 (yet another FORM designer)

Post by Tenaja »

Unfortunately, if you don't have a menu, it will not insert the code infusion for the keyboard shortcuts or menuevents...or maybe I am missing it. I cannot express how much I HATE it when Escape does not close a dialog box or sub-window in a program, so all of my programs have that behavior.

I started using this for my current project, and aside from this, I have only found a few issues that I have yet to find workarounds for:

This current project is for a Preferences tab for another, larger project. It appears that PF is not really set up to accommodate for that, because it is expecting it to be the whole program, rather than just an included procedure. I inserted "Procedure DoPrefs()" in the "Before event loop" code, but there is not "After event loop" place to put an "endprocedure"

The Case statements for the EventGadgets() do not allow inline code, and instead, it calls a separate procedure. This prevents the use of Local variables or Break statements...?

A minor thing is that every text gadget requires a variable or constant name. Sometimes you just want to display some text with #PB_ANY and discard the return value.

[edit] I almost forgot; I regularly experienced crashes when using the keyboard to scroll through the "Object:" listbox in Code infusion.

If I'm missing some workarounds for this, I'd appreciate some tips. If this is open source, I don't mind adding a few features.

Thanks.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

Tenaja wrote:Unfortunately, if you don't have a menu, it will not insert the code infusion for the keyboard shortcuts or menuevents...or maybe I am missing it.
You are right, I didn't think of that.
There is no workaround, sorry.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: PureFORM 1.99 (yet another FORM designer)

Post by le_magn »

I Gnozal, i have started a New Project, with many gadget to enumerate, is possible to add in pureform possibility to select a custom enumeration format for every window: example if i type in pb editor #listicon_ etc.. it show me all listicon present in all windows, for evitate this situation i edit all enumerations for every window like this: #CustomerWindow_gadgetname.... with this name when i code i get only gadget for selected window, is possible to add in pureform the option for do this in auto?
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureFORM 1.99 (yet another FORM designer)

Post by gnozal »

le_magn wrote:I Gnozal, i have started a New Project, with many gadget to enumerate, is possible to add in pureform possibility to select a custom enumeration format for every window: example if i type in pb editor #listicon_ etc.. it show me all listicon present in all windows, for evitate this situation i edit all enumerations for every window like this: #CustomerWindow_gadgetname.... with this name when i code i get only gadget for selected window, is possible to add in pureform the option for do this in auto?
You could change the gadget enumeration template in 'Preferences->Code->Gadget enumeration' to 'WinEnum/Class/Nb' for example.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: PureFORM 1.99 (yet another FORM designer)

Post by le_magn »

Gnozal i'm BLIND, i checked preference and not see this option before, sorry, next time i check more accurately, thank you!!!!
Image
User avatar
le_magn
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia

Re: PureFORM 1.99 (yet another FORM designer)

Post by le_magn »

Hi gnozal, my question is: is possible in pureform when i create Stringgadget to select max number of char? for example SendMessage_(GadgetID(#String_0), #EM_LIMITTEXT, 5, 0) i limit number of chars for string gadget, you add this option in pureform?
Thank you :)
Image
Post Reply