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
This sample illustrates setting design-time properties at run-time.
The source code is located at C:\Program Files (x86)\Softelvdm\SftButton OCX 3.0\Samples\VB6\Runtime\Form1.frm or C:\Program Files\Softelvdm\SftButton OCX 3.0\Samples\VB6\Runtime\Form1.frm (on 32-bit Windows versions).
Private Sub Form_Load() ' This sample doesn't do anything "useful". Its only purpose ' is to provide runtime initialization of a SftButton control, ' so we have some code samples for the properties. ' It is a lot easier to set properties at design-time using ' the property pages. Right-click on the control, then select ' "Properties" from the popup menu to access the property pages. ' Appearance SftButton1.AVITransparent = True SftButton1.BorderAlways = True SftButton1.BorderStyle = borderSftButtonStandard SftButton1.ButtonStyle = styleSftButtonDropDown SftButton1.DropDownPressed = False SftButton1.DropDownStyle = dropdownstyleSftButtonStandard SftButton1.FillOrientation = orientationSftButtonHorizontal SftButton1.Orientation = orientationSftButtonHorizontal SftButton1.Pressed = False SftButton1.ShowFocus = True SftButton1.Text = "Code Sample" SftButton1.TextAlignHorz = alignSftButtonCenter SftButton1.TextAlignVert = alignSftButtonVCenter SftButton1.UseThemes = themesSftButtonNo ' Behavior SftButton1.AllowFocus = True SftButton1.Bounce = bounceSftButtonYes SftButton1.ClickInterval = 100 SftButton1.DropDownDownClick = True SftButton1.DropDownFollows = False SftButton1.DropDownPressed = False SftButton1.DropDownToggle = False SftButton1.Enabled = True SftButton1.Follows = False SftButton1.OLEDragMode = OLEDragSftButtonNone SftButton1.OLEDropMode = OLEDropSftButtonNone SftButton1.RightToLeft = False SftButton1.Toggle = False ' Colors SftButton1.BackColor = vbButtonFace SftButton1.BackColorStart = vbGreen SftButton1.BackColorEnd = vbBlue SftButton1.BackColorFocus = vbButtonFace SftButton1.BackColorFocusStart = vbRed SftButton1.BackColorFocusEnd = vbGreen SftButton1.BackColorHover = vbButtonFace SftButton1.BackColorHoverStart = vbYellow SftButton1.BackColorHoverEnd = vbCyan SftButton1.BackColorPressed = vbButtonFace SftButton1.DarkEdgeColor = vbButtonShadow SftButton1.ForeColor = vbBlack SftButton1.ForeColorGrayed = vbGray SftButton1.ForeColorDownArrow = vbBlue SftButton1.ForeColorPressed = vbBlack SftButton1.LightEdgeColor = vb3DLight SftButton1.ShadowEdgeColor = vb3DShadow SftButton1.WhiteEdgeColor = vb3DShadow End Sub