I thought that if a container was larger than the size of its instance in a window, then we’d see some scroll bars?
I am confused, seeing older tutorials that have strange math.
My goal is to have a container of controls designed to edit the pieces of data for one row in a table, that’s smaller than the total space in the window.
The amount of data is more than a smaller screen would allow, so I have to account for end-users who do NOT have giant monitors like I do.
Far as I know only the Listbox does that - if you enable the scrollbars. Otherwise you have to put each control on a canvas of its own and then scroll the canvas with a scrollbar. If you want controls to move around as the window is resized, or shrink, you have to manage that yourself.
In my app I divide the window into areas with grabbars, so I can move the grabbars around to re-apportion the space. Then one has to make some decisions about what is supposed to happen if the window is resized, in terms of re-apportioning the reduced space.
Okay, so that makes sense. I thought I had recalled auto scrolling.
The tutorials available are either really old or they’re missing info.
I think I’m going to put in a feature request for scrolling on Container controls. I’m surprised that scrolling on container controls is not an option on all platforms.
And finally you can click Ctrl + R to run … that one line commanding a Refresh is critical because your graphics will not update effectively otherwise… especially for a very large project.
I was just working on an example project for this exact method that I learned so many moons ago. I thought there was an example project for this, but I can’t locate it.
My example also shows how to handle a scroll wheel on the view and how to dynamically recalculate the scrollbar max value when necessary.