how to UnDo SetBackgroundColour() Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 307
Joined: Fri Dec 09, 2016 7:28 am
Contact:

how to UnDo SetBackgroundColour()

Post by cutecode » Mon May 11, 2020 9:39 am

Suppose I set to a window some colour with SetBackgroundColour().
Then I changed my mind, and want to set it back to default system theame colour.
How to set it back?


Thank you
wx 3.1.4 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru

catalin
Moderator
Moderator
Posts: 1565
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Re: how to UnDo SetBackgroundColour()

Post by catalin » Mon May 11, 2020 11:48 am

RTFM: "pass wxNullColour to reset to the default colour".

User avatar
cutecode
Super wx Problem Solver
Super wx Problem Solver
Posts: 307
Joined: Fri Dec 09, 2016 7:28 am
Contact:

Re: how to UnDo SetBackgroundColour()

Post by cutecode » Mon May 11, 2020 12:41 pm

thank you!!!
wx 3.1.4 win/mac/linux

regards,
Alexander Saprykin
https://v2.dental-soft.ru

Post Reply