Sg2.9
Steppers
Recent RSS
Steppers
Date:  13. June 2010, 07:53

I don't know if this is a bug or if it is me who's doing this wrong...
Here goes:

I have created a dialog with steppers that have either a min or max value. They are by default disabled, but the up/down buttons are still seemingly not disabled as the value can still be changed, once.

MacBook
CS4
SG Version 2.8.052

Re: Steppers
From:  Jürg Lehni
Date:  14. June 2010, 09:07

Could you post the code to reproduce this?

Re: Steppers
Date:  14. June 2010, 16:35

I really don't think I have done anything wrong as the steppers have always behaved a little strange. I don't mind, just thought you'd know.

var values = {
		rotation: 0,
		scale: false,
		minScale: 50,
		maxScale: 100,
		startBtn: 'Start'
};

var components = {
		rotation: 	{ 	label: 'Rotation',
						type: 'number',
						range: [0, 360],
						steppers: true,
						units: 'degree',
						width: 40 },
		scale:		{	label: 'Scale',
						type: 'checkbox' },
		minScale:	{	label: 'Min',
						type: 'number',
						min: 1,
						max: 100,
						units: 'percent',
						steppers: true,
						enabled: false,
						width: 50 },
		maxScale:	{	label: 'Max',
						type: 'number',
						min: 100,
						units: 'percent',
						steppers: true,
						enabled: false,
						width: 50 },
		border:		{	type: 'ruler' },
		startBtn: 	{	type: 'button',
						onClick: function(){
								gradient();
						} }
};

var dialog = new Palette('Test', components, values);
Re: Steppers
From:  Jürg Lehni
Date:  16. June 2010, 12:21

Now I see what you mean. I just wanted to make sure we talk about the same thing, that's what example code is really good for. I will look into this problem and fix it for the next release. What else is strange with the steppers?

Re: Steppers
Date:  17. June 2010, 00:20

I don't know if there is anything more that's strange about them it was just that they have allways been behaving like that.

Well another thing, not about the steppers though - but the dialog prompt box - since the update the dialog prompt will never have the first inputfield chosen by default. My prompt box in this case has four fields and it is allways the second one down that is the default input.

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Lorem Ipsum Generator 25.06.11