Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detectar cambio de control en un contenedor
Message
From
04/03/2002 07:07:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
04/03/2002 06:52:26
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00627710
Message ID:
00627713
Views:
18
>En un contenedor tengo diversos textbox. Necesito conocer cuando el foco ha cambiado de uno a otro.
>
>He creado el evento Assign de la propiedad del contenedor ActiveObject, pero por alguna razón no se dispara el evento.
>
>Conocéis que puede estar pasando o una manera alternativa de conocer cuando ha cambiado el foco a otro control dentro de un contenedor.
>
>Un saludo.
>José Luis.

Cada objeto contenido tiene métodos GotFocus() y When(), pero no sé cómo interceptar a nivel del Container.

Tal vez puedes verificar el cambio de ActiveObject después de cada KeyPress(). Esto tendría que ser a nivel de formulario (el formulario podría notificar al contenedor que se ha ejecutado KeyPress(). No se me ocurre una mejor solución por el momento.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform