FMG_View - HMG form utility
Posted: Thu Oct 27, 2016 12:11 pm
Hi All,
When recently I've started with Prg2Fmg project I saw that I could do nothing with respect to CodeBlocks... I mean deserialization case of Harbour restriction/impossibility. But then I've remembered that I have been successful at FMG_Editor project where it's possibe to open FMG on the runtime ("on the fly", dynamically) without any prior compilation/rebuilding of any. Just execute FMG_View.exe.
You'll find two ways: executing app by clicking or by typing at prompt command with one parameter (name of fmg file, with or without extension) and you can inform with path where fmg will be.
Example:
The question was: what to do with the ACTION properties and what to do with functions no be present in the fmg file?
The answer is: Simple to derogate all ACTIONs by displaying with MsgInfo.
In FMG_View all forms al treated as MAIN. Probably this could be changed but I think for displaying only it's good enough.
Also detect when is ANSI or UNICODE format in FMGs.
There are other functions but not used, it only serves as inspiration to other applications.
If you want, can use as you wish and I accept suggestions but if there are any errors in the app execution, I would like that be largely explained what were the tests. Preferably, please attach the FMG file.
This application will serve as a basis for Prg2Fmg project too.
<Attached files were removed because there is a newer version ahead of this same topic.>
FMG_View has not screens to be displayed. The screen wiil be your form and controls.
I hope you enjoy!
When recently I've started with Prg2Fmg project I saw that I could do nothing with respect to CodeBlocks... I mean deserialization case of Harbour restriction/impossibility. But then I've remembered that I have been successful at FMG_Editor project where it's possibe to open FMG on the runtime ("on the fly", dynamically) without any prior compilation/rebuilding of any. Just execute FMG_View.exe.
You'll find two ways: executing app by clicking or by typing at prompt command with one parameter (name of fmg file, with or without extension) and you can inform with path where fmg will be.
Example:
I've tested with "normal" fmg files from SAMPLES. Prg2Fmg recognize at comments of fmg files when is ooHG or HMG Extended and advise to user. Also works with Standard Syntax (xBase Style) in fmg files, accepts EOC (EndOfCommand) with ";" character at end of each line, which pass from concatenation procedure too.FMG_View C:\hmg.3.4.3\SAMPLES\Controls\ToolBar\TOOLBAR\toolbar.fmg

The question was: what to do with the ACTION properties and what to do with functions no be present in the fmg file?
The answer is: Simple to derogate all ACTIONs by displaying with MsgInfo.
In FMG_View all forms al treated as MAIN. Probably this could be changed but I think for displaying only it's good enough.
Also detect when is ANSI or UNICODE format in FMGs.
There are other functions but not used, it only serves as inspiration to other applications.
If you want, can use as you wish and I accept suggestions but if there are any errors in the app execution, I would like that be largely explained what were the tests. Preferably, please attach the FMG file.
This application will serve as a basis for Prg2Fmg project too.

<Attached files were removed because there is a newer version ahead of this same topic.>
FMG_View has not screens to be displayed. The screen wiil be your form and controls.

I hope you enjoy!
