Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » StyledText with right-alignment?
StyledText with right-alignment? [message #466108] Mon, 02 January 2006 09:03 Go to next message
Eclipse UserFriend
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 04: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 04:34 Go to previous messageGo to next message
Eclipse UserFriend
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 10:51 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 11:23:16 EDT 2025

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

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

Back to the top