Does wxWidgets provide any api for getting native settings? I've looked but haven't found anything. I'm making a custom control - more or less - and would like it to have a native look and feel. That is, it should use background and foreground colors typical for other controls, simlilarly for fonts, and so on. In my particular case, I want to get the bitmaps used for a tree control's collapse and expand buttons.
(I did figure out a way to get to determine the font used for text controls, by the way.)
Thanks.
how do I get native settings to use in a custom control? Topic is solved
Re: how do I get native settings to use in a custom control?
wxSystemSettings for colors and fonts:
http://docs.wxwidgets.org/stable/wx_wxs ... emsettings
Theoretically wxArtProvider would be the one for bitmaps, but AFAIK it uses build-in images on most platforms.
http://docs.wxwidgets.org/stable/wx_wxa ... rtprovider
And i don't think there is a way to get the native collapse and expand buttons on Windows anyway.
http://docs.wxwidgets.org/stable/wx_wxs ... emsettings
Theoretically wxArtProvider would be the one for bitmaps, but AFAIK it uses build-in images on most platforms.
http://docs.wxwidgets.org/stable/wx_wxa ... rtprovider
And i don't think there is a way to get the native collapse and expand buttons on Windows anyway.
Use the source, Luke!
Re: how do I get native settings to use in a custom control?
This is great info. Thanks! Don't know how I missed it.
Re: how do I get native settings to use in a custom control?
I haven't used it myself and it's a long shot, but can't you use wxDelegateRendererNative::DrawTreeItemButton? It seems the method is overridden for Windows XP at least.