Page 1 of 2

IDE or manually write source?

Posted: Tue Jun 13, 2017 8:59 am
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.

Re: IDE or manually write source?

Posted: Tue Jun 13, 2017 9:04 am
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.

Re: IDE or manually write source?

Posted: Tue Jun 13, 2017 10:24 am
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

Re: IDE or manually write source?

Posted: Tue Jun 13, 2017 10:44 am
by bpd2000
Welcome from India

Re: IDE or manually write source?

Posted: Tue Jun 13, 2017 11:46 am
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:

Re: IDE or manually write source?

Posted: Tue Jun 13, 2017 1:21 pm
by serge_girard
Hi Bobgen,

Welcome from Belgium!

Serge

Re: IDE or manually write source?

Posted: Tue Jun 13, 2017 3:27 pm
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

Re: IDE or manually write source?

Posted: Tue Jun 13, 2017 3:44 pm
by franco
Welcome from Canada,
Franco

Re: IDE or manually write source?

Posted: Tue Jun 13, 2017 10:42 pm
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

Re: IDE or manually write source?

Posted: Tue Jun 13, 2017 11:21 pm
by hmgaams57
Welcome from Algeria
Said