Page 1 of 2
[UPDATED] HMG.4 IDE Test
Posted: Mon Nov 21, 2011 12:57 am
by Roberto Lopez
Hi All,
A new release of HMG IDE.4 test version.
It fixes some problems.
You need to download updated HMG.4 sources (at least 2011.11.20) and rebuild the library.
Besides that, you must to change the 'buildaapp.bat' file with the following:
Code: Select all
@echo off
REM
REM $Id$
REM
IF DEFINED HMGPATH GOTO HmgPathDefined
SET HMGPATH=c:\hmg.4
SET PATH=%HMGPATH%\harbour\bin;%HMGPATH%\harbour\comp\mingw\bin;%PATH%
SET HB_WITH_QT=%HMGPATH%\harbour\include
:HmgPathDefined
if "%1"=="/3" goto compatible
HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -w3 -es2
goto end
:compatible
shift
HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -DHMG3 -i. -run
pause
:end
Do not forget to change hmg.ini file content (if required) to match your HMG.4 location.
Thanks to Francesco for tuning HMG.4 to make this possible.
Enjoy!
Re: [UPDATED] HMG.4 IDE Test
Posted: Mon Nov 21, 2011 1:30 am
by Roberto Lopez
Repost of some important things about this release:
Some important things:
- The way in that HMG 3 IDE form designer generates code IS NOT the recommended way to code semi-oop in HMG.4. It reflects the status of HMG at first IDE release in 2004 (MiniGUI library at that time). That style will be supported for backwards compatibility only.
I'm talking about (specifically) of DEFINE WINDOW, DEFINE TAB, DEFINE TREE and other commands that requires that all properties (clauses) be specified in the same line.
This way of coding is considered DEPRECATED (backwards compatible only) in HMG.4.
The preferred semi-oop way is shown in this sample (one property by line):
Code: Select all
DEFINE MAINWINDOW MainForm
ROW 10
COL 10
WIDTH 600
HEIGHT 600
TITLE "CHILD window demo"
ONINIT MainFrmOnInit()
- This IDE.4 is only temporary, until the new IDE be finished.
Re: [UPDATED] HMG.4 IDE Test
Posted: Mon Nov 21, 2011 2:58 am
by Rathinagiri
Thank you very much Roberto.
Re: [UPDATED] HMG.4 IDE Test
Posted: Mon Nov 21, 2011 3:20 am
by Roberto Lopez
rathinagiri wrote:Thank you very much Roberto.
As always, thanks to you for your invaluable help.
If you consider adequate, please, include the IDE in the next HMG.4 binary build.
TIA.
Re: [UPDATED] HMG.4 IDE Test
Posted: Mon Nov 21, 2011 3:59 am
by Rathinagiri
Definitely Roberto.
Actually I have to cleanup something.
Re: [UPDATED] HMG.4 IDE Test
Posted: Mon Nov 21, 2011 12:27 pm
by Roberto Lopez
rathinagiri wrote:Definitely Roberto.
Actually I have to cleanup something.
Thanks!
Re: [UPDATED] HMG.4 IDE Test
Posted: Mon Nov 21, 2011 12:48 pm
by Roberto Lopez
rathinagiri wrote:Definitely Roberto.
Actually I have to cleanup something.
And... if that was not already done, please, upload to the SVN the modified 'buildapp.bat' shown in the first message of this thread. Without it, the IDE will not be able to create applications.
It does not alter the previous operation. It only adds the optional '/3' parameter used by IDE to build apps.
TIA.
Re: [UPDATED] HMG.4 IDE Test
Posted: Fri Nov 25, 2011 12:27 pm
by Roberto Lopez
I've made some modifications to buildapp.bat to have a better way to look at errors.
It captures screen messages and opens the NOTEPAD after build (if errors) to comfortably take a look at the results.
This is the new file:
Code: Select all
@echo off
REM
REM $Id$
REM
IF DEFINED HMGPATH GOTO HmgPathDefined
SET HMGPATH=c:\hmg.4
SET PATH=%HMGPATH%\harbour\bin;%HMGPATH%\harbour\comp\mingw\bin;%PATH%
SET HB_WITH_QT=%HMGPATH%\harbour\include
:HmgPathDefined
if "%1"=="/3" goto compatible
HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -w3 -es2
goto end
:compatible
shift
HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -q -DHMG3 -i. -run >build.log 2>&1
IF ERRORLEVEL 1 NOTEPAD build.log
:end
Re: [UPDATED] HMG.4 IDE Test
Posted: Fri Nov 25, 2011 1:03 pm
by danielmaximiliano
Gracias por tu trabajo Roberto.
era necesario saber como termina la compilacion; ya que el IDE no llegaba a mostrar los errores si hubo uno.
Re: [UPDATED] HMG.4 IDE Test
Posted: Fri Nov 25, 2011 3:06 pm
by jairpinho
error while compiling
does not accept *.FMG attached zip attached