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)
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.
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).
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.
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).
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?
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).
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