HMG4 clarification

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

HMG4 clarification

Post by l3whmg »

Hy guys,
can someone give me a clarification on:

1. Is it true that I can't call :Release() method from :OnInit() method of the same form?

2. How can I automatically open a new form immediately after displaying the main form?

3. To properly close a modal form I'm using this sequence:

Code: Select all

  FormName:Release()
  FormName:oEventLoop:Exit( 0 )
May be my problem or is there a problem?

Cheers
Luigi from Italy
www.L3W.it
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG4 clarification

Post by Rathinagiri »

Can you please post your sample code here Luigi?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG4 clarification

Post by l3whmg »

Hi Rathinagiri,
many thanks for your interesting.

Attached, you can find two sources. One is made with a classic style while the other with classes.

Explanation of the simulation:
- The appearance of a main form, automatic appearance of a form to log (buttons simulate the login deny or accept).
- If rejected, the main form must disappear, otherwise you can start working.
Note: at this time, to allow the issue of the login form, a button is activated, read the source code and uncomment the lines indicated.

Problems.

1) if I remove the statement "oEventLoop:Exit( 0 )" from "BadLogin()", the login form does not disappear when you press "BadLogin".

2) when you uncomment the lines indicated in the source, to simulate the automatic login, if you press the "Bad login" the main form does not disappear, it will remain.

Cheers.

For everyone, in my land it's arrived the Carnival. "Storico Carnevale di Ivrea" Italy.
These are some pictures
http://www.google.it/images?hl=it&q=ivr ... 80&bih=553
On YouTube a lot like this http://www.youtube.com/watch?v=PiYUCbHYN3M
Attachments
Ctest.zip
sources
(2.15 KiB) Downloaded 187 times
Luigi from Italy
www.L3W.it
Post Reply