HeaderPane
Main
Hide

SftButton/DLL 3.0 - Button Control

Share Link
Print

Using Themes

Windows themes can be selected by the user using the Settings app or the Control Panel.

If a theme is selected, the display of user interface controls, such as SftButton/DLL, adapts to the current display theme. The button control renders in one of three theme modes (see SFTBUTTON_CONTROL.nUseThemes):

SFTBUTTON_THEME_NO (0)Themes are not honored; the control renders using its built-in style, colors, gradients and images.
SFTBUTTON_THEME_YES (1)Themes are fully honored. Windows renders the button background and border; the control renders its images and text on top.
SFTBUTTON_THEME_YES_NOTEXT (2)Themes are honored for the button background and border only. The application's text color and font are used as specified instead of the theme's.

SftButton/DLL makes it easy to use the same application across all supported platforms. If Windows themes are not available, the control will simply use its built-in display style, otherwise it will fully exploit Windows themes.

Keep in mind that numerous button definitions, particularly relating to per-state colors, gradients and borders, have no effect when themes are active.

Windows themes are automatically suppressed when Dark Mode or Windows High Contrast is active on the button control. See Dark Mode and High Contrast for details on the alternative rendering paths used in each case.


Last Updated 04/26/2026 - (email)
© 2026 Softel vdm, Inc.