HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

Up/Down Buttons

A numeric input field can be defined to accept up/down button clicks. Up/down buttons are only displayed if the iEditStyle field of the SFTMASK_CONTROL structure is set to SFTMASK_EDITUPDOWN and if the numeric field uses the ^ subtoken (see Edit Masks).

Numeric fields with a minimum/maximum range require no further programming to allow the up/down buttons to increment/decrement the current value. For other numeric fields (without minimum/maximum range), the NM_SFTMASK_UPDOWNPRESS notification must be handled to increment/decrement the current value under program control. Using the NM_SFTMASK_UPDOWNPRESS notification, an application can implement its own minimum/maximum range and also a delayed or custom increment.

The NM_SFTMASK_UPDOWNHANDLED notification is sent after the control contents have been modified using the up/down button.

Up/down buttons support hot-tracking (see the fHotTrack field).

The up/down buttons can be disabled using the fLockedUpDown field.

See Also Edit Masks | Auto-Advance | SFTMASK_EDIT Constants | Notifications


Last Updated 08/30/2026 - (email)
© 2026 Softel vdm, Inc.