More accurate, it resizes horizontally, but not vertically.
Haven't looked, but probably some AddGrowablexxx missing or .sizer.Add
not defined correctly.
Will try and have a look later this afternoon.
Werner
That would be cool. And To "resize" the splitterwindows
("proportionally") when resizing the frame, there must be a size event
directly on the splitterwindow(?)
panelSizer = wx.FlexGridSizer(rows=0, cols=1)
panelSizer.AddGrowableCol(0)
=> panelSizer.AddGrowableRow(0)
That did the trick. Thank you again for your example, resizing
proportioally, that i think, should find I out myself.
This is it
http://wiki.wxpython.org/ProportionalSplitterWindow
I have even edited myself a little bit some years ago! What one forget
over the time passing by... ;)
The STC always assumes that there is potentially a very long line of
text, so it sets the scrollbar to accommodate that.
--
Robin Dunn
Software Craftsman
http://wxPython.org
> On 9/6/10 8:41 AM, franz steinhaeusler wrote:
>> Still one problem: The stc Window is so big (in the horizontal
>> direction). That can be seen because of the horizontal scrollbars. How
>> can I fit the stc window into the reserved space of the splitterwindow?
>>
>
> The STC always assumes that there is potentially a very long line of
> text, so it sets the scrollbar to accommodate that.
>
Is there a possibility to set the scrollbar in a way, which orients on
the longest line. If scroll is not needed, to hide the scrollbar?
I think, basically I would have to discover the longest line, calc with
the character width the width of that line and call
SetScrollWidth(that width) sometimes (for example, when the modified
event happens)
You can use your own scrollbar instead of the built-in one, with
SetHScrollBar. There is an example of that in DynamicSashWindow.py in
the demo.