Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Focus of modal form
Message
De
03/10/1998 15:08:09
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00143348
Message ID:
00143629
Vues:
19
>>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.

How about thisformset.form2.controls[1].setfocus? Though, this may be tricky too, depending on what is the first control there - it may be something which can't receive a focus at all.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform