Hot Door CORE Forum
Windows ColumnView display/update issues - Printable Version

+- Hot Door CORE Forum (http://hotdoorcore.com/forum)
+-- Forum: All forums (http://hotdoorcore.com/forum/forumdisplay.php?fid=1)
+--- Forum: General discussion (http://hotdoorcore.com/forum/forumdisplay.php?fid=3)
+--- Thread: Windows ColumnView display/update issues (/showthread.php?tid=347)



Windows ColumnView display/update issues - Rick Johnson - 05-28-2023

I have a ColumnView in a panel that displays information about document artwork. All works well on macOS, but under Windows, I'm having trouble getting it to update properly.

An ArtChangedNotifier callback refreshes the content (entries) of the ColumnView and tells it to update. The first time it's called, the background turns from black to white, but no contents are displayed.

A panel-resized callback changes the size of the ColumnView to fill the panel, and changing the widget's frame causes it to display its contents properly, without calling the ColumnView's update(). The next time ArtChangedNotifier updates the ColumnView contents and calls its update() it goes blank again.

In case the user has resized the panel at any time after it was first defined, at the end of PostStartup the plugin calls the panel-resized callback to resize the ColumnView to match. In macOS, the ColumnView gets properly resized, but in Windows the panel-resized callback only gets called when the panel is actually resized by the user. At this time, it properly updates its contents, but the contents of the ColumnView go blank again after the next ArtChangedNotifier callback.

Is there anything I should be doing differently to make the Windows panel update correctly?