Developer

API Reference

IWidget_SetDefaultTextAlignment()

Brew Release
Brew MP 1.0.2
See Also
IDISPLAY Flags IWidget_GetDefaultTextAlignment AEECLSID_StaticWidget
Description

Sets the default (horizontal) text alignment for the static widget. This value will be used if no alignment is set using the IWidget_SetFlags call.
Parameters
  • pif
    []:
    [in] Pointer to the IWidget object.
  • nDefaultTextAlignment
    []:
    [in] Value to be used as the default text alignment.
Interface
Prototype
   int IWidget_SetDefaultTextAlignment(IWidget* pif, uint32 nDefaultTextAlignment)
Return
   AEE_SUCCESS - If the static widget is able to successfully set the Default Text Alignment.
   AEE_EFAILED - Failed to set the Default Text Alignment.
Side Effect

The default text alignment for the static widget will be set to the value specified. Although constants besides the 4 listed above (such as the vertical versions) can be specified to the default text alignment, these will not neccessarily be applied and can result in indeterminant display properties.
Comment
The Default Text Alignment can be one of the values in the set of IDisplay horizontal alignment constants:
- IDF_ALIGN_NONE
- IDF_ALIGN_LEFT
- IDF_ALIGN_CENTER
- IDF_ALIGN_RIGHT
  • Follow