Hi!
Can the NumUpDown control be used to increment and display numbers with a decimal point? I've had a play but nothing is obvious ...any ideas?
Dave Lewis.
BUT you can use a combination of num control to create a decimal number...
like one to the hole number, one to 1/10ths and one th the 1/100... then combine the results
a=num1.value &","& num2.value & num3.value
suposing that the min is set to 0 and max to 9
Well the text is grey and doesn't match other controls' text because the Textbox needs to be disabled and this automatically greys the text.
To REALLY make it look like a normal UpDown control leave the Textbox enabled and use a GotFocus event procedure to prevent user entry.
B4X:
Sub TextBox1_GotFocus
Num1.Focus
End Sub
EDIT: Erel, if you read this, why do I get two GotFocus events in this situation? Without the Num1.Focus I get the single event I expect, if I call the .Focus method on any other control I get called twice!