Inserts a image Replaces InsertEnhancedPulldownMenuItem
FUNCTION InsertEnhanPullDownMenuItem(
dialogID : LONGINT;
controlID : LONGINT;
strName : STRING;
imageSpecifier : DYNARRAY[] of CHAR): INTEGER;def vs.InsertEnhanPullDownMenuItem(dialogID, controlID, strName, imageSpecifier):
return INTEGER| Name | Type | Description |
|---|---|---|
| dialogID | LONGINT | |
| controlID | LONGINT | |
| strName | STRING | |
| imageSpecifier | DYNARRAY[] of CHAR | The string identifier for the image. It should be of the form "ResourceFileNameWithoutExtension/PathOfImageFile". |
resultN := InsertEnhanPullDownMenuItem(1, 2, 'Example', imageSpecifier);import vs
# Inserts a image Replaces InsertEnhancedPulldownMenuItem.
dialogID = 1
controlID = 2
strName = 'Example'
imageSpecifier = 'Example'
resultN = vs.InsertEnhanPullDownMenuItem(dialogID, controlID, strName, imageSpecifier)
vs.Message('InsertEnhanPullDownMenuItem returned: ' + str(resultN))Availability: from Vectorworks 2012