HeaderPane
Main
Hide
Share Link
Print

ButtonLookEnum Enumeration

Defines the appearance of expand/collapse buttons.

Class: (none)
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public enum ButtonLookEnum;
Public Enum ButtonLookEnum

Values

NameDescription
SystemThe expand/collapse buttons have an appearance that mimics the current operating system, but does not use themes, even if these are enabled by the operating system.
SimpleThe expand/collapse buttons use a predefined, simple appearance, similar to expand/collapse buttons used on non-themed versions of Windows.
ThemedAppearanceXPThe expand/collapse buttons emulate an appearance that mimics Windows XP themes, even on operating systems that do not offer themes.
ThemedAppearanceVistaThe expand/collapse buttons emulate an appearance that mimics Windows Vista themes, even on operating systems that do not offer themes.
ThemedSystemThe expand/collapse buttons have an appearance that mimics the current operating system. For example, on Windows XP (and above), Windows themes would be used if these are enabled by the operating system.
CustomThe expand/collapse buttons use application-defined images and attributes defined using the SftTree.Buttons property.

Comments

Defines the appearance of expand/collapse buttons.

Examples

C#

        }

        private void RowHeadersOn() {
            Optimize();
            AdjustInfo();
        }

        private void ExpandCollapseButtonsSimple() {
            sftTree1.ButtonLook = ButtonLookEnum.Simple;
            sftTree1.TreeLinesPen = LinesPenStyleEnum.Dots;
        }

        private void ExpandCollapseButtonsVista() {
            sftTree1.ButtonLook = ButtonLookEnum.ThemedAppearanceVista;
            sftTree1.TreeLineStyle = TreeLineStyleEnum.None;
        }

VB.NET

End Sub

Private Sub RowHeadersOn()
    Optimize()
    AdjustInfo()
End Sub

Private Sub ExpandCollapseButtonsSimple()
    sftTree1.ButtonLook = ButtonLookEnum.Simple
    sftTree1.TreeLinesPen = LinesPenStyleEnum.Dots
End Sub

Private Sub ExpandCollapseButtonsVista()
    sftTree1.ButtonLook = ButtonLookEnum.ThemedAppearanceVista
    sftTree1.TreeLineStyle = TreeLineStyleEnum.None
End Sub

See Also | Classes | SftTree/NET 3.0