Page 1 of 4

With a little help of the forum...

Posted: Sat Nov 19, 2011 10:55 pm
by Roberto Lopez
Hi All,

I'm creating an alternate version of HMG-IDE to make it able to work with HMG.4 (in fact with any hbmk2 project).

A minimal modification is required in buildapp.bat.

The line invoking hbmk2, must be modified as follows to make it able to find .fmg files in the project folder (it's the same for HMG3):
HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -i.
But the true problem is that HMG.4 is unable to build the basic application generated by IDE at project creation.
#include <hmg.ch>

Function Main

Load Window Main
Main.Center <-- SYNTAX ERROR HERE
Main.Activate <-- SYNTAX ERROR HERE

Return
If anyone has a clue about that and can solve it, I'll publish the new IDE (HMG.4 enabled) version.

Attached to this message is the complete project.

TIA.

Re: With a little help of the forum...

Posted: Sat Nov 19, 2011 11:29 pm
by esgici
Hi Maestro

I guess need () after Center and Activate

Code: Select all

        Main.Center    ==>    Main.Center()
        Main.Activate  ==>    Main.Activate()
Best regards

--

Esgici

Re: With a little help of the forum...

Posted: Sat Nov 19, 2011 11:53 pm
by Roberto Lopez
esgici wrote:Hi Maestro

I guess need () after Center and Activate

Code: Select all

        Main.Center    ==>    Main.Center()
        Main.Activate  ==>    Main.Activate()
Best regards

--

Esgici
The program compiles with such changes, but it does not run...

Re: With a little help of the forum...

Posted: Sun Nov 20, 2011 12:00 am
by esgici
Roberto Lopez wrote: The program compiles with such changes, but it does not run...
Yes, like Activate doesn't exist :(

Regards

--

Esgici

Re: With a little help of the forum...

Posted: Sun Nov 20, 2011 9:25 am
by mrduck
Hi Roberto,
I can't check now since I'm leaving.

Please try adding
-DHMG3 on cth hbmk2 command line

This will include hmg3.ch file where there are some other defines needed for hmg3 compatibility

Please also add these 2 lines at the top of source code:
hbqt_errorsys() // to enable error system
hmg3(.T.) // to enable better hmg3 compatibility


I started to do some commits yesterday, I have others to do later today, also about the ide in hmg4

Francesco

Re: With a little help of the forum...

Posted: Sun Nov 20, 2011 9:27 am
by esgici
Hi Maestro
Roberto Lopez wrote: The program compiles with such changes, but it does not run...
I guess you have find, but I find new and I want share with other friends too.

Problem is : ICON clause in DEFINE WINDOW statement doesn't work ( probably for now ).

Program run after extracting ICON clause ( added by IDE automatically ).

Apparently, we have begin a re-learn course for converting HMG3 applications to HMG4 :(

f.e. @ <nRow>, <nCol> syntax seems fully abandoned and our programs have tons of them :cry:

A last note for our friend who want begin to HMG4 ( I guess no too many ): Add

Code: Select all

HbQt_ErrorSys()
at beginning of every main prg; this will very helpful for understanding an learning HMG4.

f.e. after adding this line error message produced and problem appears:
Set Window Icon error mesage
Set Window Icon error mesage
SetWinIconError.JPG (22.78 KiB) Viewed 4337 times
Please nobody don't misunderstand me; I don't want criticize anybody, anything. My only goal is share my humble experiences with my friends.

Regards

--

Esgici

Re: With a little help of the forum...

Posted: Sun Nov 20, 2011 9:31 am
by esgici
I have seen Francesco's response after submitted mine.

I'll try his advises too, thanks.

Regards

--

Esgici

Re: With a little help of the forum...

Posted: Sun Nov 20, 2011 9:38 am
by mrduck
@escigi

The fact that the program compiles means that the @ x,y syntax is fully supported.

The error is about the parameter of ICON. hmg4 is trying to set icon but its parameter is not the expected type. I will check later.

Last summer I was able to compile and execute some .FMG files sent to me by Malek, applying necessary changes to hmg.ch and adding hmg3.ch.

Please note that hmg3.ch is not completed ! there are some things to convert.

Re: With a little help of the forum...

Posted: Sun Nov 20, 2011 9:40 am
by esgici
esgici wrote: I'll try his advises.
Tried; no change :(

Regards

--

Esgci

Re: With a little help of the forum...

Posted: Sun Nov 20, 2011 9:56 am
by esgici
mrduck wrote: The fact that the program compiles means that the @ x,y syntax is fully supported.
Sorry, don't understood :( Where is @ x,y syntax in compiled program ?
The error is about the parameter of ICON.
Please don't repeat said things such your own opinion.
hmg4 is trying to set icon but its parameter is not the expected type.
In the example used only parameter is NIL. Does HMG4 don't understand NIL ?
Please note that hmg3.ch is not completed !
Please also don't repeat known issues. I don't said "announced as 'completed' but left missing".

Only goal is assist you by testing and asking somethings. If you don't like conversations such type, please speak clearly: "I'm closed every kind of critics".

--

Esgici