PureFORM 1.99 (yet another FORM designer)
Moderator: gnozal
Great! Now it works really fine.gnozal wrote:- updated PB folder detection for PB4.10 beta 4

Two things:
- Preferences: The option "Syntax coloring: load keywords from Purebasic.exe" is always disabled.
- Moving gadgets with enabled grid: If you move a gadget with cursor keys, the gadget moves in steps of one pixel. What about a second function? Maybe if you hold the ALT key and use the cursor keys, the gadget could jump from "grid line to grid line". For example, if the grid is 5 pixels wide, then ALT-cursor would move the gadget by 5 pixels on each keystroke (exactly to the next grid line).
PS: If you move a gadget via cursor keys the code view window will be refreshed after every(!) one-pixel-move of the gadget. Select a gadget and hold down a cursor key, the code view window will going *flicker-flicker-flicker*...

-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Only if you use scintilla (wich is the best solution). This option is for the richedit syntax coloring alternative if scintilla is not found.kurzer wrote:- Preferences: The option "Syntax coloring: load keywords from Purebasic.exe" is always disabled.
I will see.kurzer wrote:- Moving gadgets with enabled grid: If you move a gadget with cursor keys, the gadget moves in steps of one pixel. What about a second function? Maybe if you hold the ALT key and use the cursor keys, the gadget could jump from "grid line to grid line". For example, if the grid is 5 pixels wide, then ALT-cursor would move the gadget by 5 pixels on each keystroke (exactly to the next grid line).
The code view is updated if the code changes. Each time you press a cursor key the code (gadget coordinates) is changed. I will see.kurzer wrote:PS: If you move a gadget via cursor keys the code view window will be refreshed after every(!) one-pixel-move of the gadget. Select a gadget and hold down a cursor key, the code view window will going *flicker-flicker-flicker*...You could test if no key was pressed for a second (or so) before updating the code view window.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
With the new UI Integrator there is one small detail that could make it a little bit better! If the Gadget Bar could be docked, horizontally, between the Integrator and the small PureForm main window. That would be awesome!
If not, oh well, still the next, next best thing to sliced bread. The next best thing being PureBasic itself ofcourse
If not, oh well, still the next, next best thing to sliced bread. The next best thing being PureBasic itself ofcourse

Hello gnozal,
it's again me... but I will promise to submitt no more suggestions in the near future.
Multilanguage support, procedure method: I see you have implemented a dummy LanguageItem procedure within the code. And you generate a list of strings which have to be translated, shown as comments within the code:
But especially in the procedure method it is necessary to list both parameters of the language procedure (ItemID.s and ItemTEXT.s).
I suppose this list is only a quick test for you and I think you are planning to improve this function, but at the moment it is hard to use this function without the ItemID in the list.
It would be nice to inform us, if this part will be in development the next time.
Thank you for your time and effort, gnozal.
it's again me... but I will promise to submitt no more suggestions in the near future.

