Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Wrapping in Text Widget
Wrapping in Text Widget [message #444508] Thu, 14 October 2004 14: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 15:37 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
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 17: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: Wed Oct 28 03:06:20 GMT 2020

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

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

Back to the top