OK, how do I get the KEYPRESS and such messages into wndproc? I can't call it normally…
Perhaps a variant record type?
Jeff.
*********** REPLY SEPARATOR ***********

Mailing lists / lazarus / 1999-11
4 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
OK, how do I get the KEYPRESS and such messages into wndproc? I can't call it normally…
Perhaps a variant record type?
Jeff.
*********** REPLY SEPARATOR ***********
OK, how do I get the KEYPRESS and such messages into wndproc? I can't call it normally…
+ From: Shane Miller
+
+ OK, how do I get the KEYPRESS and such messages into wndproc?
+ I can't call it normally because I need to send a TLMKEY
+ record structure (or something like that) and wndproc expects
+ a TLMessage structure. I CAN'T typecast it so how do I send this?
Can you create a TLMessage (LM_KEYPRESSED) and fill in the info needed (without typecasting) ? I haven't acces to the sources here
Marc
There are a few events now using the wndproc I am converting the rest as I go.
What I am doing is calling TContol(data).WindowProc(Msg); Problem is it's expecting a TLMessage record and for events like a keypress, it sends a TLKeyPress record. Not sure what to do, but I'll figure it out...
------------------------------------------------------------ Shane Miller
Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870
Home page : http://www.lakefield.net/~smiller
Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip
Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard
Lazarus : http://www.miraclec.com/lazarus
----------------------------------------------------------
OK, how do I get the KEYPRESS and such messages into wndproc? I can't call it normally because I need to send a TLMKEY record structure (or something like that) and wndproc expects a TLMessage structure. I CAN'T typecast it so how do I send this? Shane