Slider in GEF [message #200441] |
Mon, 24 October 2005 14:15 |
Eclipse User |
|
|
|
Originally posted by: radicr.stop.spam.gmail.com
Hi all,
Is there some example that might help to implement slider figure in GEF. So,
i need slider functionality in my GEF diagram. I think i could implement it
using ScrollPane and ScrollBar but i dont know exactly how to add ScrollBar
to the ScrollPane. Any help, or another idea, appreciated.
--
Pozdrav,
Radovan
|
|
|
Re: Slider in GEF [message #200457 is a reply to message #200441] |
Mon, 24 October 2005 14:54 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
You can use the Scrollbar figure by itself as a "slider", and customize the
Thumb and other figures.
"Radovan Radic" <radicr.stop.spam@gmail.com> wrote in message
news:djiqi9$fqf$1@news.eclipse.org...
> Hi all,
>
> Is there some example that might help to implement slider figure in GEF.
> So,
> i need slider functionality in my GEF diagram. I think i could implement
> it
> using ScrollPane and ScrollBar but i dont know exactly how to add
> ScrollBar
> to the ScrollPane. Any help, or another idea, appreciated.
>
> --
> Pozdrav,
> Radovan
>
>
|
|
|
Re: Slider in GEF [message #200502 is a reply to message #200457] |
Tue, 25 October 2005 07:10 |
Eclipse User |
|
|
|
Originally posted by: radicr.stop.spam.gmail.com
Thanks Randy, it is actually pretty easy.
It is enough to add these few lines:
MyScrollBar scrollBar = new MyScrollBar();
scrollBar.setBackgroundColor(ColorConstants.red);
panel.add(scrollBar);
layout.setConstraint(scrollBar, new Rectangle(0, 0, 20, 70));
And override propertyChange method in ScrollBar to catch changes in the
scroll bar.
Thanks again Randy,
Radovan
"Randy Hudson" <none@us.ibm.com> wrote in message
news:djisjm$j45$1@news.eclipse.org...
> You can use the Scrollbar figure by itself as a "slider", and customize
the
> Thumb and other figures.
>
> "Radovan Radic" <radicr.stop.spam@gmail.com> wrote in message
> news:djiqi9$fqf$1@news.eclipse.org...
> > Hi all,
> >
> > Is there some example that might help to implement slider figure in GEF.
> > So,
> > i need slider functionality in my GEF diagram. I think i could implement
> > it
> > using ScrollPane and ScrollBar but i dont know exactly how to add
> > ScrollBar
> > to the ScrollPane. Any help, or another idea, appreciated.
> >
> > --
> > Pozdrav,
> > Radovan
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02754 seconds