Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a from from a command button
Message
De
27/10/1998 09:23:39
 
 
À
26/10/1998 21:42:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00150720
Message ID:
00150881
Vues:
32
>>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.

Mike, why do you need to hide/show forms. This is normal Windows behaviour to have as many forms opened (visible) as user really opened. Any form jumps are more confusing than helpful.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform