Ctrl + mouse click implementation problem

  • Thread starter Thread starter Dmitry
  • Start date Start date
D

Dmitry

Hi,

I'm trying to implement "multiple selection" feature the way it's usually
done in Windows - hold the "Ctrl" key and mouse-click on the items you want
to select. The problem is that I don't receive KeyUp/Down event neither by
the top-most form, not by the embedded into it controls. I even tried to use
Spy++ to see if pressing "Ctrl" key results in sending an appropriate
event - and it doesn't. No keyboard events detected at all. I guess I'm
doing something fundamentally wrong - any insight would be very much
appreciated.

Regards,
Dmitry.
 
* "Dmitry said:
I'm trying to implement "multiple selection" feature the way it's usually
done in Windows - hold the "Ctrl" key and mouse-click on the items you want
to select. The problem is that I don't receive KeyUp/Down event neither by
the top-most form, not by the embedded into it controls. I even tried to use
Spy++ to see if pressing "Ctrl" key results in sending an appropriate
event - and it doesn't. No keyboard events detected at all. I guess I'm
doing something fundamentally wrong - any insight would be very much
appreciated.

In the, for example, click event, use this:

\\\
MsgBox((Control.ModifierKeys And Keys.Control) <> 0)
///
 
It works, thanks a lot!
Any hint though why I don't see any WM_KEY... messages in Spy++?

Thanks,
Dmitry.
 
Back
Top