[previous] [up] [next]     [contents] [index]
Next: get-selection-type Up: wx:command-event Previous: checked?

get-selection

For a choice selection, radiobox selection, or list box selection (for a single-selection list box), this integer corresponds to the item that was selected (starting from 0). For a slider change, this integer is the new value of the slider.

For a list box event where an item is double-clicked, the value is -1. For a list box that allows multiple selections, the value is -1, regardless of how many items were selected or deselected by the user.

For a checkbox event, the integer is 1 if the checkbox was checked, 0 otherwise.



PLT