I would like to see a new SAM message, for instance :
SAM_ThemeChanged
when the TD theme was changed.
When the GUI is changed to another theme, we could need to recolor/repopulate/repaint objects accordingly.
For instance, icons or bitmaps placed in the GUI could look out of place in a newly set theme.
Or maybe custom drawing should adapt other colors to fit in the new theme.
Having such a notification automatically on every top level window we are able to call custom functions to change all those objects to more appropriate colors.
(the requirement to get the base theme colors can be used to change the current colors of objects to use the colors of the newly set theme)
Theming: theme change notification
-
- Founder/Site Admin
- Posts: 3473
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Theming: theme change notification
Regards,
Dave Rabelink
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Who is online
Users browsing this forum: [Ccbot] and 0 guests