Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - MarkupButton Mouse position
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MarkupButton Mouse position

 Post Reply Post Reply
Author
Message
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post Topic: MarkupButton Mouse position
    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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jshan View Drop Down
Groupie
Groupie
Avatar

Joined: 07 December 2007
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote jshan Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.027 seconds.