Something for GSoC2008?

Kit Bishop kit at bishop.net.nz
Tue Mar 4 12:29:55 PST 2008


Something that I would very much like is a "proper" wrapping static text
control.

Let me explain what I mean:

At present (wx2.8.7), one can call Wrap on a static text to set the
pixel width at which text should wrap (though it seems it doesn't work
properly on all platforms).  I would like a static text that wrapped
automatically.

Currently, as far as I understand, when sizers are being used, each
control is asked for its size (BestSize?) and this information is used
(together with various sizer flags) in setting the actual used sized.

What I would like is that when the width available changes, the wrap
point changes accordingly.  This however means that the height would
change (increased with -> decreased height and vice versa).  This then
changes the "best size" which now no longer matches what the size
things.  As far as I can see, this would require some sort of iteration
of the sizing process.

I could be completely wrong here, but I have tried all sorts of
techniques to get a static text to just fit the space available and wrap
automatically to no avail.  I have even tried going into the static text
code and sizer code but with no real success - though I don't fully
understand the code.

If you follow what I'm saying and think it would be a good idea, I would
like to see it worked on some time.

Best regards,
Kit Bishop




More information about the wx-dev mailing list