Specifies the number of pixels by which the control's text (and image, if any) is shifted when the control is in the pushed (clicked) state
Type
Description
Long
A long expression that indicates the number of pixels by which the control's text (and image, if any) is shifted when the control is in the pushed (clicked) state
By default, the property is set to 2, meaning the control’s text is shifted by two pixels when the user clicks it.
This feature provides a simple yet effective way to enhance the control's visual feedback, making it clearer to the user that the button (or control) has been clicked.
The Caption property defines the text displayed on the button. The
Image property defines the picture shown on the button.
Usage:
A higher value makes the shift more noticeable, simulating a "deeper" push
effect
A value of 0 disables shifting, meaning the control's content will remain in its normal position even when
pressed
Negative values can also be used if you want to shift the content in the opposite direction (though this is
uncommon)