F.A. Pinkse wrote:
Hello wxPython-Users,
I noticed that most of the time that I use an wxTexCtrl for user
information exchange I also create a Label of WxStaticText to describe
what the wxTextCtrl is for. I think it would be nice to have a
wxTextCtrl which has his own Label. So it will move with the ctrl
whenever you move it. One can think of using the SetTitle or SetLabel to
dynamicly
change value of the label.Or is there already a solution I did not find yet?
Making a composite control like this is pretty easy. Just derive a class from a panel, place the static text and textctrl on it in a sizer, and add methods that can get/set labels, text, etc., or just forward to the textctrl methods.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!