Board index » delphi » Help with TCustomListBox

Help with TCustomListBox

Is there a way to send the control TCustomListBox a message that
the control key is always in a down state?

Any help would be GREATLY Appreciated!

Thank you.

 

Re:Help with TCustomListBox


Quote
> Is there a way to send the control TCustomListBox a message that
> the control key is always in a down state?

> Any help would be GREATLY Appreciated!

This is not done with a message, you simply modify the key state array of
your thread directly.

Procedure SetVKeyState( vkey: Byte; down: Boolean );
  Var
    keys: TKeyboardState;
  Begin
    getKeyboardstate( keys );
    If down then
      keys[vkey] := keys[vkey] or $80
    Else
      keys[vkey] := keys[vkey] and $7F;
    setKeyboardState( keys );
  End;

SetVKeystate( VK_CONTROL, true );

Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitely requested!

Other Threads