Is there a way to use a scroll bar for the main window? I want to be able to resize the window and scroll to see the parts that are covered up when the window is shrunk.
Nothing automatic. You’ll have to put all the controls on a canvas (for a parent) and add a scrollbar and figure it out manually.
A scrolling form can be very powerfull en flexible. You can just extend forms by adding, not need for restyling you app. etc. So, it would be welcome to have a worked out example using a canvas to do all this.
Is there anybody out there using scrolling forms in his Xojo projects ?
@Bob Keeney does the solution with the canvas control also work for webapps ?
The WebCanvas does not have a Scroll feature like the desktop one. WebContainer has a ScrollTo, but I could not figure how to make it scroll controls on it.
Web apps don’t need to do this at all. If you set the minimum page size to something the browser can’t display the scrollbars are added automagically.
Ahaaa… of course.
WebContainers have a ScrollBarsVisible property. If the contents of the WebContainer are bigger than what is visible and that property is set to either Always or Automatic the scrollbar scrolling ‘just happens’. We do this all the time with scrolling ‘lists’.
If you need to make sure a particular control is visible you use the WebContainer.ScrollTo(x,y) method to set the upper, left position that needs to be visible. I’ve never used this btw, so actual implementation might be a bit different.
[quote=116433:@Bob Keeney]WebContainers have a ScrollBarsVisible property. If the contents of the WebContainer are bigger than what is visible and that property is set to either Always or Automatic the scrollbar scrolling ‘just happens’. We do this all the time with scrolling ‘lists’.
If you need to make sure a particular control is visible you use the WebContainer.ScrollTo(x,y) method to set the upper, left position that needs to be visible. I’ve never used this btw, so actual implementation might be a bit different.[/quote]
OK. I did not realize this worked the same way as other web controls. Thank you.