Version 4 (modified by 6 years ago) ( diff ) | ,
---|
FORM_DONE_LEFT_ARROW
FORM_DONE_LEFT_ARROW is a defined value for the nData parameter of a form done event to indicate the form was exited by means of the left arrow navigation key.
Example
EVENT(InputDone) { if(nData == FORM_DONE_ESCAPE || nData == FORM_DONE_LEFT_ARROW) { if(pForm->IsChanged() == true) { if(WaitPrompt(LANG(STR_SAVE_CHANGES), LANG(STR_YES), LANG(STR_NO)) == true) { IN_EVENT_WRITE_DATA; } } } return 1; }
EVENT(MainScreenDone) { if(nData != FORM_DONE_ESCAPE) { ShowErrorMsg("SHIFT-ESCAPE to exit application"); return 0; } if(mode != modeIdle) { ShowErrorMsg("Cannot exit while running"); return 0; } return 1; }
See Also
Note:
See TracWiki
for help on using the wiki.