wxStaticText wrapping (was: Something for GSoC2008?)
ATS
asteinarson at gmail.com
Wed Mar 5 06:17:48 PST 2008
> A> wxStaticText would be a window put inside a layout without any help
> A> of wxWrapSizer. It can also use the same forwarding mechanism
> A> when the first size component is determined.
>
> Maybe my question was unclear but what I wanted to know was exactly this.
> I.e. how does this "forwarding mechanism" work? This is the difficult part...
>
Using the function InformFirstDirection(...). All sizers call it when
the first size component has been determined. Based on discussions in
this list I also added this function to wxWindow.
> A> And it would have to answer correctly to min size calculations as the
> A> available first size component is updated.
>
> ... because this part is already implemented (at least when the horizontal
> dimension is known first).
wxStaticText::GetMinSize() cannot just return fixed cached values. It has
to work together with InformFirstDirection(...) in a rather tight way.
Regards
// ATS.
>
> Regards,
> VZ
>
More information about the wx-dev
mailing list