int EditSetOnDone(int (*callback)(void));


Sets the global callback function to be called when a user is finished editing any edit box.


Return Value


Return value not used.





Name of the global function to be called when the user has finished editing text.




EditSetOnDone() will specify the callback function to be called when the user dismisses the device keyboard. This callback is not associated with any one EditAdd() - it is called no matter which edit box finishes typing.  Use this as the place to gather all the data in your edit boxes presented in your app by using EditGetText().




Available in DragonFireSDK 1.2 and later.




#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);






void AppMain()


   ViewAdd("MyForm.png",0,0); // display a form background with white edit boxes

   edit = EditAdd(10, 80, 50);

   EditSetLabel(edit, "Email");




void AppExit()





void OnTimer()