"insertItemIdAllLangs"
Inserts a new item at runtime. Works like "insertItemId", but uses a langString instead.
Synopsis
setValue(string shape, "insertItemIdAllLangs", string parent, int type, int
position, string id, langString text);
shape.insertItemId(string parent, int type, int position, string id, langString
text);
Parameters
Parameter | Description |
---|---|
shape | Name of the graphics object |
parent | Name of the item where the entry will be added as a popup. With an empty string "", the entry will be added at the highest level. |
type |
CB_ITEM = 0 for item CB_POPUP = 1 for popup CB_SEPARATOR = 2 for separator |
position | Number of position. -1 means the bottom. |
id | Identity of the entry |
text | Text of the new entry in all languages. |
Description
You can extend or complete a cascade at runtime with a script. The entry can be an item or a popup. Furthermore, you can add a separator to optically separate the entries.
Example
See "insertItemId"
Assignment
Cascade