![]() |
MarkupButton Mouse position |
Post Reply ![]() |
Author | |
jshan ![]() Groupie ![]() ![]() Joined: 07 December 2007 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
You can et position of element with CXTPMarkupContext::GetClientBoundingRect position of mouse with GetCursorPos API. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
jshan ![]() Groupie ![]() ![]() Joined: 07 December 2007 Status: Offline Points: 63 |
![]() ![]() ![]() ![]() ![]() |
Thanks.
|
|
: xtp 16.2.0(Unicode static lib)
: windows 7 Pro Kor sp1(64bit) : vs 2012 update 2 MFC |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |