Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-04

Button.OnClick

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

codepunk

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

Reply by email

codepunk
to codepunk

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

Shane Miller wrote 46 lines
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 ----- Original Message ----- From: "codepunk" To: Sent: Sunday, April 16, 2000 12:29 AM Subject: [lazarus] Button.OnClick > 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 > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Shane Miller
to codepunk: 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

Earlier message 18 lines
----- Original Message ----- From: "codepunk" To: Sent: Sunday, April 16, 2000 12:29 AM Subject: [lazarus] Button.OnClick > 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 > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email