My app has a container control embed into a window, a scroll bar and a toolbar ( well… some other control too)
the scroll bar moves the container control up/down within the window.
On Mac everything is ok but in windows the container control goes over the toolbar while moving up (instead of going behind of it).
Seems like a bug - it would appear it doesn’t have a paint procedure as toolbar.refresh after the move wont force a repaint. Window.refresh will make it appear “over” but then there’s a 1 pixel gap at the top + flicker for windows.
I would suggest putting your current scrollbar + container control within another container control, then adding that into the window. You’ll get the clipping area from the first container and you just need to make it fill the whole window minus the height of the toolbar.
I’ve tried GroupBox, ContainerControl, to put it directly into into TabControl, the only thing that works is a GroupBox without title and them move al Container boxes instead of the superview, but it still clips a little off as the GroupBox has a border on Windows, gonna try some more different solutions, but this was a weird one, only fails on Windows.
Ok, I made a stripped version.
F.Y.I - The Windows version I’m testing on is Server2008 (Windows 7 core), I know they wanted 7, 8 & 10 to be able to run it (or they haven’t said otherwise when asked.
I remember reading something about Server 2008 and some graphic issues, but I’m no expert. I hope my memory is wrong and you can fix your issue without changing OS.
Hmm, so if someone has a real Windows (I don’t), maybe the issue really isn’t there?
I only have Windows Servers, as most of the stuff I’ve done on windows is server software or server related,
Pretty sure this is it because Sever 2008 is ten years old and based on Vista (which is not supported by the current Xojo). I have no problems with dynamically embedded scrollable ContainerControls on current versions of Windows.