Print Page | Close Window

MarkupScrollViewer object thumb position

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=16423
Printed Date: 21 November 2024 at 7:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: MarkupScrollViewer object thumb position
Posted By: jpbro
Subject: MarkupScrollViewer object thumb position
Date Posted: 06 March 2010 at 2:55pm
Hi I'm trying to move the MarkupScrollViewer thumb to the bottom of a vertical scroll bar. To do this, I've tried setting the VerticalOffset property to the highest long value in Vb6 (&H7FFFFFFF), but then the content disappears (even if the vertical scrollbar is disable because scrolling isn't needed to fit the child content).

After some experimenting, I've discovered that anything greater than &H7FFFFFFF-MarkupLabel Height in Pixels will cause the content to disappear. &H7FFFFFFF was a bad enough hack/magic number, but &H7FFFFFFF-Me.MarkupLabel1.Height/Screen.TwipsPerPixelY is a bit much! ;)

Any chance that we can have any or all of the following:

1) VerticalScrollToMax and HorizontalScrollToMax methods (to move the thumb to the max possible value)
2) VerticalMax and HorizontalMax properties (to get the max possible value for the thumbs)
3) ScrollIntoView(MarkupObject) - This should attempt to scroll a whole object into view - if it is too large to fit horizontally, then the left edge should scroll into view, and if it is too large to fit vertically, then the top edge should scroll into view.

Thanks.


-------------
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