Version 5 (modified by 14 years ago) ( diff ) | ,
---|
FORM_INIT
Initializes a display form.
void FORM_INIT(formName name, EVENT_FNC eventShow, EVENT_FNC eventProcess, EVENT_FNC eventHide, EVENT_FNC eventDone, int nFlag);
Parameters
- formName - name of the form.
- eventShow - event function that is called to display additional items such as titles.
- eventProcess - event function that is called every few milliseconds to do any application processing desired
- eventHide - event function that is called when the form is hidden
- eventDone - event function that is called when the form is exiting
- nFlag - form flags
Return Value
This function oes not return any value
Remarks
Examples
void IDScreen(void) { string strID; 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_SHOW(ID); FORM_RUN(ID); FORM_HIDE(ID); // strID now contains the entered data } EVENT(IDShow) { ClearLCD(); DisplayText(0, 0, "Enter ID Screen"); return 0; }
See Also
- FORM_ADD_INPUT
- FORM_ADD_BUTTON
- FORM_SHOW
- FORM_RUN
Note:
See TracWiki
for help on using the wiki.