Converting Clipper to GUI using HMG instructions?

Moderator: Rathinagiri

User avatar
CarlosRD
Posts: 63
Joined: Thu Jan 31, 2013 9:20 pm
Location: Orizaba, México

Re: Converting Clipper to GUI using HMG instructions?

Post by CarlosRD »

bobypoz wrote:I have been able to convert clipper to console mode windows application using HMG? But what to do then?! Where to start? I have been searching the web for answer, and have not found one yet...so I hope to find it here. I think there are a lot of people who are stuck with this problem. So, any suggestions are welcome.
hi bobypoz:

i think what you need is to convert your 16-bit applications into 32-bit graphic mode.
it takes to me some time to learn, but now it is very easy.
i found two blogs and after this forum. Here, there are very nice people who can teach you in your needs, only you need to ask.
you need to see some samples to know how HMG works, for that, follow this two links.

http://vivaclipper.wordpress.com/catego ... g-samples/
http://www.harbourminigui.com/index.php

Also, in hmg/samples, you can find a lot of .prg samples that will help you.

get encourage and good look. regards
Todo en el Nombre de Jesus / All in the name of Jesus
Carlos RD
bobypoz
Posts: 9
Joined: Wed Mar 20, 2013 9:15 am

Re: Converting Clipper to GUI using HMG instructions?

Post by bobypoz »

I converted it into 32bit console app as raumi75 said in his blog, but do not know where to start making my 32bit console application into GUI application. What to do with say- get, how to arrange arrays?! What are the steps to take so that process would be not as painful as I think it will be.



Daniel: Yes, some fuctions are missing as this is just a part of my application. I posted it because it fills two arrays, and that is something that I do not know how to do in HMG.

Carlos: Yes, that is what I need to do. Hope that you can explain me how to do it, so it becomes easy to me. :-)
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Converting Clipper to GUI using HMG instructions?

Post by Rathinagiri »

Hi,

First of all we must digest the fact that we are in no more in full control of the user's activities! User can do whatever he wants. He can just minimize the window and do other job. He can click any of the button at any time. So, GUI is event based. @ say became @ label. @ get became @ textbox, editbox, combobox, datepicker so on and so forth.

We draw a window. Put some controls. Write procedures for each of the user's event (like click, double click etc).

Take up your smallest project, may be having a single screen. Convert that into GUI based one. You can easily catch up the speed.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
danielmaximiliano
Posts: 2607
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Converting Clipper to GUI using HMG instructions?

Post by danielmaximiliano »

bobypoz wrote: Carlos: Yes, that is what I need to do. Hope that you can explain me how to do it, so it becomes easy to me. :-)
Translate Google

Hello Bobypoz:
The file I uploaded called EKOMP.RAR contains all the necessary files for you simply Start
migration to a 32bit application with or without GUI.
EKOMP.rar
(820.38 KiB) Downloaded 502 times
If you read the blog Raumi75 friend suggest a package to use the project manager is generally called IDE (integrated development environment), this IDE is in c:\hmg.3.1.1\ide\ide.exe of HMG installation.
create you a direct access to the desktop of your operating system to have on hand when needed.

1) then doubleclick on the Access to open the IDE and to work with.
hmg.png
hmg.png (237.4 KiB) Viewed 8932 times
2) on the menu choose "File", "Open Project" or just press the "F2", navigate to where the file is decompressed to send you this file has to be unzipped in c:\ekomp when it enters the folder is a file called ekomp.hbp, shall select this file and open the project.

3) and can work with your project, you can open the file .Prg with just doubleclick on the tab "Module", "Project Browser" it will open the default editor Notepad + +.

4) and can work with your project, you can modify the form that contains all the controls you need, this is the main form in your application, you can have more forms if necessary, to modify the current form only has to doubleclick "ekomp.fmg" in the tab "Form".
HMGforum.png
HMGforum.png (104.17 KiB) Viewed 8932 times
as you become familiar with the IDE as Rathinagiri friend says you can create a simple project and thus learn working with HMG.
remember that in the IDE has the reference manual HMG selecting the "HELP MENU", "Reference HMG".
your browser will open in the reference manual, read "BASIC" to understand everything about HMG.

since we're here to help.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
bobypoz
Posts: 9
Joined: Wed Mar 20, 2013 9:15 am

Re: Converting Clipper to GUI using HMG instructions?

Post by bobypoz »

Thank you all, you are very helpful and full of patience with me "GUI begginer"! :D


Will try Daniel, and update on the progress.
bobypoz
Posts: 9
Joined: Wed Mar 20, 2013 9:15 am

Re: Converting Clipper to GUI using HMG instructions?

Post by bobypoz »

Daniel, when I try to compile the file you posted, I get an error. Can you help me with this?
Attachments
error.rar
this is error.log
(746 Bytes) Downloaded 375 times
User avatar
danielmaximiliano
Posts: 2607
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Converting Clipper to GUI using HMG instructions?

Post by danielmaximiliano »

bobypoz wrote:Daniel, when I try to compile the file you posted, I get an error. Can you help me with this?
There is no error when trying to compile your application Boby
The only error that is generated when you run the EKOMP.EXE is missing from the tables.

This image attached
ekomp.png
ekomp.png (332.2 KiB) Viewed 8914 times
.

Extract files in c:\ekomp
run IDE
Compile with IDE
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply