[Gambas-user] A tricky requirement for SpinBox range : any ideas?
Bruce
bbruen at ...2308...
Thu Dec 13 13:41:08 CET 2012
The situation is:
We either know that a particular horse was foaled (born) on or
after year 2000 or we don't know which year it was foaled in,
i.e. the value on the database for the foaled year is either
something >=2000 or zero.
The problem is:
I am trying to use a spinbox to allow the user to enter the
foaled year. To make it "easier" or "go faster" the minimum
value of the spinbox should be 2000 and the maximum should be
Year(Now()). But there is a requirement that if the horse's
foaling date is not known then the user should be able to select
0 in the spinbox.
Obviously, setting the spinbox minumum to 0 doesn't help when
the foaling year is 2010 as they have to mouse wheel for a
considerable time before setting it to a known value. I've
tried using a checkbox next to the spinbox for "unknown" but it
at best it looks messy (and the resultant code stinks).
By the way, I choose not use a date picker or a calendar control as the
only data of interest is the year.
As per the subject, anyone got any good ideas?
tia
--
Bruce <bbruen at ...2308...>
Paddys-Hill dot net
More information about the User
mailing list