FMG tool

Topic Specific Tutorials and Tips.

Moderator: Rathinagiri

Post Reply
User avatar
Czarny_Pijar
Posts: 172
Joined: Thu Mar 18, 2010 11:31 pm
Location: 19.2341 E 50.2267 N

FMG tool

Post by Czarny_Pijar »

Last time when Roberto has anounced his arm is diseased, I've radically tampered my demands for the improvements of HMG. Roberto, I wish you a speedy recovery.

Alas there are some urgent (for me ;) ) problems, so I have to solve it myself.
I am used to the Delphi's IDE. If you are the person like me, you'll like my freeware (with sources - in Delphi of course :mrgreen: ).

With this software you can change the FMG files created in the HMG:

- multiselect the controls, then :
  • move,
  • resize,
  • align in many ways,
  • change the font.
IMHO in the HMG-IDE these tasks may be tedious.
If (I hope) in the future releases HMG-IDE will incorporate these features, then this freeware will be sent to the programmer's heaven. :)
Attachments
fmg_tool.zip
(229.79 KiB) Downloaded 710 times
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: FMG tool

Post by Rathinagiri »

Let me try this. Thanks for sharing Czarny.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: FMG tool

Post by luisvasquezcl »

good tool,
thanks you Czarny
best regards,
luis vasquez
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: FMG tool

Post by sudip »

Hello Cznary,
Thank you very much for sharing this tool. This tool will be very useful. UI is different. As it's in very beginning stage, you may need to polish some rough edges.
It's a very good tool :D
With best regards,
Sudip
User avatar
Czarny_Pijar
Posts: 172
Joined: Thu Mar 18, 2010 11:31 pm
Location: 19.2341 E 50.2267 N

Re: FMG tool

Post by Czarny_Pijar »

sudip wrote:As it's in very beginning stage, you may need to polish some rough edges.
You're absolutely right, this program resembles something more on the left than on the right side of the picture below. :lol:

Feel free to point out the unevitable bugs, inconsequences, and require the new options.
Attachments
bics.PNG
bics.PNG (23.95 KiB) Viewed 8837 times
User avatar
Czarny_Pijar
Posts: 172
Joined: Thu Mar 18, 2010 11:31 pm
Location: 19.2341 E 50.2267 N

Re: FMG tool

Post by Czarny_Pijar »

Here is version 2.

Added:
- Undo button (1 step)

Bugs removed:
- Some overflow checks added,
- Controls : Tree, Panel, Tab resize now can be saved.

Limits were extended:
- Up to 100 controls per form (who need more?)
- Up to 3000 lines in the Fmg file (who has bigger?)
Attachments
fmg_tool_ver2.zip
(240.56 KiB) Downloaded 840 times
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: FMG tool

Post by Rathinagiri »

Nice contribution Cznary. Thanks man.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Steed
Posts: 427
Joined: Sat Dec 12, 2009 3:40 pm

Re: FMG tool

Post by Steed »

Hi, Czarny_Pijar

Did you know ControlPos contribution code?, for Hmg_ext.
I try to adapt this code for hmg but i couldn´t, i do my best.

Regards,

Ed
Attachments
HmgControlPos.zip
ControlPos for Hmg
(24.4 KiB) Downloaded 532 times
HmgExtControlPos.zip
ControlPos for Hmg_Ext
(3.84 KiB) Downloaded 488 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

FMG tool - Version 2

Post by Pablo César »

Czarny_Pijar wrote:Here is version 2.

Added:
- Undo button (1 step)

Bugs removed:
- Some overflow checks added,
- Controls : Tree, Panel, Tab resize now can be saved.

Limits were extended:
- Up to 100 controls per form (who need more?)
- Up to 3000 lines in the Fmg file (who has bigger?)
Very usefull tool, congratulations colleague !

I see FMG tool user needs to search sources/fmg folder all the time you started app. Would you permit to make a tip for improvements in this case ? FMG tool could accept parameter from command line in order to receive the folder target ou you can save last folder in INI file. Then will be more quick to find last projects.

I liked much, because all elements can be shifted, resized by selecting it. Really: very good !

Thank for your sharing ! And sorry to ask this, but I have no Delphi for compiling.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

FMG tool

Post by Pablo César »

Steed wrote:Hi, Czarny_Pijar

Did you know ControlPos contribution code?, for Hmg_ext.
I try to adapt this code for hmg but i couldn´t, i do my best.

Regards,

Ed
I have tested this Minigui's sample and I am impressed. I got it something but need to compile all the time we change FMG file. So, I am trying to develop my own app based on C:\MiniGUI\SAMPLES\Advanced\ControlPos_3 example, putting variable the name of fmg file. Considering that we need to compile to include components in source code and also considering can be usable Hb_CompileFromBuf(), Hb_HrbDo() and Hb_HrbLoad(), we can say that compile in runtime is possible. But Harbour is returning some GUI commands as error. So, I decided to execute internal functions. But unsucessfull... :cry:

Please I need a valious help ! I wish to optimize this APP for Changing positon, size, proprieties of each control in FMG file. Would it be so great, but I need a help... please...

I have attached source files, just to understand what I am doing.
Attachments
ControlPos_3.rar
(688.17 KiB) Downloaded 566 times
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply