HeaderPane
Main
Hide
Share Link
Print

SFTBUTTON_ERR Constants

Error codes SetControlInfo stores in the errorValue field of the SFTBUTTON_CONTROL structure passed to it when a field has an invalid value. If SetControlInfo returns FALSE, inspect errorValue in that same structure. GetControlInfo always returns 0 in errorValue.

CodeOffending field
SFTBUTTON_ERR_nBorderStyle (100)nBorderStyle is outside the SFTBUTTON_BORDER_* range.
SFTBUTTON_ERR_nFillOrientation (101)nFillOrientation is outside the SFT_ORIENTATION_HORZ / SFT_ORIENTATION_VERT range.
SFTBUTTON_ERR_nDropDownStyle (102)nDropDownStyle is outside the SFTBUTTON_DROPDOWNSTYLE_* range.
SFTBUTTON_ERR_iHoverStyle (103)iHoverStyle is outside the SFTBUTTON_HOVERSTYLE_* range.
SFTBUTTON_ERR_iClickStyle (104)iClickStyle is outside the SFTBUTTON_CLICKSTYLE_* range.
SFTBUTTON_ERR_iAutoSize (105)iAutoSize is outside the SFTBUTTON_AUTOSIZE_* range.
SFTBUTTON_ERR_iBounce (106)iBounce is outside the SFTBUTTON_BOUNCE_* range.
SFTBUTTON_ERR_nDarkMode (107)nDarkMode is outside the SFTBUTTON_DARKMODE_* range.
SFTBUTTON_ERR_nHighContrastMode (108)nHighContrastMode is outside the SFTBUTTON_HIGHCONTRAST_* range.
SFTBUTTON_ERR_imageScaling (109)imageScaling is outside the SFTBUTTON_IMAGESCALING_* range.
SFTBUTTON_ERR_pixelScaling (110)pixelScaling is outside the SFTBUTTON_PIXELSCALING_* range.

SetControlInfo sets errorValue to 0 on entry and, when it returns FALSE because of an invalid field, to that field's code; no field is applied in that case. Only the first out-of-range field is reported; if multiple fields are invalid, fix the reported one and call SetControlInfo again to surface the next.

See Also SetControlInfo | SFTBUTTON_CONTROL


Last Updated 10/11/2026 - (email)
© 2026 Softel vdm, Inc.