Ctrl, Shift & Alt (Over multiple forms)
- From: "ratz" <rrzzrr@xxxxxxxxx>
- Date: 7 Jan 2007 11:47:25 -0800
Question:
Can anyone tell me how to >>reliably<< monitor Command Key states
inside my application to alter the interface?
Situation: (Skip to Problem if it gets tedious)
Application consisting of multiple forms, uses Ctrl, Shift & Alt to
alter the behavior of command buttons. In addition to altering the
behavior of command buttons, holding down a command key alters the
interface, showing captions describing the altered behaviors.
Example (ShiftState / Behavior)
0 / Save
1 / Save (only) Selected items
2 / Save (only) Filtered items
3 / Save Selected Filtered items
....
Command buttons check Shift states and with KeyDown/KeyUp on the forms,
Shift is routed to a central sub which controls Command button
captions. It works, but poorly.
Problem:
When holding-down (combinations of) Ctrl, Shift and Alt is used to
browse the interface, at times it gets stuck. Sometimes it seem all of
the forms have lost focus somehow (and you have to click a form and
jiggle the keys to reset) or a keycombo is stuck (in KeyDown?) (and you
have to jiggle the keys to reset.)
.
- Follow-Ups:
- Re: Ctrl, Shift & Alt (Over multiple forms)
- From: Bob O`Bob
- Re: Ctrl, Shift & Alt (Over multiple forms)
- From: MikeD
- Re: Ctrl, Shift & Alt (Over multiple forms)
- From: J French
- Re: Ctrl, Shift & Alt (Over multiple forms)
- Prev by Date: Re: GetAttr and long file names -> "Invalid procedure call or argument"
- Next by Date: Re: Problem with SWP_NOACTIVATE/ SWP_NOOWNERZORDER
- Previous by thread: GetAttr and long file names -> "Invalid procedure call or argument"
- Next by thread: Re: Ctrl, Shift & Alt (Over multiple forms)
- Index(es):
Relevant Pages
|