Hi,
Is there any way to place a small icon in the wxStatusBar of the form (just like browsers do for example)?
Sorry if it is a trivial question.
Best regards.
Aleksej Kolga
Hi,
Is there any way to place a small icon in the wxStatusBar of the form (just like browsers do for example)?
Sorry if it is a trivial question.
Best regards.
Aleksej Kolga
Aleksej Kolga wrote:
Hi,
Is there any way to place a small icon in the wxStatusBar of the form (just like browsers do for example)?
Yep. See the wxStatusBar sample in the demo. It puts a checkbox on the status bar, but the same could be done with any control.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Yep. See the wxStatusBar sample in the demo. It puts a checkbox on the
status bar, but the same could be done with any control.
And having gone through this recently, you should read the example very closely.
The statusbar has a number of fields (you get to set how many). You also need
to set the field sizing (note negative vs positive number meaning). Create
your new controls as children of the statusbar. The final non-obvious bit
is that you need to supply your own OnSize handler and keep repositioning
the controls you added over the top of the appropriate fields. (Appropriate
code in the demo).
It took me quite a while to work out. I was expecting that I supplied the
fields as controls, and that the statusbar would manage their size and
position automatically ....
Roger