Skip to content

SetIcon Method

Description

Used when only one icon is used to display the popup control item. The same icon is used at all times, i.e., mouse over and on click.

Syntax

Public Sub SetIcon( _
    ByVal [Handle](#) As Integer, _
    ByVal [itemIcon](#) As [XTPPopupItemIcon](XtremeSuiteControls~Enumerations~XTPPopupItemIcon_EN.md) _
)

Parameters

Parameter Description
Handle The handle of the popup control item.
itemIcon Specifies the icon state for the popup control item.

Icon States

Value Description
xtpPopupItemIconNormal Specifies that the popup control item's icon will only have a "normal" state. This means that the same icon is displayed regardless of any mouse over or clicking of the icon.
xtpPopupItemIconSelected Specifies that the popup control item's icon will display a different icon when in a "selected" state, i.e., on mouse over.
xtpPopupItemIconPressed Specifies that the popup control item's icon will display a different icon when the icon is clicked.

See Also

PopupControlItem Object


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.