Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Wrapping in Text Widget
Wrapping in Text Widget [message #444508] Thu, 14 October 2004 10:41 Go to next message
Eclipse UserFriend
Originally posted by: mccarbro.att.net

I can not find information on this anywhere... How can I dynamically
change the Word Wrap on the Text Widget. Basically I am exposing a Menu
item that the user can select whether they want wordwrap on or off
similiar to the feature in Notepad.exe but I can not figure out how to
get the widget to respond.

Thanks for any help...
Re: Wrapping in Text Widget [message #444511 is a reply to message #444508] Thu, 14 October 2004 11:37 Go to previous messageGo to next message
Eclipse UserFriend
In the Text widget, wrapping can only be set at creation time with the style
SWT.WRAP.

StyledText allows you to toggle word warpping dynamically using
StyledText.setWordWrap(boolean).

"Tim Martin" <mccarbro@att.net> wrote in message
news:ckm2ui$4ji$1@eclipse.org...
>I can not find information on this anywhere... How can I dynamically
>change the Word Wrap on the Text Widget. Basically I am exposing a Menu
>item that the user can select whether they want wordwrap on or off similiar
>to the feature in Notepad.exe but I can not figure out how to get the
>widget to respond.
>
> Thanks for any help...
Re: Wrapping in Text Widget [message #444519 is a reply to message #444511] Thu, 14 October 2004 13:13 Go to previous message
Eclipse UserFriend
Originally posted by: mccarbro.att.net

Veronika Irvine wrote:
> In the Text widget, wrapping can only be set at creation time with the style
> SWT.WRAP.
>
> StyledText allows you to toggle word warpping dynamically using
> StyledText.setWordWrap(boolean).
>
> "Tim Martin" <mccarbro@att.net> wrote in message
> news:ckm2ui$4ji$1@eclipse.org...
>
>>I can not find information on this anywhere... How can I dynamically
>>change the Word Wrap on the Text Widget. Basically I am exposing a Menu
>>item that the user can select whether they want wordwrap on or off similiar
>>to the feature in Notepad.exe but I can not figure out how to get the
>>widget to respond.
>>
>>Thanks for any help...
>
>
>
You're right... I was looking at using that widget but decided I only
needed the plain text and figured I was overlooking something... thanks
for your quick response.
Previous Topic:Giving a Font the Underline property
Next Topic:List - SelectionEvent
Goto Forum:
  


Current Time: Sat Jul 19 11:33:41 EDT 2025

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

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

Back to the top