Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Track Control Viewport + Scrollbar Resize Issue
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Track Control Viewport + Scrollbar Resize Issue

 Post Reply Post Reply
Author
Message
BluPhoenix45 View Drop Down
Newbie
Newbie
Avatar

Joined: 03 October 2025
Location: My House
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote BluPhoenix45 Quote  Post ReplyReply Direct Link To This Post Topic: Track Control Viewport + Scrollbar Resize Issue
    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



Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.