![]() |
Track Control Viewport + Scrollbar Resize Issue |
Post Reply ![]() |
Author | |
BluPhoenix45 ![]() Newbie ![]() ![]() Joined: 03 October 2025 Location: My House Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() 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 ![]() |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |