Hi Jean-Baptiste, On Thursday April 29 2010 10:48:28 Jean-Baptiste BRIAUD -- Novlog wrote: > 1. Is it possible to have a spinner without min and max ? I guess not. The spinner is heavily relying on these two properties that it would be easier to implement a custom widget, than to customize the spinner widget for this case.
> I noticed Spinner is perfect to store numbers since it is not mandatory to > use the arrow. The user can entere the value by hand but the arrows show > the user "this field is a number". Unfortunatly, even if I use the default > constructor that doesn't have min and max, there are min and max. Max is > set by default to 100 but I would love not to have max. Yes, 100 is the (sensible) default value for both properties. > This mean that any big or small number would be OK on such Spinner. > Is it possible with actual Spinner ? > If no, any ideas to get that behavior ? I guess the answer is that you need to implement an own widget. > 2. When using the spinner "classically" with a min and a max, is it > possible to change or parameterized the behavior when the value entered is > over the max ? Example : > A spinner is set with min 0 and max 100. > The user entered by hand 999 => the spinner is set to 100. > I'd like to set that value somewhere. > So, for example, when the user entered 999, the spinner would contain 0 > instead of 100. I guess you have to subclass the widget and change the behaviour yourself. cheers, Alex ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
