![]() |
Touch-It Virtual Keyboard | Version 4.9.2 |
| Trap Windows messages |
|
Delphi example of how to trap Windows messages within your application. Messages are dispatched using Windows Message key. Two arguments must be supplied:
Interface
type
TForm1 = class(TForm)
//Override the Windows messages manager var
//Variables for unique Windows message ID implementation procedure TForm1.WndProc(var Message :TMessage); begin
if Message.Msg = WM_TOUCHITTEST then case Message.wParam of
0 : //Insert the button up event code here... end
else if Message.Msg = WM_TOUCHITSTART then else inherited: end; //Create the unique Windows message ID initialization
WM_TOUCHITTEST := RegisterWindowMessage('WM_TOUCHITTEST'); |
| Copyright © 2011 Chessware SA |