ListBoxSetSelections

Help Contents GUI programming ListBoxes ListBoxSetSelections
ListBoxSelections ListBoxSetChoices

ListBoxSetSelections achoicebox selections


Command to set the selections of the ListBox alistbox to the item numbers in the list selections.

selections is a list of zero-based integer indices into the choices, which must be less than the number of choices in the control.

Example:

lb=(ListBox [][LB] [[String 1][S2][S3]] [][] wxLB_multiple)
ListBoxSetSelections lb [0 2]

Reference:

ListBoxSelections ListBoxSetChoices