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
Has thanked: 11 times

IDE or manually write source?

Post by bobgen » 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.

User avatar
mol
Posts: 2875
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 135 times
Been thanked: 66 times
Contact:

Post by mol » Tue Jun 13, 2017 9:04 am

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: 477
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia
Has thanked: 3 times
Been thanked: 75 times

Post by dragancesu » Tue Jun 13, 2017 10:24 am

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: 962
Joined: Sat Sep 10, 2011 4:07 am
Location: India
Has thanked: 132 times
Been thanked: 43 times

Post by bpd2000 » Tue Jun 13, 2017 10:44 am

Welcome from India
BPD
Convert Dream into Reality through HMG

User avatar
gfilatov
Posts: 519
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 8 times
Been thanked: 72 times
Contact:

Post by gfilatov » Tue Jun 13, 2017 11:46 am

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: 1905
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 315 times
Been thanked: 74 times
Contact:

Post by serge_girard » Tue Jun 13, 2017 1:21 pm

Hi Bobgen,

Welcome from Belgium!

Serge

User avatar
esgici
Posts: 4363
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 245 times
Been thanked: 91 times
Contact:

Post by esgici » Tue Jun 13, 2017 3:27 pm

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: 213
Joined: Sat Nov 02, 2013 5:42 am
DBs Used: DBF
Been thanked: 6 times

Post by franco » Tue Jun 13, 2017 3:44 pm

Welcome from Canada,
Franco

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

Post by bobgen » Tue Jun 13, 2017 10:42 pm

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: 92
Joined: Mon Feb 27, 2017 10:00 am
Been thanked: 2 times
Contact:

Post by hmgaams57 » Tue Jun 13, 2017 11:21 pm

Welcome from Algeria
Said

Post Reply