Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_OBJCUR
Message
De
11/07/1997 23:41:06
 
 
À
11/07/1997 08:46:23
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapour
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00039396
Message ID:
00039657
Vues:
31
>I am writing an 'Edit' button class. When the user presses the button, I need to set the focus to the first object on the form. I don't think I should use a specific name for the first object of all my form. Any way to do it?
>
>
>Tai SC
>
>
>>In VFP, How do I set focus to the first object on the form during runtime if I don't know the name of the first object? I need the cursor to be at the first object when the user presses 'edit' button.
>>
>>Tai SC

You can add a property to your base form class "FIRST_EDIT_CONTROL" which will contain the object name, and in the edit button class add the following:
lcsetfocus = alltrim(thisform.first_edit_control) + '.setfocus()'
&lcsetfocus
System Analyst
Nabil B. Ghrayyeb
nabilg@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform