Skip to content

Latest commit

 

History

History
64 lines (55 loc) · 1.74 KB

File metadata and controls

64 lines (55 loc) · 1.74 KB

RemoveImagePopupItem

Description

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

Parameters

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.

Examples

VectorScript

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;

Python

See Also

VS Functions: InsertImagePopupObjectItem | GetNumImagePopupItems | GetImagePopupObject | GetImagePopupObjectItemIndex | SetImagePopupSelectedItem | GetImagePopupSelectedItem | RemoveAllImagePopupItems

Version

Availability: from VectorWorks10.0

Category