ellipsize in wxStaticText (Re: wxStaticText GTK woes)

Francesco Montorsi f18m_cpp217828 at yahoo.it
Wed Jan 10 08:35:15 PST 2007


Vadim Zeitlin ha scritto:
> On Wed, 10 Jan 2007 17:27:22 +0100 Francesco Montorsi <f18m_cpp217828 at yahoo.it> wrote:
> 
> FM> I.e. when in LTR the programmer may want to use wxST_DOTS_END and when in RTL he 
> FM> may want to use wxST_DOTS_START.
> 
>  No, I think I see the confusion now: it's not up to the program to do it.
> It's wx, i.e. you,
ouch ;)

> who must take care to implement START/END correctly for
> RTL windows. IOW END should always remove the characters at the logical end
> of the string, which can be at the right end (LTR) or left end (RTL).
so, in conclusion, I need to write (I already did that btw) code which does 
ellipsize text both at the end or at the start of a wxString... so that having 
all three styles won't need additional work.

BTW I've fixed tab handling but now I need to add this RTL/LTR logic -- how do I 
know if LTR is enabled in wx? I couldn't find any reference to RTL in docs 
except for wxDC::GetLayoutDirection...

Francesco








More information about the wx-dev mailing list