Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Hi, Mike.
>Does it help to set the toplevel form as invisible when you do the called form
>and reset it visible when the called form is released? They need to be desktop forms, right? Not sure about in 6.0...
>
>
>>
>>1. User clicks pushbutton on top level form.
>>2. Top level form disappears, focus goes to and remains on
>> modeless called form until called form is released.
>>3. Top level form reappears and receives focus.
>>
I just tried that and it didn't work. The problem is that execution continues on past the DO FORM command in the calling form, regardless of whether I hide() the calling form or set it's visible property to .F.
I have just about decided to have the top level form release itself after it calls the subform, and have the subform reinvoke the top level form when it exits. i.e. FORM A has a DO FORM B in its button click code and then does a ThisForm.Release(), FORM B has a DO FORM A in its Destroy method.
I'm just hoping someone will tell me there is a better way.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement