Developer

API Reference

IWidget_SetBorderWidthEdge()

Brew Release
Brew MP 1.0.2
See Also
Widget Events IWidget_SetBorderWidth IWidget_GetBorderWidthEdge IWidget_SetActiveBorderWidthEdge IWidget_SetInactiveBorderWidthEdge
Description
This routine is used to set both the active and inactive widths to the same value for one or more individual border edges.
Parameters
  • pif
    []:
    [in] Pointer to the IWidget interface object
  • nEdges
    []:
    [in] The border edges for which the width should be set. Can be any one of, or any combination of the following, BORDER_TOP_EDGE, BORDER_BOTTOM_EDGE, BORDER_LEFT_EDGE or BORDER_RIGHT_EDGE. To refer to multiple edges simply bitwise OR the different edges together.
  • nBorderWidth
    []:
    [in] Border width to be set.
Interface
Prototype
   int IWidget_SetBorderWidthEdge(IWidget *pif, int nEdges, int nBorderWidth);
Return
   AEE_SUCCESS - If the widget is able to set the requested property.
   AEE_EFAILED - If the property could not be set.
Side Effect
There is a slight additional memory cost to setting individual border widths on a widget. Therefore if all the borders on a widget have the same width it is best to use IWidget_SetBorderWidth.
Comment
None
  • Follow