Re: Ctrl, Shift & Alt (Over multiple forms)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



ratz wrote:
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.)



Right in the middle of a triangle formed by those three modifier keys,
most keyboards these days have what I sometimes refer to as "the stupid key"

And then there's alt-tab, and LOTS of other keys which will BY DESIGN
steal focus from your app.

I'd suggest it's just not a very friendly UI.



Bob
--
.



Relevant Pages

  • Re: Single use command considered harmful
    ... keys, i.e. verbs) make the interface both faster and more comprehensible, ... Question is not rhetorical -- single use command should at least ... You don't need a strong semantics on the interface to make the player ...
    (rec.games.roguelike.development)
  • Re: Ctrl, Shift & Alt (Over multiple forms)
    ... alter the behavior of command buttons. ... interface, showing captions describing the altered behaviors. ... Command buttons check Shift states and with KeyDown/KeyUp on the forms, ...
    (microsoft.public.vb.general.discussion)
  • Ctrl, Shift & Alt (Over multiple forms)
    ... alter the behavior of command buttons. ... interface, showing captions describing the altered behaviors. ... Command buttons check Shift states and with KeyDown/KeyUp on the forms, ...
    (microsoft.public.vb.general.discussion)
  • Re: Interface MTU permanent config
    ... network interface can be permanently set so that it survives a reboot. ... possible to set the wi-fi MTU using ifconfig. ... of the keys and type "show " followed by one of those keys to get ... I'd like to be able to read these settings from the command line instead ...
    (uk.comp.sys.mac)
  • Re: Ctrl, Shift & Alt (Over multiple forms)
    ... Application consisting of multiple forms, uses Ctrl, Shift & Alt to ... alter the behavior of command buttons. ... interface, showing captions describing the altered behaviors. ...
    (microsoft.public.vb.general.discussion)