Multilanguage support, procedure method: I see you have implemented a dummy LanguageItem procedure within the code. And you generate a list of strings which have to be translated, shown as comments within the code:
Code: Select all
Procedure.s LanguageItem(ItemID.s, ItemTEXT.s)
ProcedureReturn ItemTEXT
EndProcedure
; --- Strings to translate list ---
; /// Windows ///
; "GiMeG"
; /// Menu items ///
; "&About"
; "Über GiMeG"
; /// Statusbars ///
; ""
; /// Gadgets ///
; "Quell-Videos && Schnitt"
; "Video-Einstellungen"
; "Audio-Einstellungen"
; "Extras && Filter"
; "Programmeinstellungen"
; "Liste der zu konvertierenden Videodateien"
; "Files"
; "Datei(en) zufügen"
; "Eintrag löschen"
and so on...
I suppose this list is only a quick test for you and I think you are planning to improve this function, but at the moment it is hard to use this function without the ItemID in the list.
It would be nice to inform us, if this part will be in development the next time.
Thank you for your time and effort, gnozal.
not in event loop
Hello Gnozal,
You gave us recently the option: not in event loop
Generally you have more gadgets with no event loop than gadgets with event loop.
Would it be possible to give a setup option: gadgets not in event loop
That means that primarely every new gadget comes with the preselection "not in event loop"
So it would be possible to deselect this option only for the gadgets where you really want an event loop.
Michel
You gave us recently the option: not in event loop
Generally you have more gadgets with no event loop than gadgets with event loop.
Would it be possible to give a setup option: gadgets not in event loop
That means that primarely every new gadget comes with the preselection "not in event loop"
So it would be possible to deselect this option only for the gadgets where you really want an event loop.
Michel
"Gadget list" Window
Hello Gnozal,
The larger a program becomes more important are the developer tools to handle, debug and so on..
Here another wish:
Please insert in the "Gadget list"-window the gadget text (actually done) and the enum text.
Thank you
Michel
The larger a program becomes more important are the developer tools to handle, debug and so on..
Here another wish:
Please insert in the "Gadget list"-window the gadget text (actually done) and the enum text.
Thank you
Michel
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Update
Changes :
- fixed : font requester in gadget properties should now preselect the current gadget font name/style/size properly [dropped FontRequester() for API]
- enhanced : gadget move / resize with cursor keys. CodeView is only updated when the cursor key is released [less flickering]. If virtual grid is enabled, the gadget is resized / moved using the current grid value.
- enhanced : multilanguage / procedure. ItemID is added to the generated 'Strings to translate list' in comments. To be continued.
I will try to remember the other user wishes for the next releases ...
Changes :
- fixed : font requester in gadget properties should now preselect the current gadget font name/style/size properly [dropped FontRequester() for API]
- enhanced : gadget move / resize with cursor keys. CodeView is only updated when the cursor key is released [less flickering]. If virtual grid is enabled, the gadget is resized / moved using the current grid value.
- enhanced : multilanguage / procedure. ItemID is added to the generated 'Strings to translate list' in comments. To be continued.
I will try to remember the other user wishes for the next releases ...
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:
There is here ?!kurzer wrote:By the way: In V1.94 build 227 (OCT 13th 2007) there is no translate list in the code.
Note that (by design) the dummy function (and the translate list) only appear in the codeview, not in the saved code.
And only if :
- 'Don't add comments to generated code' is disabled.
- code infusion is not used.
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
Changes :
- added new main menu item : 'Save default language file ...'. Creates a default language file (only available if multilanguage is enabled).
- new : in alternative UI / maximized mode, the gadget bar becomes horizontal and is displayed between the main window and the integrator.
Changes :
- added new main menu item : 'Save default language file ...'. Creates a default language file (only available if multilanguage is enabled).
- new : in alternative UI / maximized mode, the gadget bar becomes horizontal and is displayed between the main window and the integrator.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Bingo, I used code infusion for the drag 'n drop eventhandling.gnozal wrote:And only if :
- 'Don't add comments to generated code' is disabled.
- code infusion is not used.
Fantastic, looks really good.gnozal wrote:Changes :
- added new main menu item : 'Save default language file ...'. Creates a default language file (only available if multilanguage is enabled).
[edit]: corrected a typo.... oh it was'nt a typo

Last edited by Kurzer on Tue Oct 16, 2007 11:17 am, edited 2 times in total.
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Update
Changes :
- fixed some bugs when switching UI's
- added 'Bring PureFORM to foreground' in PureFORM's system menu (also available from taskbar [right-click]).
Changes :
- fixed some bugs when switching UI's
- added 'Bring PureFORM to foreground' in PureFORM's system menu (also available from taskbar [right-click]).
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
Changes :
- added : PureFORM now also generates fully functional code for multilanguage procedure option (and not only a 'dummy' procedure).
Changes :
- added : PureFORM now also generates fully functional code for multilanguage procedure option (and not only a 'dummy' procedure).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).