[wx-dev] Re: ellipsize in wxStaticText (Re: wxStaticText GTK woes)

Vadim Zeitlin vadim at wxwindows.org
Wed Jan 10 07:20:46 PST 2007


On Wed, 10 Jan 2007 16:08:54 +0100 Francesco Montorsi <f18m_cpp217828 at yahoo.it> wrote:

FM> > FM> #define wxST_DOTS_START       0x0004
FM> > FM> #define wxST_DOTS_MIDDLE      0x0008
FM> > FM> #define wxST_DOTS_END         0x0010
FM> > 
FM> >  Do we really need all 3, especially the first one? Is it ever useful?
FM> well, Pango supports it and since on older windows / other ports != wxGTK && 
FM> wxMac we need to have a "generic" support for ellipsization, I thought to just 
FM> add all 3 of them since Pango has all of them and then fallback to the generic 
FM> code for platforms not supporting it.
FM> 
FM> Also, a dummy thought: isn't wxST_DOTS_START indispensable for RTL issues?

 No, wxST_DOTS_END should work for RTL too, i.e. it would appear as
wxST_DOTS_START in LTR but it would actually be the same style.

FM> >  The only additional question I have is how these styles are going to
FM> > affect the best size computation: the min size of a label using such styles
FM> > is not really defined, so what will GetBestSize() return? If it just
FM> > returns the same thing as now, the ellipsis will never appear...
FM> well, I haven't touched GetMinSize and it works (ellipsis do appear if needed) 
FM> because the following happens:

 Ah, I see, thanks for the explanation.

 Regards,
VZ





More information about the wx-dev mailing list