Print Page | Close Window

XTPControlButtons and LButtonUp

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7451
Printed Date: 06 May 2024 at 9:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTPControlButtons and LButtonUp
Posted By: gibbo
Subject: XTPControlButtons and LButtonUp
Date Posted: 26 June 2007 at 9:07am
Hi,
Was wondering if anybody could help.
I have a ribbonbar with several buttons in them and as I need the button to do something whilst it was depressed i used SetExecuteOnPressInterval(msInterval) on the Controlbutton to send the message for the command every so often.  This worked like a dream
 
The problem now, is that I have a need to now know when the button is release. I.E. when the LButtonUp message is fired.
 
I've tried checking for the for this:
GetAsyncKeyState(VK_LBUTTON) & 0x8000
when the command message has invoked, but it always returns true .
I've tried trying to overload the class to do it, but no joy
 
Any ideas on how can achieve this?
 
Many thanks
 


-------------
Gibbo



Replies:
Posted By: gibbo
Date Posted: 24 September 2007 at 10:39am
Any body Know how I can Solve this?
 
Thanks
 
 


-------------
Gibbo


Posted By: znakeeye
Date Posted: 24 September 2007 at 2:17pm
How about this?
 
!(GetAsyncKeyState(VK_LBUTTON) & 0x8000)



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net