Method for building dialogs in a BrewTM applet

xiaoxiao2021-03-06  39

Method of constructing the dialog at BREW ™ applet September 12, 2003 Author: Qualcomm mobile front line

1. Use the resource editor to build a dialog with controls. The dialog will have a resource ID. 2. Call the function iShell_createdialog Create a dialog box for resource IDs. For example: IF (ishell_createdialog (pme-> a.m_pishell,

App_res_file, idd_dialog, null)! = Aee_success

Return False;

3. In the yourapp_handleevent function, process the following events or at least return TRUE: Case EVT_DIALOG_START:

Return True;

Case evt_dialog_init:

Return True;

Case EVT_DIALOG_END:

Return True;

4. Remember to call ISHELL_ENDDIALOG to avoid memory dead zones. For example: ISHELL_ENDDIALOG (PME-> a.m_pishell);

转载请注明原文地址:https://www.9cbs.com/read-62092.html

New Post(0)