Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting changes between controls in a container
Message
 
 
À
05/03/2002 11:33:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00628486
Message ID:
00628544
Vues:
22
>I have many text boxes on a container, and I need to know the exact moment
>when focus changes from one to another.
>I am using the Assign event from the property of the ActiveObject container,
>but for some reason the event never fires.
>Do you know what is happening? or maybe an alternative way to know when the
>focus changes between controls in a container?
>I can´t change the base class for the objects into the container but I can redefine the container class.
>I´m trying with a Timer object added in runtime to container to check ActiveObject change, but I dislike this solution because I dislike to use timers controls.
>
>Thanks.
>José Luis
>Alicante - Spain

Jose',
I know I will be riduculed for this by I handled that situation in an old VFP3 Application by
In the Main Startup a I defined a global variable 'gccurrentfocus' that on got focus in each item in all containers was assigned the name of the control...
Sounds sloppy but It was great to know the location (or last location) at an error or during interrogation of a user.

A quicky solution to change of focus would be to trigger a routine in each gotfocus ... I'm sure there is a better way if time permits
Edgar L. Bolton, B.S. B.B.A.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform