Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 22876 - RTL text alignment/orientation
Summary: RTL text alignment/orientation
Status: RESOLVED DUPLICATE of bug 15165
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-26 18:42 EDT by Ali Z. Anwar CLA
Modified: 2003-02-13 00:17 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ali Z. Anwar CLA 2002-08-26 18:42:23 EDT
Hi;

I have been trying to use SWT to make an Arabic GUI interface for some project 
I'm working on now. the problem I have is:

The Text class works fine with Arabic, I can enter Arabic text by pressing the 
Alt+Shit, and I can change the direction with Ctrl+Shif. now, I can't 
programmatically start the text field with the right alignment, I used the 
style SWT.RIGHT, it did not work, and I've been told that it should work, but 
it would jump to the start of the line everytime I press a space, now I have 
been told too that there is a Sytle that I should suggest that make the Text 
field starts with the right alignment as the real text field show.

My system is XP with Arabic Enabled, and as I said before I can convert the 
text field by pressing the above 2 key compination, but there should be a way 
to make it start from right, this is important for all BIDI Application.

My request is "RTL text alignment/orientation, not RTL text input."

I'm using XP and that last stable eclipse build GM6.

Regards, Ali
Comment 1 Ali Z. Anwar CLA 2002-08-30 18:48:16 EDT
This has become into my way to deliver my new work now, I would love to see 
this style added, something that would make programmatically start the text 
field with the right alignment, this has become major importance to me, I 
thougt this should be easy since SWT can implement the same behavior of the 
native component.
Comment 2 Veronika Irvine CLA 2002-09-11 14:23:01 EDT
Bidi work is not in the plan for 2.1.  Would some Windows specific code for 
Text allow you to ship?  The code we would provide would not be API and would 
be unsupported. 
Comment 3 Steve Northover CLA 2003-01-28 15:09:50 EST

*** This bug has been marked as a duplicate of 15165 ***