Developer

API Reference

IWidget_SetTargetWidget()

Brew Release
Brew MP 1.0.2
See Also
- IWidget_GetTargetWidget
Description
Scrollbar can also be used seperately without a child widget.This function attaches a target widget to scrollbar widget. All Scroll Events(EVT_WDG_SCROLL) are routed to this target widget if it is set and listens to EVT_MDL_SCROLL_CHANGE event and invalidates itself.
Parameters
  • pif
    []:
    [in] Pointer to IWidget (scrollbar widget)
  • pTarget
    []:
    [in] Pointer to IWidget (Target Widget)
Interface
Prototype
   int IWidget_SetTargetWidget(IWidget *pif, IWidget *pTarget);   
   
Return
   AEE_SUCCESS - The widget was able to successfully set target widget
   AEE_EFAILED - The widget was unable to set target widget
Side Effect
None.
Comment
None.
  • Follow