Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Slider Events
Slider Events [message #450602] Wed, 16 February 2005 00:35 Go to next message
Barry Andrews is currently offline Barry AndrewsFriend
Messages: 27
Registered: July 2009
Junior Member
Hi,

Are there any Events for the Slider that I can check when the value has
changed? I have looked in the API but cannot find anything equivalent to
Swing's ChangeListener. Have I missed something?


thanks,

B
Re: Slider Events [message #450638 is a reply to message #450602] Wed, 16 February 2005 13:12 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Slider.addSelectionListener(...) should be what you want.

Grant

"Barry Andrews" <bandrews@nospam_bphnx.com> wrote in message
news:cuu4gs$545$1@www.eclipse.org...
> Hi,
>
> Are there any Events for the Slider that I can check when the value has
> changed? I have looked in the API but cannot find anything equivalent to
> Swing's ChangeListener. Have I missed something?
>
>
> thanks,
>
> B
Re: Slider Events [message #450720 is a reply to message #450638] Wed, 16 February 2005 22:47 Go to previous messageGo to next message
Barry Andrews is currently offline Barry AndrewsFriend
Messages: 27
Registered: July 2009
Junior Member
That only works if you manually move the slider. If you do it
programatically via the method call, you will not get the notification.




Grant Gayed wrote:
> Slider.addSelectionListener(...) should be what you want.
>
> Grant
>
> "Barry Andrews" <bandrews@nospam_bphnx.com> wrote in message
> news:cuu4gs$545$1@www.eclipse.org...
>
>>Hi,
>>
>>Are there any Events for the Slider that I can check when the value has
>>changed? I have looked in the API but cannot find anything equivalent to
>>Swing's ChangeListener. Have I missed something?
>>
>>
>>thanks,
>>
>>B
>
>
>
Re: Slider Events [message #450743 is a reply to message #450720] Thu, 17 February 2005 14:52 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
see new FAQ entry
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#noeventfire

"Barry Andrews" <bandrews@nospam_bphnx.com> wrote in message
news:cv0ih1$svb$1@www.eclipse.org...
> That only works if you manually move the slider. If you do it
> programatically via the method call, you will not get the notification.
>
>
>
>
> Grant Gayed wrote:
> > Slider.addSelectionListener(...) should be what you want.
> >
> > Grant
> >
> > "Barry Andrews" <bandrews@nospam_bphnx.com> wrote in message
> > news:cuu4gs$545$1@www.eclipse.org...
> >
> >>Hi,
> >>
> >>Are there any Events for the Slider that I can check when the value has
> >>changed? I have looked in the API but cannot find anything equivalent to
> >>Swing's ChangeListener. Have I missed something?
> >>
> >>
> >>thanks,
> >>
> >>B
> >
> >
> >
Previous Topic:Resizeable dialog?
Next Topic:OpenGL SWT Snippet render thread
Goto Forum:
  


Current Time: Fri Mar 29 07:55:04 GMT 2024

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

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

Back to the top