SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the control's visual response to a mouse click.
Get
VB.NET | Style = object.Bounce As SftButtonBounceStyleConstants |
VB | Style = object.Bounce As SftButtonBounceStyleConstants |
C#.NET | SftButtonBounceStyleConstants Style = object.Bounce; |
VC++ | enum SftButtonBounceStyleConstants Style = object->Bounce; enum SftButtonBounceStyleConstants Style = object->GetBounce(); |
C | HRESULT object->get_Bounce(enum SftButtonBounceStyleConstants* Style); |
Put
VB.NET | object.Bounce = Style As SftButtonBounceStyleConstants |
VB | object.Bounce = Style As SftButtonBounceStyleConstants |
C#.NET | SftButtonBounceStyleConstants object.Bounce = Style; |
VC++ | enum SftButtonBounceStyleConstants object->Bounce = Style; void object->PutBounce(enum SftButtonBounceStyleConstants Style); |
C | HRESULT object->put_Bounce(enum SftButtonBounceStyleConstants Style); |
object
Style
Defines the control's visual response to a mouse click.
Name | Value | Description |
---|---|---|
bounceSftButtonDefault | 0 | Default - If Windows themes are in effect, bounceSftButtonNo applies. Otherwise, without Windows themes, bounceSftButtonYes applies. |
bounceSftButtonYes | 1 | Yes - The control reflects the mouse click by painting the control contents offset by one pixel while the mouse button is pressed. |
bounceSftButtonNo | 2 | No - A mouse click does not cause the control contents to be repainted. |
The Bounce property defines the control's visual response to a mouse click.
The graphics components also reflect mouse clicks using the Image1Pressed and Image2Pressed properties (if defined).
The Bounce property does not apply to the drop down button.
' initialize a SftButton control to look like a check box AxSftButtonCheck.BorderAlways = False #If VisualStudio2003AndEarlier Then AxSftButtonCheck.AutoSize = SftButtonAutoSizeConstants.autosizeSftButtonLeftCenter #Else AxSftButtonCheck.CtlAutoSize = SftButtonAutoSizeConstants.autosizeSftButtonLeftCenter #End If AxSftButtonCheck.Bounce = SftButtonBounceStyleConstants.bounceSftButtonNo AxSftButtonCheck.ButtonStyle = SftButtonStyleConstants.styleSftButtonNone AxSftButtonCheck.ClickStyle = SftButtonClickStyleConstants.clickstyleSftButtonPictures AxSftButtonCheck.HoverStyle = SftButtonHoverStyleConstants.hoverstyleSftButtonExact AxSftButtonCheck.Image1.Appearance = SftPictureImageConstants.sftImageCheckboxYes AxSftButtonCheck.Text = "A SftButton control that looks like a check box with a caption" AxSftButtonCheck.ShowFocus = False End Sub
' save the button size to demonstrate auto-sizing savedWidth = SftButton2.Width savedHeight = SftButton2.Height savedYPos = SftButton2.Top ' initialize a SftButton control to look like a check box SftButtonCheck.BorderAlways = False SftButtonCheck.AutoSize = autosizeSftButtonLeftCenter SftButtonCheck.Bounce = bounceSftButtonNo SftButtonCheck.ButtonStyle = styleSftButtonNone SftButtonCheck.ClickStyle = clickstyleSftButtonPictures SftButtonCheck.HoverStyle = hoverstyleSftButtonExact SftButtonCheck.Image1.Appearance = sftImageCheckboxYes SftButtonCheck.Text = "A SftButton control that looks like a check box with a caption" SftButtonCheck.ShowFocus = False End Sub
// initialize a SftButton control to look like a check box axSftButtonCheck.BorderAlways = false; #if VisualStudio2003AndEarlier axSftButtonCheck.AutoSize = SftButtonAutoSizeConstants.autosizeSftButtonLeftCenter; #else axSftButtonCheck.CtlAutoSize = SftButtonAutoSizeConstants.autosizeSftButtonLeftCenter; #endif axSftButtonCheck.Bounce = SftButtonBounceStyleConstants.bounceSftButtonNo; axSftButtonCheck.ButtonStyle = SftButtonStyleConstants.styleSftButtonNone; axSftButtonCheck.ClickStyle = SftButtonClickStyleConstants.clickstyleSftButtonPictures; axSftButtonCheck.HoverStyle = SftButtonHoverStyleConstants.hoverstyleSftButtonExact; axSftButtonCheck.Image1.Appearance = SftPictureImageConstants.sftImageCheckboxYes; axSftButtonCheck.Text = "A SftButton control that looks like a check box with a caption"; axSftButtonCheck.ShowFocus = false; }
// save the button size to demonstrate auto-sizing m_CtlButton2.GetClientRect(&m_savedRect); m_CtlButton2.MapWindowPoints(this, &m_savedRect); // initialize a SftButton control to look like a check box m_vButtonCheck->BorderAlways = VARIANT_FALSE; m_vButtonCheck->AutoSize = autosizeSftButtonLeftCenter; m_vButtonCheck->Bounce = bounceSftButtonNo; m_vButtonCheck->ButtonStyle = styleSftButtonNone; m_vButtonCheck->ClickStyle = clickstyleSftButtonPictures; m_vButtonCheck->HoverStyle = hoverstyleSftButtonExact; m_vButtonCheck->Image1->Appearance = sftImageCheckboxYes; m_vButtonCheck->Text = "A SftButton control that looks like a check box with a caption"; m_vButtonCheck->ShowFocus = VARIANT_FALSE;
See Also SftButton Object | Object Hierarchy