Print Page | Close Window

MarkupButton Mouse position

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=17143
Printed Date: 20 June 2025 at 2:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MarkupButton Mouse position
Posted By: jshan
Subject: MarkupButton Mouse position
Date Posted: 21 August 2010 at 1:09am
Hi.
 
I want to find out  a exact center position (x, y) in MarkupButton object when markupbutton clicked.
so that i can popup the menu from the position.
 
where can i find the size of button object and is there a way to get mouse position from Markup Class ?
 


-------------
: xtp 16.2.0(Unicode static lib)

: windows 7 Pro Kor sp1(64bit)

: vs 2012 update 2 MFC




Replies:
Posted By: Oleg
Date Posted: 23 August 2010 at 2:05am
Hi,

You can et position of element with

CXTPMarkupContext::GetClientBoundingRect

position of mouse with GetCursorPos API.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jshan
Date Posted: 23 August 2010 at 6:07am
Thanks.
 
 


-------------
: xtp 16.2.0(Unicode static lib)

: windows 7 Pro Kor sp1(64bit)

: vs 2012 update 2 MFC




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