Print Page | Close Window

How to find markup element positions

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18521
Printed Date: 24 November 2024 at 2:09am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to find markup element positions
Posted By: cpede
Subject: How to find markup element positions
Date Posted: 09 June 2011 at 3:59am
I would like to find the visual positions of markup elements in a scrollviewer. I can find the element calling something like this
 
pElement = (CXTPMarkupUIElement*)pElement->GetVisualChild(0);
 
a number of times. But when I call

CRect rcElement = pElement->GetBoundRect();

it always return 0,0,0,0?
 
How do I find the position of markup elements?
 
-cpede
 


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (C++)



Replies:
Posted By: Oleg
Date Posted: 09 June 2011 at 7:42am
Try 

pMarkupContext->GetClientBoundingRect(pElement);


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


Posted By: cpede
Date Posted: 09 June 2011 at 8:07am
Already tried that with the same result. ??
 
-cpede


-------------
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64)
Language: Visual Studio 2017 (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