Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Non-editable text has blinking cursor
Non-editable text has blinking cursor [message #440484] Mon, 02 August 2004 17:17 Go to next message
Roman is currently offline RomanFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,

Is it possible to remove cursor from non-editable text?
I just want to display a scrollable text, like License Agreement.
Other use I have for read-only Text widget is auto-scrolling log viewer.

I use something like
Text textPane = new Text(textComp, SWT.MULTI | SWT.READ_ONLY| .... )
or
textPane.setEditable(false);

I set Text widget to non-editable and it still has cursor. Isn't it a bug?

Is there any way to have scrollable, non-editable text without blinking
cursor in SWT?
Creating Browser widget or Label with scroll certainly whould be overkill
for such simple thing.

Thank you.
Roman.
Re: Non-editable text has blinking cursor [message #440529 is a reply to message #440484] Tue, 03 August 2004 22:55 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
The cursor is used to show where the user can select and copy text. You
could create a Label and configure a ScrolledComposite to scroll it.

"Roman" <dostick@apollo.lv> wrote in message
news:celsvs$9st$1@eclipse.org...
> Hi,
>
> Is it possible to remove cursor from non-editable text?
> I just want to display a scrollable text, like License Agreement.
> Other use I have for read-only Text widget is auto-scrolling log viewer.
>
> I use something like
> Text textPane = new Text(textComp, SWT.MULTI | SWT.READ_ONLY| .... )
> or
> textPane.setEditable(false);
>
> I set Text widget to non-editable and it still has cursor. Isn't it a bug?
>
> Is there any way to have scrollable, non-editable text without blinking
> cursor in SWT?
> Creating Browser widget or Label with scroll certainly whould be overkill
> for such simple thing.
>
> Thank you.
> Roman.
>
>
Re: Non-editable text has blinking cursor [message #440542 is a reply to message #440529] Wed, 04 August 2004 11:41 Go to previous messageGo to next message
Roman is currently offline RomanFriend
Messages: 17
Registered: July 2009
Junior Member
Thanks. I thought so. There is even a but about that, "non-editable text
show focus" https://bugs.eclipse.org/bugs/show_bug.cgi?id=33241

One question though, Is it reliable to use Label for that? If I have log
scroller with endless text, like few megabytes, will it still work?

Thanks
R.

Steve Northover wrote:

> The cursor is used to show where the user can select and copy text. You
> could create a Label and configure a ScrolledComposite to scroll it.

> "Roman" <dostick@apollo.lv> wrote in message
> news:celsvs$9st$1@eclipse.org...
> > Hi,
> >
> > Is it possible to remove cursor from non-editable text?
> > I just want to display a scrollable text, like License Agreement.
> > Other use I have for read-only Text widget is auto-scrolling log viewer.
> >
> > I use something like
> > Text textPane = new Text(textComp, SWT.MULTI | SWT.READ_ONLY| .... )
> > or
> > textPane.setEditable(false);
> >
> > I set Text widget to non-editable and it still has cursor. Isn't it a bug?
> >
> > Is there any way to have scrollable, non-editable text without blinking
> > cursor in SWT?
> > Creating Browser widget or Label with scroll certainly whould be overkill
> > for such simple thing.
> >
> > Thank you.
> > Roman.
> >
> >
Re: Non-editable text has blinking cursor [message #440592 is a reply to message #440542] Wed, 04 August 2004 15:47 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
It should but really, why not just use the text widget and put up with the
caret?

"Roman" <dostick@apollo.lv> wrote in message
news:ceqi27$9le$1@eclipse.org...
> Thanks. I thought so. There is even a but about that, "non-editable text
> show focus" https://bugs.eclipse.org/bugs/show_bug.cgi?id=33241
>
> One question though, Is it reliable to use Label for that? If I have log
> scroller with endless text, like few megabytes, will it still work?
>
> Thanks
> R.
>
> Steve Northover wrote:
>
> > The cursor is used to show where the user can select and copy text. You
> > could create a Label and configure a ScrolledComposite to scroll it.
>
> > "Roman" <dostick@apollo.lv> wrote in message
> > news:celsvs$9st$1@eclipse.org...
> > > Hi,
> > >
> > > Is it possible to remove cursor from non-editable text?
> > > I just want to display a scrollable text, like License Agreement.
> > > Other use I have for read-only Text widget is auto-scrolling log
viewer.
> > >
> > > I use something like
> > > Text textPane = new Text(textComp, SWT.MULTI | SWT.READ_ONLY| .... )
> > > or
> > > textPane.setEditable(false);
> > >
> > > I set Text widget to non-editable and it still has cursor. Isn't it a
bug?
> > >
> > > Is there any way to have scrollable, non-editable text without
blinking
> > > cursor in SWT?
> > > Creating Browser widget or Label with scroll certainly whould be
overkill
> > > for such simple thing.
> > >
> > > Thank you.
> > > Roman.
> > >
> > >
>
>
Previous Topic:CTabItem CTabFolder
Next Topic:SWT GTK Problem with TableEditor (images are dispear before window resize)
Goto Forum:
  


Current Time: Fri Apr 26 10:27:17 GMT 2024

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

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

Back to the top