WebPopupMenu.SelectionChanged

From Xojo Documentation

Event


WebPopupMenu.SelectionChanged(item As WebMenuItem)

New in 2020r1

Supported for all project types and targets.

The selected item has changed, either by user interaction with the control or via code. Use ListIndex to change the selection via code.

Notes

This is the equivalent of the desktop PopupMenu's Change event. It is past tense to reflect the fact that the change has already occurred when the event is called.

Example

This code in the SelectionChanged event handler displays the selected item:

If item <> Nil Then
MessageBox("You selected: " + item.Value)
End If

See Also

PopupMenu