Hi Everyone,
I have a very simple scenario: A createTextField is added to a window. I click in the text field, and i just want to enter a number. That's it.
A number keyboard pad appears.
I enter a number - and it works. However, the keyboard doesn't go away. It stays there. There's no "DONE"
I tried to create my own "DONE" button, and "CANCEL" button, but I have no idea how to invoke the cancel and done effects on this object. If I press cancel, nothing happens, and if I press "DONE" nothing happens (i.e. the keyboard just stays there) - I have to quit the app or press the Home button to get rid of it. But why isn't a "DONE" appearing already on the keypad? It appears with alphanumeric keypads?
var Done = Titanium.UI.createButton({ title : 'Done', style : Titanium.UI.iPhone.SystemButtonStyle.DONE, }); var Cancel = Titanium.UI.createButton({ systemButton : Titanium.UI.iPhone.SystemButton.CANCEL }); var FlexSpace = Titanium.UI.createButton({ systemButton : Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE }); var myTextField = Ti.UI.createTextField({ value: '', height:35, right:6, top: 6, width:80, color: '#336699', keyboardToolbar : [Cancel, FlexSpace, Done], keyboardToolbarColor : '#999', keyboardToolbarHeight : 40, borderStyle:Titanium.UI.INPUT_BORDERSTYLE_ROUNDED, returnKeyType:Titanium.UI.RETURNKEY_DONE, clearButtonMode: Titanium.UI.INPUT_BUTTONMODE_ONBLUR, keyboardType: Titanium.UI.KEYBOARD_NUMBER_PAD, enableReturnKey: true, keyboardAppearance: Titanium.UI.KEYBOARD_APPEARANCE_DEFAULT });Thanks for any assistance you can provide Eb