WebPopupMenu.SelectionChanged

From Xojo Documentation

Event


WebPopupMenu.SelectionChanged()

New in 2010r4

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.

On Internet Explorer, this event is not called if you have implemented the MouseDown event. Consider using the MouseUp event instead.

Example

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

If Me.ListIndex >= 0 Then
MessageBox(Me.List(Me.ListIndex))
End If

See Also

PopupMenu