Print Page | Close Window

Track Control Viewport + Scrollbar Resize Issue

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=24608
Printed Date: 16 October 2025 at 8:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Track Control Viewport + Scrollbar Resize Issue
Posted By: BluPhoenix45
Subject: Track Control Viewport + Scrollbar Resize Issue
Date Posted: 03 October 2025 at 11:44am
Hey all,

I've been having this odd resizing issue with controlling the ViewPort and inditectly with an HScrollBar control. Whenever I shrink the TrackControl down and move the scrollbar tied to the ViewPort of said control to a position other than zero, then resize the control to be bigger, my viewport gets set to be in a zoomed, shrunken down position. I'm making a program where a client wants the viewport hidden and wants the scrolling to only be controlled by the HScrollBar, so when this resize occurs, my program's Track is permanently zoomed in due to the ViewPort bug. An example of my code's resize is below.

One way I thought about fixing this bug was to set the HScrollBar's value to 0 or the ViewPort's position to 0 whenever the TrackControl was resized; I can't get the ViewPort positon to set to 0 upon resize, and the HScrollBar position fires too late. There doesn't seem to be an event that fires before TrackControl_ResizeEvent. If anyone has any advice, that would be greatly appreciated. I've provided screenshots of the issue. Thanks!

1.) Opening the control up yields this picture, all 24 hours present:


2.) Shrunken down, with HScrollBar on bottom moved off of position 0


3.) Resized again, permanently zoomed in due to scrollbar not being at position 0 upon resize






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