Developer

API Reference

IWidget_SetLocale()

Brew Release
Brew MP 1.0.2
See Also
Error Codes ILocale IWidget
Description
Sets the ILocale object with which the widget will use to initialize itself.
Parameters
  • pif
    []:
    [in] Pointer to the IWidget object.
  • piLocale
    []:
    [in] The ILocale object to be queried by widget.
Interface
Prototype
   int IWidget_SetLocale(IWidget *pif, ILocale *piLocale);
Return
AEE_SUCCESS : The widget was able to set the ILocale object. AEE_EFAILED : The widget failed to set the ILocale object.
Side Effect
Setting an ILocale object may cause the date/time widget to initialize itself with an entirely new set of fields and field delimiters.
Comment
Since setting an ILocale object may cause the date/time widget to display a completely different field presentation, it is recommended that IWidget_GetPreferredExtent() and IWidget_SetExtent() be called on the widget after this function call.
  • Follow