Prg2Fmg Project

Utilities like DBU, Make, IDE written in HMG/ used to create HMG based applications

Moderator: Rathinagiri

User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Prg2Fmg Project

Post by Pablo César »

More another one.. CheckBox

<Attached file was remove because there is a newer version ahead of this same topic>
Last edited by Pablo César on Thu Nov 03, 2016 4:24 pm, edited 1 time in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Prg2Fmg Project

Post by bpd2000 »

Compile error
Attachments
Untitled.png
Untitled.png (3.72 KiB) Viewed 4694 times
BPD
Convert Dream into Reality through HMG
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Prg2Fmg Project

Post by Pablo César »

bpd2000 wrote:Compile error
Hi Dave,

May you tell me if you have modified any prg of this demo (version 0.4) in your compiling ?

Because according your captured image is indicating at line number 14:
Screen18.png
Screen18.png (21.54 KiB) Viewed 4676 times
In this line is receiving the name of form in the previous prg (in this case Demo4")
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: Prg2Fmg Project

Post by bpd2000 »

Sorry it was my mistake
I doing as "c"\hmg\build prg2fmg
BPD
Convert Dream into Reality through HMG
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Prg2Fmg Project

Post by Pablo César »

bpd2000 wrote:Sorry it was my mistake
I doing as "c"\hmg\build prg2fmg
Ok, not problem Dave. Please note Demo4.prg (main file) must contains:

#include "Prg2Fmg.Prg"

This is because is a external procedure from HMG and it need to be compiled together with your project and be called before ACTIVE your form.

Have you Dave tested with your any prg which has Labels, Buttons and CheckBoxes already ?

Please try it and let me know if is working properlly.
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

Prg2Fmg Project

Post by Pablo César »

After knowing CheckButton has not the due return value to type of control by GetControlType(), It made me do a troubleshooter to solve thiscarelessness in HMG :|

Now I'm working for CheckButton... :?

<Attached file was remove because there is a newer version ahead of this same topic>
Last edited by Pablo César on Thu Nov 03, 2016 4:24 pm, edited 1 time in total.
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

Prg2Fmg Project

Post by Pablo César »

Hi all,

Keeping in progress the project... (Version 1.7)

Following enhancements was applied:

1. Added greetings image as ScreenSplash when exit compiled application.
2. Images added at res file
3. Added menu items at Notify
4. I fixed the bug searching of HMG for compiling proposes
5. ROW, COL, WIDTH and HEIGHT values been better aligned at created FMG
6. "Nil" corrections at VIRTUAL WIDTH and HEIGHT values.
7. For next HMG release, we will able to detect real focused form at Notify
8. Reloading form on the screen as it is by source code in prg

<Attached file was remove because there is a newer version ahead of this same topic>

Enjoy! :P
Last edited by Pablo César on Thu Nov 17, 2016 12:34 pm, edited 2 times in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Steed
Posts: 427
Joined: Sat Dec 12, 2009 3:40 pm

Re: Prg2Fmg Project

Post by Steed »

Thanks
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Prg2Fmg Project

Post by Pablo César »

Keep walking... (Johnnie walker said) :D

Now with a solution regarding CodeBlocks (I'm happy) :D !

Another control was added: ComboBox.

There were two or three colleagues who were willing to help me ... but it seems that working time takes everything for contributors ... :|

I would love to add the names of the contributors in the source. Well we need to work for this ... I go ahead. :P

I hope you like it. I still want to show all the controls in a final example (maybe the MAIN_DEMO) and be possible with all the Windows actions.
Demo7_Exe.rar
Executable file
(1.41 MiB) Downloaded 262 times
Demo7.rar
Source files
(19.72 KiB) Downloaded 260 times
For those who want to compile, it would be better to wait for the new version of HMG error-free.
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

Prg2Fmg Project

Post by Pablo César »

Hi Claudio, could you give me a light on the following please:

I would like to make Prg2Fmg as lib (if that is an advantage) that can be added only by users need FMG creation and in this case it will need to be compiled with their project. But this is just eventual, esporadic or may be will run only one time.

How could you do it in a practical way for the user and who can load the library. Since it has an override of include and functions to call, ahhh and It also use .rc file.

How could it be? Please give me the right way.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply