int EditSetKeyboard(int ed, int flag);
Sets the default keyboard that will be displayed with the specified edit box gets focus.
Return Value
Return value not used.
Parameters
ed Edit box handle.
flag Specifies the keyboard type that will be presented to the user for the specified edit control. Values for flag are specified in the table below:
Remarks
EditSetKeyboard() will cause the specified keyboard type to be displayed for the edit box when the edit box receives input focus. The table above lists the available keyboard types.
Availability
Available in DragonFireSDK 2.0 and later.
Example
#include "DragonFireSDK.h" #include <string.h>
int edit;
int OnEditDone() { char EditText[100];
EditGetText(edit, EditText);
if (strcmp(EditText, "foo") == 0) { EditSetText(edit, "bar"); }
if (strcmp(EditText, "bye") == 0) { EditSetVisible(edit, 0); }
return(0); }
void AppMain() { ViewAdd("MyForm.png",0,0); // display a form background with white edit boxes edit = EditAdd(10, 80, 50); EditSetLabel(edit, "Email"); EditSetOnDone(OnEditDone); }
void AppExit() {
}
void OnTimer() {
} |