Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to hide Scrollbars in StyledText if not needed?
How to hide Scrollbars in StyledText if not needed? [message #440677] Thu, 05 August 2004 21:03 Go to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Hi,

I am using a StyledText to display dynamic content. Sometimes the text is
very long, so vertical scrollbars need to be displayed. But in case the
text fits into the StyledText, my Windows shows disabled Scrollbar.

Is there any way to have the Scrollbars hide, in case they are not needed?

Regards,
Ben
Re: How to hide Scrollbars in StyledText if not needed? [message #440704 is a reply to message #440677] Fri, 06 August 2004 14:46 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Not really. The scroll bar display policy is encoded in the control.

"Benjamin Pasero" <bpasero@rssowl.org> wrote in message
news:ceu7bs$55j$1@eclipse.org...
> Hi,
>
> I am using a StyledText to display dynamic content. Sometimes the text is
> very long, so vertical scrollbars need to be displayed. But in case the
> text fits into the StyledText, my Windows shows disabled Scrollbar.
>
> Is there any way to have the Scrollbars hide, in case they are not needed?
>
> Regards,
> Ben
>
Re: How to hide Scrollbars in StyledText if not needed? [message #440825 is a reply to message #440704] Sat, 07 August 2004 00:07 Go to previous messageGo to next message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Hm ok. I just found out that Windows in most cases show the scrollbars
disabled too, even if they are not needed.

My problem with it is that I am having a StyledText inside a Composite.
That composite comes with 2px margin, because its still not possible to
set margins on StyledText. Now, scrollbars appear floating 2px off the
right side, which looks kind of strange :/

> Not really. The scroll bar display policy is encoded in the control.

> "Benjamin Pasero" <bpasero@rssowl.org> wrote in message
> news:ceu7bs$55j$1@eclipse.org...
> > Hi,
> >
> > I am using a StyledText to display dynamic content. Sometimes the text is
> > very long, so vertical scrollbars need to be displayed. But in case the
> > text fits into the StyledText, my Windows shows disabled Scrollbar.
> >
> > Is there any way to have the Scrollbars hide, in case they are not needed?
> >
> > Regards,
> > Ben
> >
Re: How to hide Scrollbars in StyledText if not needed? [message #440871 is a reply to message #440825] Sun, 08 August 2004 10:23 Go to previous message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
I finally found out a solution, searching this newsgroup. Using a
composite as holder for the StyledText in combination with FormLayout to
set a margin to the left and top. Very good :).
Previous Topic:Bad font rendering on text of toolitem if displayed with an image
Next Topic:SWT Table - Synchronized Scrolling
Goto Forum:
  


Current Time: Fri Apr 26 10:01:40 GMT 2024

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

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

Back to the top