Hello NG,
this is my last "gift" before my short holyday.
A while ago, IIRC, Franz Steinhausler (but maybe I'm picking the wrong poster)
asked something about adding widgets to the wx.StatusBar (like buttons,
textctrls and so on). This idea has been travelling in my mind for a while,
and now I'm proposing this class.
NOTE: This is *not* an implementation of a new idea, it is just a subclassing
of wx.StatusBar with some cosmetics.
I have created this class and a demo, and I've put them here (as usual):
http://xoomer.virgilio.it/infinity77/EnhancedStatusBar.zip
The demo has 2 different "sub-demos", and the second one is quite an extreme
example of what you can do with EnhancedStatusBar.
What It Can Do:
1) Almost All The Functionalities Of wx.StatusBar Are Still Present;
2) You Can Add Different Kind Of Widgets Into Every Field Of The EnhancedStatusBar;
3) The AddWidget() Methods Accepts 2 Layout Inputs:
- horizontalalignment: This Specify The Horizontal Alignment For Your
Widget,
And Can Be ESB_EXACT_FIT, ESB_ALIGN_CENTER_HORIZONTAL, ESB_ALIGN_LEFT
And ESB_ALIGN_RIGHT;
- verticalalignment: This Specify The Vertical Alignment For Your Widget,
And Can Be ESB_EXACT_FIT, ESB_ALIGN_CENTER_VERTICAL, ESB_ALIGN_BOTTOM
And ESB_ALIGN_LEFT;
As usual, I really really really appreciate any comments/suggestions (and
possible improvements). This is particularly true for posters that uses
different platforms than mine (Windows XP/2000, wxPython 2.6.0.1). Also,
if you just try the class, I would be glad to read some comments on it.
Thanks for every suggestion.
Andrea.
PS. I have run out of new ideas... is there anyone that can share some thoughts
on possible new widgets/improvement of existing widgets?
See you next week.
Andrea.