InterviewSolution
| 1. |
How Can We Create A Dialog? |
|
Answer» Use the BREW Resource Editor to create a dialog. You can also construct the dialog manually by creating data structures in your application to define the contents of the dialog. Note: If a bmp FILE is being USED, make SURE that the bmp format is supported and that the bmp file is a valid full path, all in lowercase. Once the dialog has been created, it will have a resource ID and a resource file (.bar file). Use ISHELL_CreateDialog() to create the dialog: ISHELL_CreateDialog(pMe->a.pIShell, SAMPLEAPP_RES_FILE, RESOURCE_ID, NULL); // SAMPLEAPP_RES_FILE is the resource file (.bar file) and Process the following events (return TRUE at the very least) in the app handler function: case EVT_DIALOG_START: Call ISHELL_EndDialog when the dialog object is no longer needed. ISHELL_EndDialog(pMe->a.pIShell); Use the BREW Resource Editor to create a dialog. You can also construct the dialog manually by creating data structures in your application to define the contents of the dialog. Note: If a bmp file is being used, make sure that the bmp format is supported and that the bmp file is a valid full path, all in lowercase. Once the dialog has been created, it will have a resource ID and a resource file (.bar file). Use ISHELL_CreateDialog() to create the dialog: ISHELL_CreateDialog(pMe->a.pIShell, SAMPLEAPP_RES_FILE, RESOURCE_ID, NULL); // SAMPLEAPP_RES_FILE is the resource file (.bar file) and Process the following events (return TRUE at the very least) in the app handler function: case EVT_DIALOG_START: Call ISHELL_EndDialog when the dialog object is no longer needed. ISHELL_EndDialog(pMe->a.pIShell); |
|