Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » StyledText with right-alignment?
StyledText with right-alignment? [message #466108] Mon, 02 January 2006 14:03 Go to next message
Hans is currently offline HansFriend
Messages: 36
Registered: July 2009
Member
The standard Text control from SWT can be set to be right-aligned, which
is convenient for editing numbers etc. This option does not seem to be
available for StyledTexts. Here, you only have the orientation, but
this also reverses the input order like in arabian. The example snippet

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet213.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup

which pretends to solve this is wrong and uses methods that don't exist.

Does anyone have a solution on how to right-align a StyledText?

Thanks,
Hans
Re: StyledText with right-alignment? [message #466116 is a reply to message #466108] Tue, 03 January 2006 09:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stupid_daniel.yahoo.com

Hans wrote:
> [....]
> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet213.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>
> which pretends to solve this is wrong and uses methods that don't exist.
> Does anyone have a solution on how to right-align a StyledText?

You need the SWT from Eclipse 3.2M4

--
Re: StyledText with right-alignment? [message #466120 is a reply to message #466116] Tue, 03 January 2006 09:34 Go to previous messageGo to next message
Hans is currently offline HansFriend
Messages: 36
Registered: July 2009
Member
Daniel Cheng wrote:
> Hans wrote:
>
>>[....]
>> http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets/src/org/eclipse/swt/snippets/Snippet213.java?rev=HEAD& amp;content-type=text/vnd.viewcvs-markup
>>
>>which pretends to solve this is wrong and uses methods that don't exist.
>>Does anyone have a solution on how to right-align a StyledText?
>
>
> You need the SWT from Eclipse 3.2M4

Ah, this is interesting. Thanks for the pointer. However, this raised
the question: Is 3.2 stable enough for serious work?

Hans
Re: StyledText with right-alignment? [message #466135 is a reply to message #466120] Tue, 03 January 2006 15:51 Go to previous message
Daniel Spiewak is currently offline Daniel SpiewakFriend
Messages: 263
Registered: July 2009
Senior Member
Honestly, for serious work I'd wait until at least M6 (API freeze) and preferably M7 or M8. However, if you really need the new API features, Eclipse milestones are stable enough to use, you just won't get the blessing of a gold build and six months of exhaustive testing.
Previous Topic:How to get a notification when a composite has been clicked
Next Topic:saving browser image at 300 dpi
Goto Forum:
  


Current Time: Sun Dec 08 19:48:31 GMT 2024

Powered by FUDForum. Page generated in 0.02785 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top