Posted by Grant Foraker on December 20, 2007 at 14:59:04:
In Reply to: Numeric Edit Control posted by Mike Saunders on December 20, 2007 at 11:10:21:
I'm using this in a dialog based program and it compiles.
cosCtlId = IDC.STARTING
Gosub COS.AttachNumericEdit
coswParam = NE.CannotBeNegative + NE.Beep.IfInvalid
coslParam = 0 ! nothing to reset
Gosub COS.NumEditSetFlags
coswParam = RANGELEN ! Integer digits
coslParam = 0 ! Fractional digits
Gosub COS.NumEditSetDigits
Don't really know if the NE's work. Can't enter alpha, can't enter "-", but there's no beep.
I vaguely remember a discussion with Brian about the NE's being iffy.