Any ideas?Post a small project in which we can see this issue. In all my own projects, the pagecontrol behaves correctly.
Do I understand correctly that these are steps to reproduce?
- Add a pagecontrol with 3 tabs
- Add a TShellTreeView and a TShellListview to the first tab
- Add a TStringGrid to the second tab
- Add a TStringGrid and a TImage to the third tab.
You don't write what happens after this...
When I do these steps (see attached demo) everything is fine (Laz 2.2.2/32bit on Win 11/64bit). So, there more to trigger the issue...
Are there any event handlers attached to the controls on the tabs? What happens if you remove them? It could be that they trigger a silent exception which prevents the other tabs to complete painting.
*
OK, here is a fix;A quick test shows that the problem is patched.