Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Slider Events
Slider Events [message #450602] Tue, 15 February 2005 19:35 Go to next message
Eclipse UserFriend
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 08:12 Go to previous messageGo to next message
Eclipse UserFriend
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 17:47 Go to previous messageGo to next message
Eclipse UserFriend
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 09:52 Go to previous message
Eclipse UserFriend
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 Jul 04 19:51:56 EDT 2025

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

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

Back to the top