How to change StatusBar font color in wxWidgets?


I want to display an error message in red on status bar if a user action results in error. I have tried setting the forground color to red but the it still displays the message in default black font. How do make the font color red on statusbar? I'm using wxWidgets 2.8 on red hat 5.5



Found out the answers from wxWidget forum:

this->StatusBar->SetForegroundColour(wxColour(wxT("RED"))); wxStaticText* txt = new wxStaticText( this->StatusBar, wxID_ANY,wxT("Validation failed"), wxPoint(10, 5), wxDefaultSize, 0 ); txt->Show(true);


  • PaintGL() call understanding [closed]
  • identify line in a jtextpane when the row number is entered
  • Background not working for a div
  • Running python in 32-bit more for wxPython
  • How to plot and display a square in Octave?
  • Annotate images using tools built into OS X
  • Using ViewPager with Tabs without actionBar
  • How to assign a prop value to a state in react
  • ionic slide menu don't appear when i use state.go in my controller
  • wxPython: How to get sizer from wx.StaticText?
  • CMake Setting up Release and Debug version and Flags
  • Installing PySide - OSX
  • Fat binaries in iOS
  • CloseOptionsMenu doesn't work?
  • MultiLevel ExpandableListView not highlighting properly
  • Efficient algorithm to find additions and removals from 2 collections
  • Microsoft Excel Pivot miscalculation in Sum for positive and negative numbers
  • CSS - Cannot get one spanned style to override another inherited style and align left
  • HTML5 video only works in IE. The other browsers shows the black screen
  • How do I get the list of bad records that didn't load in Bigquery?
  • Suppressing passwd when calling sqlplus from shell script
  • Ember.js model to be organised as a tree structure
  • AndEngine Applying Transparancy to AndEngine View
  • Thread safety of a fluent like class using clone() and non final fields
  • WPF - CanExecute dosn't fire when raising Commands from a UserControl
  • Xamarin Forms - UWP Fonts
  • JFileChooser in front of fullscreen Swing application
  • Why is the size of this struct 32?
  • Why HTML5 Canvas with a larger size stretch a drawn line?
  • Spray.io: When (not) to use non-blocking route handling?
  • Why doesn't :active or :focus work on text links in webkit? (safari & chrome)
  • Modifying destination and filename of gulp-svg-sprite
  • How to apply VCL Styles to DLL-based forms in Inno Setup?
  • 'TypeError' while using NSGA2 to solve Multi-objective prob. from pyopt-sparse in OpenMDAO
  • Change an a tag attribute in JavaScript based on screen width
  • GridView Sorting works once only
  • Unanticipated behavior
  • How get height of the a view with gone visibility and height defined as wrap_content in xml?
  • Android Google Maps API OnLocationChanged only called once
  • Linking SubReports Without LinkChild/LinkMaster