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 color for dark edges.
Get
Put
object
Clr
Defines the control's color for dark edges. For information about color properties, please visit the applicable section "Using SftButton/OCX with ...".
The DarkEdgeColor property defines the control's color for dark edges.
This property has no effect if Windows themes are used.
' The cursor has left the button, change the font
' and button text back to their original settings
AxSftButton1.Font = New Font(AxSftButton1.Font, FontStyle.Regular)
AxSftButton1.Text = "Click Me"
End Sub
Private Sub BorderTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BorderTimer.Tick
' Change the button border
If AxSftButton3.Pressed Or Color.op_Inequality(AxSftButton3.DarkEdgeColor, SystemColors.ControlDarkDark) Then
AxSftButton3.DarkEdgeColor = SystemColors.ControlDarkDark
AxSftButton3.ShadowEdgeColor = SystemColors.ControlDark
AxSftButton3.LightEdgeColor = SystemColors.ControlLight
AxSftButton3.WhiteEdgeColor = SystemColors.ControlLightLight
Else
AxSftButton3.DarkEdgeColor = SystemColors.ControlLightLight
AxSftButton3.ShadowEdgeColor = SystemColors.ControlLightLight
LastPicture = LastPicture + 1
If LastPicture >= 16 Then LastPicture = 0
End With
End Sub
Private Sub BorderTimer_Timer()
' Change the button border
With SftButton3
If .Pressed Or .DarkEdgeColor <> vb3DDKShadow Then
.DarkEdgeColor = vb3DDKShadow
.ShadowEdgeColor = vbButtonShadow
.LightEdgeColor = vb3DLight
.WhiteEdgeColor = vb3DHighlight
Else
.DarkEdgeColor = vb3DHighlight
.ShadowEdgeColor = vb3DHighlight
// Update the button bitmap every so often to get the
// spinning globe effect
SetImage();
}
private void borderTimer_Tick(object sender, System.EventArgs e)
{
// Change the button border
if (axSftButton3.Pressed || axSftButton3.DarkEdgeColor != SystemColors.ControlDarkDark)
{
axSftButton3.DarkEdgeColor = SystemColors.ControlDarkDark;
axSftButton3.ShadowEdgeColor = SystemColors.ControlDark;
axSftButton3.LightEdgeColor = SystemColors.ControlLight;
axSftButton3.WhiteEdgeColor = SystemColors.ControlLightLight;
} else {
axSftButton3.DarkEdgeColor = SystemColors.ControlLightLight;
++m_WorldIndex;
if (m_WorldIndex >= WORLDBITMAPS) m_WorldIndex = 0;
}
void CSpecialDlg::ChangeBorder()
{
// Change the button border
if (m_vButton3->Pressed || m_vButton3->GetDarkEdgeColor() != (0x80000000L|COLOR_3DDKSHADOW)) {
m_vButton3->PutDarkEdgeColor(0x80000000L|COLOR_3DDKSHADOW);
m_vButton3->PutShadowEdgeColor(0x80000000L|COLOR_3DSHADOW);
m_vButton3->PutLightEdgeColor(0x80000000L|COLOR_3DLIGHT);
m_vButton3->PutWhiteEdgeColor(0x80000000L|COLOR_3DHILIGHT);
} else {
m_vButton3->PutDarkEdgeColor(0x80000000L|COLOR_3DHILIGHT);
m_vButton3->PutShadowEdgeColor(0x80000000L|COLOR_3DHILIGHT);
m_vButton3->PutLightEdgeColor(0x80000000L|COLOR_3DHILIGHT);See Also SftButton Object | Object Hierarchy
