HeaderPane
Main
Hide

SftButton/DLL 3.0 - Button Control

Share Link
Print

SFTBUTTON_ERR Constants

Error codes returned in SFTBUTTON_CONTROL's errorValue field by SetControlInfo when a field has an invalid value. If SetControlInfo returns FALSE, call GetControlInfo and inspect errorValue to find out which field was rejected.

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 zeroes errorValue on success and returns FALSE on failure. 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 05/09/2026 - (email)
© 2026 Softel vdm, Inc.