Version 1 (modified by 7 years ago) ( diff ) | ,
---|
IN_EVENT_HIDE_FORM
If a form event if other input is desired IN_EVENT_HIDE_FORM may be called to hide the existing form.
IN_EVENT_HIDE_FORM
Parameters
- None
Return Value
This function does not return any value
Remarks
IN_EVENT_HIDE_FORM is a macro to simplify the operation of form events. The preprocessor will replace this with a call to the Hide function of the form.
#define IN_EVENT_HIDE_FORM pForm->Hide()
Examples
void IDScreen(void) { string strID = ""; float fVal = 0.0; uint8 bySel = 0; FORM_INIT(ID, EventIDShow, NULL, NULL, NULL, nFormFlgShowHelp); FORM_ADD_INPUT(ID, ID, 0, 50, "ID: ", 10, 0, 0, NULL, strID, 0, NULL, "Enter the ID"); FORM_ADD_INPUT(ID, Val, 0, 80, "Value: ", 10, 0, 9999, NULL, fVal, 0, NULL, "Enter the value"); FORM_ADD_INPUT(ID, Sel, 0, 110, "Select: ", 10, 0, 2, NULL, bySel, FORM_UINT8_SEL, "Truck|Pickup|Car", "Press SPACE to select type"); FORM_SHOW(ID); FORM_RUN(ID); FORM_HIDE(ID); // strID, fVal, and bySel now contain the entered data } EVENT(IDShow) { ClearLCD(); DisplayText(0, 0, "ID/Value Screen"); return 0; }
See Also
Note:
See TracWiki
for help on using the wiki.