Open wxtrac opened 13 years ago
test.cpp
(0.6 KiB)source code
statusbar.png
(5.5 KiB)Screenshot
Changing foreground colour doesn't seem to be directly supported by the native status bar. Background colour can be changed using SB_SETBKCOLOR
(which we don't currently use neither but it would be simple to add) but apparently the only way to have a non default foreground colour is to use a custom status bar pane (see statbar sample for examples of doing this).
We probably could make all panes owner-drawn if the foreground colour was changed to non default one but it would be a lot of work for not much gain, so while I'd apply any [HowToSubmitPatches patches] adding support for this I don't plan to do it myself.
Issue migrated from trac ticket # 13207
component: wxMSW | priority: low | keywords: wxStatusBar,SetForegroundColour()
2011-05-10 00:32:06: wxtester (wxtester) created the issue
SetForegroundColour() has no effect in the sample application. Even if using "Own" there is no effect. Both strings "Test1" and "Test2" appear still black. See attached screenshot or the sample application.
Sample Win32 Application: [http://rapidshare.com/files/461625217/Test.zip]
Maybe i am doing something wrong?