From: Bill Z. <wrz...@po...> - 2005-04-01 03:38:02
|
Steven Schmidt wrote: > I’ve been casting it as a byte and while it seems to work up to a point – I’m not getting the negative values to display. > > I thought it should work the way I’m doing it, but it stops at zero. Please have a look at this snippet and make recommendations if you can: > > The purpose of this method is to subtract the max value for the widget if the param value is greater than the max value. > You realize that "the math" prints get()+max-max, which is the same as rawval? So if rawval has the right value, then you don't have a problem. What is the value for min and max? If max is less than zero but the spinner control itself won't go negative, then we have a bug. Try using a SliderWidget, I know those work. -Bill |