Anyone know which LM_Message the button onclick is looking for. I am so very close but cannot seem to get the event back to my assigned handler.
Cliff

Mailing lists / lazarus / 2000-04
3 messages · 2 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Anyone know which LM_Message the button onclick is looking for. I am so very close but cannot seem to get the event back to my assigned handler.
Cliff
Yep found that one out last night. In QT the only way to trap mouse methods for a widget is to decend a custom control of a particular type. So for say a button I have to create a LButton of type QButton and then overide the mouse virtual event handler. I will connect this to a slot that does the call back to the event handler.
Cliff
Anyone know which LM_Message the button onclick is looking for. I am so very close but…
The CLICK is caused by the WMLBUTTONUP procedure.
is csClicked is in ControlState ()meaning the mouse button was down) then you exclude the csclicked and call CLICK.
You never pass a clicked signal, just the mouse messages. ---------------------------------------
Shane Miller
Take a look at other product/projects of mine below!
Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870
Get paid to surf the net by clicking here too!!!
http://epipo.com/sine.asp?dex870
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.lazarus.freepascal.org