IDE or manually write source?

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
bobgen
Posts: 7
Joined: Sun Apr 08, 2012 7:17 pm
DBs Used: DBF, SQLite
Location: Croatia

IDE or manually write source?

Post by bobgen »

I'm a beginner at HMG and ask for advice: is it a recommendation to use IDE or manually write source?
I have a lot of experience with Clipper.

Thanks.
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: IDE or manually write source?

Post by mol »

IMO, it's better to use IDE if you want to quickly start.
Sometimes I need to define some forms manually, sometimes I need to add some controls to form defined via IDE.
User avatar
dragancesu
Posts: 920
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: IDE or manually write source?

Post by dragancesu »

Welcome to the world of HMG

Try it both ways, you'll see what's better. PersWelcome to the world of HMG

HMG has plenty clipper syntax but also many control windows that can be written in two ways, it's a little confusing beginners (like me). Try one, try the other way, so you see what you prefer, both are good, a matter of taste

Greeting
User avatar
bpd2000
Posts: 1207
Joined: Sat Sep 10, 2011 4:07 am
Location: India

Re: IDE or manually write source?

Post by bpd2000 »

Welcome from India
BPD
Convert Dream into Reality through HMG
User avatar
gfilatov
Posts: 1060
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: IDE or manually write source?

Post by gfilatov »

bobgen wrote: Tue Jun 13, 2017 8:59 am is it a recommendation to use IDE or manually write source?
Hello,

There is not a strong claim to use IDE but it is a helpful tool for designing of your forms.

BTW You can place the controls on form manually as it's showed in the following sample code:

Code: Select all

#include "minigui.ch"

STATIC Sys_BackColor
STATIC Sys_FontColor

Procedure Main()

LOCAL mNumLine

SET EPOCH TO Year(Date())-50

Sys_BackColor:= {255,255,255}
Sys_FontColor:= {  0,  0,  0}

DEFINE WINDOW Template01;
       AT 186,389;
       WIDTH 500;
       HEIGHT 600;
       TITLE 'Title';
       MAIN


   ON KEY ESCAPE ACTION thiswindow.RELEASE

   mNumLine:= 0

   @ mNumLine+=  10,  20 FRAME           FRAME_1  ;
                         CAPTION 'FRAME_1'   ;
                         WIDTH 340   ;
                         HEIGHT 390   

   @ mNumLine+=  10, 380 BUTTONEX        BUTTONEX_1  ;
                         CAPTION '&Accept'   ;
                         PICTURE 'Aceptar16'   ;
                         WIDTH 100   ;
                         HEIGHT 25   ;
                         ACTION NIL   ;
                         TOOLTIP 'Accept current data'   

   @ mNumLine+=  20,  50 LABEL           LABEL_1  ;
                         VALUE 'LABEL_1'   ;
                         WIDTH 100   ;
                         HEIGHT 15   

   @ mNumLine+=   0, 170 GETBOX          GETBOX_1  ;
                         VALUE 'GETBOX_1'   ;
                         WIDTH 100   ;
                         HEIGHT 20   ;
                         BACKCOLOR Sys_BackColor   ;
                         FONTCOLOR Sys_FontColor   

   @ mNumLine+=  20, 380 BUTTONEX        BUTTONEX_2  ;
                         CAPTION '&Cancel'   ;
                         PICTURE 'CANCELAR16'   ;
                         WIDTH 100   ;
                         HEIGHT 25   ;
                         ACTION NIL   ;
                         TOOLTIP 'Cancel current data'   

   @ mNumLine+=  10,  50 LABEL           LABEL_2  ;
                         VALUE 'LABEL_2'   ;
                         WIDTH 100   ;
                         HEIGHT 15   

   @ mNumLine+=   0, 170 GETBOX          GETBOX_2  ;
                         VALUE 'GETBOX_2'   ;
                         WIDTH 100   ;
                         HEIGHT 20   ;
                         BACKCOLOR Sys_BackColor   ;
                         FONTCOLOR Sys_FontColor   


END WINDOW

Template01.CENTER
Template01.ACTIVATE

RETURN
Note that above sample for using in the HMG Extended Edition only :oops:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: IDE or manually write source?

Post by serge_girard »

Hi Bobgen,

Welcome from Belgium!

Serge
There's nothing you can do that can't be done...
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: IDE or manually write source?

Post by esgici »

bobgen wrote: Tue Jun 13, 2017 8:59 am I'm a beginner at HMG and ask for advice: is it a recommendation to use IDE or manually write source?
I have a lot of experience with Clipper.

Thanks.
Hi Bobgen

Welcome to wonderful world of HMG 8-)

My preference is almost always use IDE, unless requires manual intervention on my code, form(s) or building process.

Salute from Turkiye,

Happy HMG'ing :D
Viva INTERNATIONAL HMG :D
franco
Posts: 816
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Location: Canada

Re: IDE or manually write source?

Post by franco »

Welcome from Canada,
Franco
All The Best,
Franco
Canada
User avatar
bobgen
Posts: 7
Joined: Sun Apr 08, 2012 7:17 pm
DBs Used: DBF, SQLite
Location: Croatia

Re: IDE or manually write source?

Post by bobgen »

Thank you for the answers and good wishes.
I think I'm going to work in the IDE, and if necessary write the code manually. I've tried both variants and I do not have any problems.

Bobgen
hmgaams57
Posts: 129
Joined: Mon Feb 27, 2017 10:00 am

Re: IDE or manually write source?

Post by hmgaams57 »

Welcome from Algeria
Said
Post Reply