I have an Nwazet Touch Screen on my Netduino Go. The screen can display a keyboard using:
var response = canvas.TouchscreenShowDialog(DialogType.Alphanumeric);
DialogType only has Alphanumeric as an option. It runs this code:
public string TouchscreenShowDialog(DialogType dialogType) { BasicTypeSerializer.Put(SendContext, (byte)Command.TouchscreenShowDialog); BasicTypeSerializer.Put(SendContext, (ushort)dialogType); <---- If I change this value to 0, 1, 2 or 3 it makes no difference Execute(); Receive(); TouchScreenDataType eventType = (TouchScreenDataType) BasicTypeDeSerializer.Get(ReceiveContext); if (eventType != TouchScreenDataType.String) { throw new ApplicationException("eventType"); } return BasicTypeDeSerializer.Get(ReceiveContext, ""); }
Apart from trying to change the value of dialogType, which doesn't do anyhting, this code is too complex for me to follow. I can't see any obvious way of setting it so that it will just display a numeric keyboard. The default mode allows the shift button to scroll through lowercase -> punctuation -> numeric -> uppercase
Does anybody have any idea of how I could just show the numeric keyboard?
Kind regards,
Julian