Changes between Version 3 and Version 4 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Form/FORM_INIT


Ignore:
Timestamp:
08/20/10 10:36:39 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Form/FORM_INIT

    v3 v4  
    33
    44{{{
    5 void FORM_INIT(EVENT_FNC eventShow, EVENT_FNC eventProcess, EVENT_FNC event_hide, EVENT_FNC event_done, int nFlag);
     5void FORM_INIT(formName name, EVENT_FNC eventShow, EVENT_FNC eventProcess, EVENT_FNC eventHide, EVENT_FNC eventDone, int nFlag);
    66}}}
    77
    88== Parameters ==
    99
     10 * formName - name of the form.
    1011 * eventShow - event function that is called to display additional items such as titles.
    1112 * eventProcess - event function that is called every few milliseconds to do any application processing desired
     
    2324
    2425{{{
     26void IDScreen(void)
     27{
     28    FORM_INIT(ID, EventIDShow, NULL, NULL, NULL, nFormFlgShowHelp);
     29    FORM_ADD_INPUT(ID, ID, 0, 50, "ID: ", 10, 0, 0, NULL, strID, 0, NULL, "Enter the ID");
     30
     31    FORM_SHOW(ID);
     32    FORM_RUN(ID);
     33    FORM_HIDE(ID);
     34}
     35
     36EVENT(IDShow)
     37{
     38    ClearLCD();
     39    DisplayText(0, 0, "Enter ID Screen");
     40    return 0;
     41}
    2542}}}
    2643