API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ICONTROL_HANDLEEVENT()

Brew Release
Brew MP 1.0.2
See Also
Description

ICONTROL_HandleEvent() passes events to a control. The Brew MP controls process various events to allow a device user to enter a text, time, or date value or choose an item from a menu. Refer to the descriptions of each control for the events it handles. Your applet must pass a control all of the events, unless the control is part of a dialog. Below is an example of an application passing all of the events to the controls of the application.
static boolean ET_HandleEvent(CExpenseTrackerApp * pApp, AEEEvent eCode, uint16 wParam, uint32 dwParam );
{
...   
   // Let each of the controls have a crack at the event.  If one of them is able to handle
   // the event then return TRUE indicating that the event has been handled.

if (pApp->m_pIStatic && ISTATIC_HandleEvent(pApp->m_pIStatic, eCode, wParam, dwParam)) return TRUE; if (IMENUCTL_HandleEvent(pApp->m_pMenu, eCode, wParam, dwParam)) return TRUE; if (IMENUCTL_HandleEvent(pApp->m_pSK, eCode, wParam, dwParam)) return TRUE; if (IMENUCTL_HandleEvent(pApp->m_pList, eCode, wParam, dwParam)) return TRUE; if (IDATECTL_HandleEvent(pApp->m_pDate, eCode, wParam, dwParam)) return TRUE; ...
}
Params
pIControl
[]:
pointer to the IControl interface object.
evt
[]:
event code.
wp
[]:
16-bit event data.
dwp
[]:
32-bit event data.
Interface
  • ICONTROL
Prototype
  • boolean ICONTROL_HandleEvent(IControl * pIControl, AEEEvent evt, uint16 wp, uint32 dwp);
    
Return
  • TRUE : the event was processed by the control. FALSE : otherwise.
Side Effect
  • None
Comments
None