Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Setting touch mode

The application calls ISHELL_CreateInstance() to create a widget. An application can then call IWidget_SetTouchMode() to set the touch mode of the widget.

The following example shows how to create a widget and set touch mode:

   ERR_TRY(ISHELL_CreateInstance(shell, classID, CAST(void**, ppiQI)));

   ERR_TRY(IQI_QueryInterface(*ppiQI, AEEIID_IWidget, CAST(void**, ppiWidget)));

   ERR_TRY(IWidget_SetTouchMode(*ppiWidget, AEEWIDGET_TOUCH_MODE_CHILD));