---------------------------- Message original ----------------------------
wxToolBar?
···
Objet: Re: [wxPython-users] How to expand a wxTextCtrl in a dockable
De: "Robin Dunn" <robin@alldunn.com>
Date: Jeu 21 décembre 2006 23:54
À: wxPython-users@lists.wxwidgets.org
--------------------------------------------------------------------------
vincent.jaulin@keyphrene.com wrote:
How to expand a wxTextCtrl in a dockable wxToolBar ?
The Toolbar has not the same size than the Panel.
I would have the panel width on the toolbar and the text control.
I'm not sure exactly what you are asking. Do you want to be able to
change the size of the textctrl on the toolbar?
yes
If so you can just call
it's SetSize like normal, but if there are other tools after it on the
toolbar they may not be adjusted to a new position because of how
controls on toolbars is implemented. If that's the case you may have to
recreate the toolbar after adjusting the size of the control, or at
least call Realize() again. It may depend on the platform.
Ok
Thanks
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org