I don’t know change color on CreateStatusBar.
Would you like to show example on following code?
I want to change color of “ON” into blue and color of “OFF” into red.
self.CreateStatusBar()
self.SetStatusText(“ON/OFF”)
I don’t know change color on CreateStatusBar.
Would you like to show example on following code?
I want to change color of “ON” into blue and color of “OFF” into red.
self.CreateStatusBar()
self.SetStatusText(“ON/OFF”)
hudif wrote:
I don't know change color on CreateStatusBar.
Would you like to show example on following code?
I want to change color of "ON" into blue and color of "OFF" into red.self.CreateStatusBar()
self.SetStatusText("ON/OFF")
You would have to either draw the content on the statusbar yourself in its EVT_PAINT handler, or you would need to use a wx.StaticText positioned at the right place, instead of using the statusbar's built-in text features.
--
Robin Dunn
Software Craftsman