[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

Hi Matthew, thanks for the reply

I need a scale with three knobs because the two sided ones are to control the range of the values and the middle one is to control the value.

if I use three scales, they will occupy too many spaces and make the dialog ugly.

However, if I have to write my own widget and it seems a trouble, then I will use 3 scale to fulfill my purpose :)

Thanks

Xinuo

If I use three

Matthew Hall wrote:
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