Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Focus of modal form
Message
 
À
02/10/1998 13:32:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00143348
Message ID:
00143376
Vues:
27
>I have a formset with FORM1 and FORM2. FORM1's INIT states
>THISFORMSET.FORM2.HIDE - THISFORMSET.FORM2.SHOW is in a textbox lostfocus - It works but the focus returns to the next textbox on FORM1 in the proper tab order. How do I keep the focus on FORM2?
>I've tried THISFORMSET.FORM2.SETFOCUS just after the SHOW command but that didn't work.

Peter,

You have two problems here. 1) you need to put focus on one of the controls in form2 and 2) you have to stop the natural behavior of the lostfocus which puts focus on the next control in the tab order.

The first I can't help you with because I have no idea what contrls are in form2, but the second is accomplished by issuing a NODEFAULT command in the LostFocus right after your SetFocus call.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform