Developer

API Reference

IWidget_SetImageStaticFlags()

Brew Release
Brew MP 1.0.2
See Also
- IWidget_SetProperty()
Description
This function set the flags that manage the layout attributes of an image static widget. Normally, an image static widget is displayed with the image on the left and the label on the right. However, this layout can be reversed by changing the widget's layout flags. The image static widget recognizes a small set of layout flags, as follows.
   IDF_ALIGN_LEFT  -  Layout the widget with the image on the left and the label on
                      the right.
   IDF_ALIGN_RIGHT -  Layout the widget with the label on the left and the image on
                      the right.
Parameters
  • pif
    []:
    [in] Pointer to the image static widget object.
  • dwFlags
    []:
    [in] A 32-bit integer indicating how the image and label should be displayed. The image static widget recognizes only a pair of flags, IDF_ALIGN_LEFT and IDF_ALIGN_RIGHT, each of which are used to control the left/right relationship between the image and label.
Interface
Prototype
   int IWidget_SetImageStaticFlags(IWidget *pif, uint32 dwFlags)
Return
   AEE_SUCCESS - If BREW was able to successfully set the layout of the image and label
                 widgets as desired.
   AEE_EFAILED - If the requested layout could not be set, or if flags other than
                 IDF_ALIGN_LEFT or IDF_ALIGN_RIGHT were specified in the call.
Side Effect
Calling IWidget_SetImageStaticFlags() will cause the image static widget to be redrawn with the specified layout flags.
Comment
None
  • Follow