Versions des environnements
Network:
Windows 2008 Server
>I'm sorry. Okay. I am disabling the calling button and bringing up two sub buttons.
>The user can either select one of the buttons to bring up a new form OR press
>the escape key to enable to original button that called them.
I would suggest creating a class that is instantiated at the time of the first button press, which receives as a parameter the button control which called it, then hides the class the first button belongs to, and positions the new class wherever it needs to go relative to the first button, and then shows itself and sets focus on a particular button. When the Escape key is pressed, the newly added class will remove itself, and make the original class that called it visible again.
That way each thing does one set of related things:
(1) First button creates the class, passing itself as a parameter
(2) New class:
(2a) Positions itself relative to the first button's class,
(2b) Hides first button's class,
(2c) Makes itself visible
(2d) Sets focus on itself
When the user presses escape:
(3) New class makes first button class visible
(4) Destroys itself.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement