Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » scale widget with selectionListener
scale widget with selectionListener [message #453523] Thu, 07 April 2005 07:44 Go to next message
Eclipse UserFriend
Originally posted by: provin.ill.fr

Dear all,

I don't understand what's happened with the scale widget.I wrote following
sentences.

scale.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e){
System.out.println(scale.getSelection());
}
});

When I clicked on scale and maintained the mouse button pressed(without
moving mouse),the scale moved until it reached edge scale.The returned
value are :
1
11
21
31
41
51
61
71
81
91
100

Now I realesed the mouse button and I clicked again on scale widget(I
never moved the mouse)it performed a move in opposite direction.The
returned value are :

100,90,80,....0. Why scale moved whereas i'm not moving my mouse, just
cliking once?

Thanks for your helpful.
Best Regards.
Re: scale widget with selectionListener [message #453586 is a reply to message #453523] Thu, 07 April 2005 15:48 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
What platform are you running on and what build of Eclipse/SWT are you
using?

"pn@XXXX" <provin@ill.fr> wrote in message
news:200cdfa9176409281157ffb73b623da7$1@www.eclipse.org...
> Dear all,
>
> I don't understand what's happened with the scale widget.I wrote following
> sentences.
>
> scale.addSelectionListener(new SelectionAdapter() {
> public void widgetSelected(SelectionEvent e){
> System.out.println(scale.getSelection());
> }
> });
>
> When I clicked on scale and maintained the mouse button pressed(without
> moving mouse),the scale moved until it reached edge scale.The returned
> value are :
> 1
> 11
> 21
> 31
> 41
> 51
> 61
> 71
> 81
> 91
> 100
>
> Now I realesed the mouse button and I clicked again on scale widget(I
> never moved the mouse)it performed a move in opposite direction.The
> returned value are :
>
> 100,90,80,....0. Why scale moved whereas i'm not moving my mouse, just
> cliking once?
>
> Thanks for your helpful.
> Best Regards.
>
>
>
Previous Topic:Integrating SWT in to a VC++ application using ActiveXBridge - need help
Next Topic:Is there an easy way to have a scrollable image?
Goto Forum:
  


Current Time: Wed Mar 03 06:26:32 GMT 2021

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

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

Back to the top