Print Page | Close Window

MarkupObjects - More Ways To Measure

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=16414
Printed Date: 29 April 2024 at 2:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MarkupObjects - More Ways To Measure
Posted By: jpbro
Subject: MarkupObjects - More Ways To Measure
Date Posted: 06 March 2010 at 6:11pm
RelativeToParentLeft, RelativeToParentTop, RelativeToControlLeft, RelativeToControlTop, ActualWidth and ActualHeight properties for all markup objects is required (there may be better names for these properties, but I just used the most descriptive names I could think of).

Krog - please correct me if I am wrong about my assumptions (below) on these properties:

RelativeToParent* would return the number of pixels away from the parent MarkupObject the current object is. Essentially the sum of Parent Paddings and ObjectMargins.

RelativeToControl* would return the number of pixels away from the MarkupLabel control boundary. For example, calling MarkupStackPanel.RelativeToControlLeft would return the number of pixels between the leftmost point of the StackPanel and the left edge of the control (negatives allowed!)

Actual*- The actual width of the object in pixels (because stretching can dynamically set the dimensions of the object). This one is very important IMHO, so we can do things like dynamically resize the control to fit content.


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6




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