Checked Property
Description
Gets or sets the Id of the switch that is currently checked.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property Checked() As Long
Remarks
Checked is used to get or set the currently selected/checked switch in the switch pane.

The SwitchPaneClick event can be used to select/check a switch when it is clicked, as well as perform some other action when the appropriate switch has been clicked.
Example
' Code used to add switch pane and switches
Dim SwitchPane As StatusBarSwitchPane
Set SwitchPane = StatusBar.AddSwitchPane(ID_INDICATOR_VIEWSHORTCUTS)
SwitchPane.AddSwitch ID_SWITCH_PRINTLAYOUT, "Print Layout"
SwitchPane.AddSwitch ID_SWITCH_FULLSCREENREADING, "Full Screen Reading"
SwitchPane.AddSwitch ID_SWITCH_WEBLAYOUT, "Web Layout"
SwitchPane.AddSwitch ID_SWITCH_OUTLINE, "Outline"
SwitchPane.AddSwitch ID_SWITCH_DRAFT, "Draft"
SwitchPane.Checked = ID_SWITCH_PRINTLAYOUT
SwitchPane.Caption = "&View Shortcuts"
Private Sub StatusBar_SwitchPaneClick(ByVal Pane As XtremeCommandBars.StatusBarSwitchPane, ByVal Id As Long)
Pane.Checked = Id
End Sub
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.