WebSegmentedButton

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from WebUIControl)

A control that is a horizontal button made up of multiple segments.

Events
Closed Hidden Pressed
ContextualMenuSelected Opening Shown


Properties
ContextualMenu LockLeft fa-lock-32.png SelectedSegment
ControlID fa-lock-32.png LockRight fa-lock-32.png SelectionStyle
Enabled LockVertical fa-lock-32.png Style
Height Name fa-lock-32.png TabIndex
Indicator Page fa-lock-32.png Tooltip
Left Parent fa-lock-32.png Top
LockBottom fa-lock-32.png SegmentCount fa-lock-32.png Visible
LockHorizontal fa-lock-32.png SelectedSegmentIndex Width


Methods
Close SegmentAt SetFocus
ExecuteJavaScript SegmentCount UpdateBrowser
GotoURL SelectedCount
Enumerations
SelectionStyles

Sample Code

This code in the Pressed event handler checks to see which segment was selected:

Select Case SegmentIndex
Case 0 // First segment
MessageBox("First Segment")
Case 1 // Second segment
MessageBox("Second segment")
End Select

Compatibility

Web projects on all supported operating systems.

See Also

WebSegment class, SegmentedControl desktop control