A choice item is used to select one string from a pop-up list of strings. Unlike a list box, only the selection is visible until the user pops-up the menu of choices.
Whenever the selection of a choice item is changed by the user, the choice item's callback procedure is invoked. (The callback procedure is provided as an initialization argument when the choice item is created.)
See also wx:list-box%.
Creates a choice item.
If func is not null, it is used as a callback when the choice item is changed by the user.
If label is non-NULL, it is used as the label for the choice item. The label string can mark a character of the label as the Windows shortcut by preceding the key with an ampersand (``&''). Ampersands are stripped from label before it is used as a label. Double ampersands are converted to a single (unstripped) ampersand.
The parameters x and y are used to specify an absolute position for the choice item within the panel; if -1 is provided, a default position will be assigned such that the choice item is placed next to the last item inserted into the panel. If width or height is -1, an appropriate size will be used for the choice item based on the longest choice string.
The choices list specifies the list of possible values for the choice item.
For each string in choices, ampersands (``&'') are stripped from the string. A double ampersand is converted to a single ampersand (that is not stripped).
The style argument is reserved for future use.
The name argument is used to associate a name with the choice item, allowing the application user to set X Windows resource values for each individual choice item.