[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Two or more knobs on Scale

Xinuo Chen wrote:
Hi all.

The Scale widget has only one knob (the small part that you can move to control the value of the scale) on it.
I am just wondering how can I have two or three knobs on the Scale widget? Any hint for me?


Thanks

Xinuo


This is not possible using the native Scale control. You will have to write your own custom control to do this.


http://www.eclipse.org/articles/Article-Writing%20Your%20Own%20Widget/Writing%20Your%20Own%20Widget.htm

Out of curiosity, what is the use case for such a control? Is it possible to fulfill your case using multiple scale controls, arranged vertically rather than combining them into one scale?

Matthew