Removes the specified item from the image popup. The item index lower boundary is 1 not 0. The upper boundary is the number of items in the image popup.
PROCEDURE RemoveImagePopupItem(
dialogID : LONGINT;
componentID : LONGINT;
itemIndex : INTEGER);def vs.RemoveImagePopupItem(dialogID, componentID, itemIndex):
return None| 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. |
| itemIndex | INTEGER | Index to item to be removed. |
RemoveImagePopupItem(dialogID, componentID, 4);Variant implementation of RemoveAllImagePopupItems VS function:
PROCEDURE ManuallyRemoveAllImagePopupItems(dialogID, componentID :LONGINT);
VAR
choicesCount, itemIndex: INTEGER;
BEGIN
choicesCount := GetNumImagePopupItems(dialogID, componentID);
itemIndex := 1;
WHILE itemIndex <= choicesCount DO BEGIN
RemoveImagePopupItem(dialogID, componentID, itemIndex);
itemIndex := itemIndex + 1;
END;
END;VS Functions: InsertImagePopupObjectItem | GetNumImagePopupItems | GetImagePopupObject | GetImagePopupObjectItemIndex | SetImagePopupSelectedItem | GetImagePopupSelectedItem | RemoveAllImagePopupItems
Availability: from VectorWorks10.0