Hello,
I just downloaded the new 2023r3 version on macos (Sonoma from Ventura) and wanted to clarify something.
The CellTextPaint event of my desktoplistbox are firing a lot more (when moving the mouse over the desktoplistbox) when before (Xojo 2023r2 with Ventura) it was firing when the selection was changed or on the resize of the controls. It appears that changing the CellTag fires the CellTextPaint event now or am I missleading?
I do not know if it comes from Sonoma or from the Xojo 2023r3 version because I updated both at the same time…
I tried to look in the release notes but could not find something about it. Is it something from Sonoma or a changes from how the CellTextPaint event works now?
Julien
2 Likes
I do not know, but if you set a Background color name (or anything else, think about it) in the CellTag while the software is running, there must be an event to respond and act accordingly (change the background color in my example).
Other cases may exists.
Thank you for the answer, I store the state of the cell to draw a an hover state on the button. But in this case I overwrite the celltag by the same celltag (empty string) and the event is fired anyway. Before it was fired only when the celltag value actually changed.
Your drawing code should be prepared to occur as frequently as it needs to.
With a quick test on Big Sur, both Listbox and DesktopListbox raise text paint events when the CellTag is changed across both 2022r2 and 2023r3. This test was done with a Timer to ensure that focus changes were not the cause.