Print Page | Close Window

CXTPMarkupObject position

Printed From: Codejock Forums
Category: General
Forum Name: XAML Snippets
Forum Description: Post your XAML snippets here for everyone to enjoy :)
URL: http://forum.codejock.com/forum_posts.asp?TID=13509
Printed Date: 17 December 2024 at 10:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPMarkupObject position
Posted By: BobWansink
Subject: CXTPMarkupObject position
Date Posted: 26 February 2009 at 9:35am
hi!

I'm trying to find the position of one of the CXTPMarkupBorder objects in my window. I thought GetFinalRect() or GetBoundRect() would find it, but alas...

How do i find the CRect of a MarkupObject?

Thanks in advance.

Bob


-------------
     Product: Xtreme ToolkitPro (MFC) version 13.0.0
     Platform: Windows (32bit) - XP - Vista
     Language: Visual C++



Replies:
Posted By: BobWansink
Date Posted: 27 February 2009 at 4:14am
Ah, found it myself:

CXTPMarkupContext::GetClientBoundingRect(CXTPMarkupInputElement * pUIElement); returns the position of the element relative to the context it is in.

I needed it to enable contextmenu's.


-------------
     Product: Xtreme ToolkitPro (MFC) version 13.0.0
     Platform: Windows (32bit) - XP - Vista
     Language: Visual C++



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