Skip to content

SetIconIndex Method

Description

Sets the icon index for a specified control state.

Syntax

Public Sub SetIconIndex( _
    ByVal state As Long, _
    ByVal IconIndex As Long _
)

Parameters

  • state: Item control state. For buttons, use a value from XTPGridItemButtonState.
  • IconIndex: Icon index for specified state.

Remarks

The icon specified for the certain state is drawn during control drawing. If no icon is specified for a certain state, the icon for state = 0 is drawn. If no icon is specified for any state, no icon is drawn.

See Also


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