[UPDATED] HMG.4 IDE Test

HMG announcements; Latest HMG-related news, releases, fixes and updates.

Moderator: Rathinagiri

User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

[UPDATED] HMG.4 IDE Test

Post 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!
Attachments
ide.4b.zip
(960.14 KiB) Downloaded 596 times
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: [UPDATED] HMG.4 IDE Test

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: [UPDATED] HMG.4 IDE Test

Post by Rathinagiri »

Thank you very much Roberto.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: [UPDATED] HMG.4 IDE Test

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: [UPDATED] HMG.4 IDE Test

Post by Rathinagiri »

Definitely Roberto.

Actually I have to cleanup something.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: [UPDATED] HMG.4 IDE Test

Post by Roberto Lopez »

rathinagiri wrote:Definitely Roberto.

Actually I have to cleanup something.
Thanks!
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: [UPDATED] HMG.4 IDE Test

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: [UPDATED] HMG.4 IDE Test

Post 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

Regards/Saludos,

Roberto


(Veritas Filia Temporis)
User avatar
danielmaximiliano
Posts: 2646
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: [UPDATED] HMG.4 IDE Test

Post 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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
jairpinho
Posts: 420
Joined: Mon Jul 18, 2011 5:36 pm
Location: Rio Grande do Sul - Brasil
Contact:

Re: [UPDATED] HMG.4 IDE Test

Post by jairpinho »

error while compiling

does not accept *.FMG attached zip attached
Attachments
Main.zip
(1.73 KiB) Downloaded 479 times
Imagem1.png
Imagem1.png (169.99 KiB) Viewed 9178 times
Last edited by jairpinho on Fri Nov 25, 2011 9:56 pm, edited 1 time in total.
Jair Pinho
HMG ALTA REVOLUÇÃO xBASE
HMG xBASE REVOLUTION HIGH
http://www.hmgforum.com.br
Post Reply