A number of updates have been made to
the wxStyledTextCtrl documentation at
http://www.pyframe.com/wxdocs/stc/
···
#--------------------------------
Jeff Sasmor
jeff@sasmor.com
A number of updates have been made to
the wxStyledTextCtrl documentation at
http://www.pyframe.com/wxdocs/stc/
#--------------------------------
Jeff Sasmor
jeff@sasmor.com
Mark Melvin wrote:
Hi All,
I have placed a bunch of wxStaticText controls in a wxBoxsizer, but and when I change the text in the controls, they do not adjust their width to suit. I found in the docs that "Some controls can calculate their height, but not their width (e.g. a single line text control):". Is there any way to tell the text controls to resize to their contents? I can't seem to figure this out.
self.sizer.RecalcSizes()
self.Refresh()
may do the trick -- with 'self' being the frame/dialog/panel that your wxBoxSizer is attached to. It may also be necessary to look into using (IIRC) SetSizeHints() on your wxStaticText.
Jeff Shannon
Technician/Programmer
Credit International