@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.
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):
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.
@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