Right aligned wxTextCtrl

Hi all,

all the wxTextCtrls in my application are right aligned. wxTextCtrl is not
the best choice, because it causes many troubles when switching from "right
aligned" languages to "left aligned" languages and back. wxStyledTextCtrl
solves that, but it doesn't support right alignment. I need some class that
is simple enough (like wxTextCtrl) and handles the switching well (like
wxStyledTextCtrl). Is there something like that out there or I need to write
it by myself?

Thanks in advance,
Ilia Kats

Ilia Kats wrote:

Hi all,

all the wxTextCtrls in my application are right aligned. wxTextCtrl is not
the best choice, because it causes many troubles when switching from "right
aligned" languages to "left aligned" languages and back. wxStyledTextCtrl
solves that, but it doesn't support right alignment. I need some class that
is simple enough (like wxTextCtrl) and handles the switching well (like
wxStyledTextCtrl). Is there something like that out there or I need to write
it by myself?

If I understand you correctly then if you're on MSW you can probably use the wxTE_RIGHT style flag for wxTextCtrl, and it may also support switching between right and left. (Or at least you can recreate the controls when needed.)

Otherwise I'm afraid that you'll have to build your own control...

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote :

Ilia Kats wrote:
> Hi all,
>
> all the wxTextCtrls in my application are right aligned. wxTextCtrl is

not

> the best choice, because it causes many troubles when switching from

"right

> aligned" languages to "left aligned" languages and back.

wxStyledTextCtrl

> solves that, but it doesn't support right alignment. I need some class

that

> is simple enough (like wxTextCtrl) and handles the switching well (like
> wxStyledTextCtrl). Is there something like that out there or I need to

write

> it by myself?

If I understand you correctly then if you're on MSW you can probably use
the wxTE_RIGHT style flag for wxTextCtrl, and it may also support
switching between right and left. (Or at least you can recreate the
controls when needed.)

You understood me correctly. I am using the wxTE_RIGHT flag right now, but
it makes text editing "impossible".

Otherwise I'm afraid that you'll have to build your own control...

I'm afraid that you are right...