Gets the selected image popup item.
FUNCTION GetImagePopupSelectedItem(
dialogID : LONGINT;
componentID : LONGINT): INTEGER;def vs.GetImagePopupSelectedItem(dialogID, componentID):
return INTEGER| Name | Type | Description |
|---|---|---|
| dialogID | LONGINT | Index to the dialog layout that contains the image popup component. |
| componentID | LONGINT | Index to a specific image popup component. |
Returns the index to the Item that is currently selected in the image pop-up control. Currently there is always a selected item.
ComponentID is the dialog Item index of the control
This function is currently returning item indexes assuming a 1-based index whereas GetImagePopupObject() assumes a zero based index. This will hopefully be fixed for release so that all layout mgr dialog controls use a zero based indexing system for lists of items.
selectedItemIndex := GetImagePopupSelectedItem(dialogID, componentID);selectedItemIndex = vs.GetImagePopupSelectedItem(dialogID, componentID)VS Functions: InsertImagePopupObjectItem | GetNumImagePopupItems | GetImagePopupObject | GetImagePopupObjectItemIndex | SetImagePopupSelectedItem | RemoveImagePopupItem | RemoveAllImagePopupItems
Availability: from VectorWorks10.0