Page 1 of 1

HMG4 clarification

Posted: Fri Mar 04, 2011 5:55 pm
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

Re: HMG4 clarification

Posted: Fri Mar 04, 2011 7:58 pm
by Rathinagiri
Can you please post your sample code here Luigi?

Re: HMG4 clarification

Posted: Fri Mar 04, 2011 9:11 pm
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