Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » showing vertical and horizontal bar in editor
showing vertical and horizontal bar in editor [message #482704] Thu, 27 August 2009 15:28 Go to next message
caesar  is currently offline caesar Friend
Messages: 6
Registered: July 2009
Junior Member
I am trying to show a horizontal and vertical bar in my custom editor. I am extending MultiPageEditorPart class and implementing "createPages()" method like this.

protected  void createPages() {
Composite parent = getContainer();

ScrolledComposite composite = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL);
composite.setExpandHorizontal(true);
composite.setExpandVertical(true);

.
.
.
.
addPage(index, composite);
}



Even though I specified possible options to display horizontal and vertical bar, it still doesn't appear.

Please help me figure it out.

Thanks.
Re: showing vertical and horizontal bar in editor [message #482912 is a reply to message #482704] Fri, 28 August 2009 14:21 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Maybe you need to invoke ScrolledComposite.setAlwaysShowScrollbars(true).

For some ScrolledComposite example snippets see
http://www.eclipse.org/swt/snippets#scrolledcomposite .

Grant


"caesar" <caesarkim@hotmail.com> wrote in message
news:h768mm$udv$1@build.eclipse.org...
> I am trying to show a horizontal and vertical bar in my custom editor. I
am extending MultiPageEditorPart class and implementing "createPages()"
method like this.
>
>
> protected void createPages() {
> Composite parent = getContainer();
>
> ScrolledComposite composite = new ScrolledComposite(parent, SWT.H_SCROLL |
SWT.V_SCROLL);
> composite.setExpandHorizontal(true);
> composite.setExpandVertical(true);
>
Previous Topic:FilteredLists and accessibility
Next Topic:Accessibility for Custom Controls
Goto Forum:
  


Current Time: Wed Dec 11 19:06:16 GMT 2019

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

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

Back to the top