Check out SetCapture/ReleaseCapture API-calls. Gunnar Blumert Softwareentwicklung Waldstr. 117 25712 Burg (Dithmarschen) Germany Tel. +49-(0)4825-2892 (14.00-16.00h) Fax: +49-(0)4825-1217 Email [EMAIL PROTECTED] www.blumert.de ----- Original Message ----- From: "SgD7" <[EMAIL PROTECTED]> To: "Borland's Delphi Discussion List" <[email protected]> Sent: Tuesday, July 08, 2008 9:24 AM Subject: TSpeedButton rightclick event
> Dear All, > > I made a new component which derived form TSpeedButton class, and I > added a new event to this (OnRightClick). My question is the follow: how > can I catch right mouse button release event? I tried handle the > WM_RBUTTONUP message, but my message handler method called, when the > mouse cursor is over the control. The problem is that when I click with > mouse right button press down the button and move the mouse cursor from > the control and after I release the right mouse button, the control is > "rut". > If someone has an idea for this problem, please help me. > > > > Best regards, > SGd7 > _______________________________________________ > Delphi mailing list -> [email protected] > http://lists.elists.org/cgi-bin/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

