Adds an item to the component's choices.
The valid components are created by CreatePullDownMenu, CreatePullDownMenuGroupBox, CreateListBox, CreateListBoxN.
PROCEDURE AddChoice(
dialogID : LONGINT;
componentID : LONGINT;
choiceText : STRING;
itemIndex : INTEGER);def vs.AddChoice(dialogID, componentID, choiceText, itemIndex):
return None| Name | Type | Description |
|---|---|---|
| dialogID | LONGINT | the dialog identifier given by CreateLayout or CreateResizableLayout |
| componentID | LONGINT | The identifier for the component that contains the choices. |
| choiceText | STRING | The text for the item that is about to be added. |
| itemIndex | INTEGER | The index after which the new item is to be added. |
For components created by CreateEnhancedPullDownMenu, InsertEnhancedPullDownMenuItem should be used.
For further information, please check out: CreatePullDownMenu
Availability: from Vectorworks 2010