Windows Scrolling a Container

I’m having a rough time scrolling a custom DesktopContainer in a window.
On Mac it’s perfect.
On Windows it has awful refresh artifacts that look like it’s stuttering the child-controls and in places over running the confines it should be in. Live scrolling makes it worse.

I don’t know if I’m just doing this in a really bad way or if there are just some settings I have to be mindful of.

I’ve tried using transparency on/off and it seems to make some difference, but not consistently.

Any help or simple examples would be very welcome.

If you can upload a sample project someone can review and give you ideas.

It’s a customer project with their IP.
I’m hoping someone can tell me their approach or show a simple example.
I guess I could make an example.

try if composited help on or off at cc, at least it was there in 2021.
2024 have this option also.
grafik

Windows graphics generally are awful compared to Mac. Not sure by but here’s what I use that helps quite a bit:

#If TargetWindows Then
Me.DoubleBuffer = True
Me.EraseBackground = False
#EndIf

I utilize this with every window, canvas, etc. The graphics end up being much better.

Try it…

Never seen this? What’s it do?

doesn’t look like DesktopWindows use erasebackground, composite, or double-buffer anymore.
Am I wrong?

It looks to me like Xojo itself uses these scrollable controls, unless it’s all in a canvas?

Windows UI performance since the switch from GDI+ to Direct2D has been poor.

From my own tests it appears that controls are being drawn multiple times. I logged this case with my findings:
https://tracker.xojo.com/xojoinc/xojo/-/issues/76798

We have a similar situation and we will probably have to switch from several canvas controls being scrolled to a single giant canvas.

Someone must be doing this successfully.

Well, that’s interesting. Just another reason not to upgrade to API2.0! :smiley:

At this point I have no idea.

this composite option was at container control.
in my case i had a kanban board with scrolling cards inside a cc row inside a cc board.
i not tested the behavior with current xojo, this project in 2024 get run time errors …