Fix wxGrid for system colour change (PR #26705)

14 views
Skip to first unread message

Steve Cornett

unread,
Jul 18, 2026, 11:27:41 AM (2 days ago) Jul 18
to wx-...@googlegroups.com, Subscribed

Update the text and background colours in wxGrid upon wxSysColourChangedEvent. Moved the colour setting code from Create() into a new function UpdateColours(), and call that from Create() and upon colour change event. To avoid overwriting custom colours, added members flags to track whether custom colours have been set.

Deleted the code that was disabled by #if _USE_VISATTR. That code has been inactive since 2004.


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26705

Commit Summary

  • fcb8350 Remove some disabled code
  • 763b682 Fix wxGrid for system colour change

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26705@github.com>

Reply all
Reply to author
Forward
0 new messages