Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 1.56 KB

File metadata and controls

50 lines (36 loc) · 1.56 KB

AddChoice

Description

Adds an item to the component's choices.

The valid components are created by [[VS:CreatePullDownMenu| CreatePullDownMenu]], [[VS:CreatePullDownMenuGroupBox| CreatePullDownMenuGroupBox]], [[VS:CreateListBox| CreateListBox]], [[VS:CreateListBoxN| CreateListBoxN]].

PROCEDURE AddChoice(
				dialogID    : LONGINT;
				componentID : LONGINT;
				choiceText  : STRING;
				itemIndex   : INTEGER);
def vs.AddChoice(dialogID, componentID, choiceText, itemIndex):
    return None

Parameters

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.

Remarks

For components created by [[VS:CreateEnhancedPullDownMenu| CreateEnhancedPullDownMenu]], [[VS:InsertEnhancedPullDownMenuItem| InsertEnhancedPullDownMenuItem]] should be used.

Examples

alogLayoutPulldownMenu}}

See Also

For further information, please check out: CreatePullDownMenu| CreatePullDownMenu

CreatePullDownMenuGroupBox| CreatePullDownMenuGroupBox

CreateListBox| CreateListBox

CreateListBoxN| CreateListBoxN

Version

Availability: from Vectorworks 2010

Category

  • Dialogs - Modern