PureFORM 1.99 (yet another FORM designer)

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

Moderator: gnozal

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

Post by gnozal »

Update

Changes :
- some fixes
- updated PB folder detection for PB4.10 beta 4
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Post by Kurzer »

gnozal wrote:- updated PB folder detection for PB4.10 beta 4
Great! Now it works really fine. :D

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*... :wink: You could test if no key was pressed for a second (or so) before updating the code view window.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

kurzer wrote:- Preferences: The option "Syntax coloring: load keywords from Purebasic.exe" is always disabled.
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:- 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).
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*... :wink: You could test if no key was pressed for a second (or so) before updating the code view window.
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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
maw

Post by maw »

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 :lol:
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Post by Kurzer »

Hello gnozal,

it's again me... but I will promise to submitt no more suggestions in the near future. :wink:

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...
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.
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

not in event loop

Post by michel »

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
michel
Enthusiast
Enthusiast
Posts: 142
Joined: Mon Feb 19, 2007 5:47 pm
Location: Luxemburg

"Gadget list" Window

Post by michel »

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
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

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 ...
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Post by Kurzer »

gnozal wrote:Update
Thank you!
gnozal wrote:- enhanced : multilanguage / procedure. ItemID is added to the generated 'Strings to translate list' in comments. To be continued.
By the way: In V1.94 build 227 (OCT 13th 2007) there is no translate list in the code. :wink:
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

kurzer wrote:By the way: In V1.94 build 227 (OCT 13th 2007) there is no translate list in the code. :wink:
There is here ?!
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).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

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.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
maw

Post by maw »

gnozal wrote:- new : in alternative UI / maximized mode, the gadget bar becomes horizontal and is displayed between the main window and the integrator.
You're the best!!! Thanks!!
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Post by Kurzer »

gnozal wrote:And only if :
- 'Don't add comments to generated code' is disabled.
- code infusion is not used.
Bingo, I used code infusion for the drag 'n drop eventhandling.
gnozal wrote:Changes :
- added new main menu item : 'Save default language file ...'. Creates a default language file (only available if multilanguage is enabled).
Fantastic, looks really good.

[edit]: corrected a typo.... oh it was'nt a typo :oops:
Last edited by Kurzer on Tue Oct 16, 2007 11:17 am, edited 2 times in total.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

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]).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

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).
Post Reply