Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I tell what object on a form has the current focus
Message
 
À
08/11/1999 16:52:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00288577
Message ID:
00289335
Vues:
20
>Hi Terry,
>
>>in the controls Gotfocus:
>>ThisControlHasFocus=this.name
>
>I think that storing the object reference as opposed to the name is much more valuable.
>
>What is there is a cmdOK on Page 1 and 2 of a Pageframe and the form and in a container? Just the name doesn't help much.
>
>If you do get the names down, how are you going to do antyhing with the object:
>
>
loObject = "thisform." + Thisform.ThisControlHasFocus
>&loObject..Caption = 'Caption1'
?
>
Your right, the entire control "path" needs to be referenced. Another tool I used to work with, offered an HWND for each control. And during those times, i thought it important to know where "the user had been" before he got here.

Modality is a hard habit to break!

Times change (i heard that before). Since then, my "SAVE" buttons don't get enabled (as do my "UnDo's), unless triggers off InterActiveChange and Valids, say they do.

I was following a response Ed Rauh had made to the top of this thread: He offered: Whats important is where the user is. I followed with a remember_last_control variable (we could have used the tag property), but the bottom half of the message must have been lost, cause it concluded the very same as Ed: Remebering the last control is an exercise in futility. The paradigm is no longer modal, eg: There is no last, there is no next - there is only NOW!

Did that feel as good for you as it did for me (G)?
Terry
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform