A command event is associated with each panel item or menu callback. It is not passed to the callback, so must be retrieved within a callback using panel-item-get-command-event.
The command event types are as follows:
command-event-get-selection
command-event-is-selection
long ( command-event-get-selection long id)
Returns the identifier selection corresponding to the selected item, for example a listbox or menu item.
long ( command-event-is-selection long id)
Returns 1 if the event was a selection event, 0 otherwise.