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

Developer

API Reference

IWIDGET_SETSLIDERMAXPOS()

Brew Release
Brew MP 1.0.2
See Also
PROP_SLIDER_MAXPOS IWidget_GetSliderMaxPos()
Description
This function sets the maximum position value for the slider widget. The maximum position value determines the number of steps the slider handle may move through and the maximum value of the integer model data.
Params
po
[]:
A pointer to the IWidget object (slider widget).
pos
[]:
Value to set as the slider widget's maximum position.
Interface
Prototype
  •    int IWidget_SetSliderMaxPos(IWidget *po, uint16 pos);
    
Return
  •    AEE_SUCCESS - The widget was able to successfully set the maximum position value.
       AEE_EFAILED - The widget was unable to set the maximum position value.
    
Side Effect
  • If the maximum position is greater than the current value of the position as store in the model data, the model data is limited to the new maximum position value.
Comments
None.