SG_GetGadgetItemState

Syntax:

Result=SG_GetGadgetItemState(SG_GadgetID_L.l, Position_L.l)

Parameters:

SG_GadgetID_L

=

The number of the gadget

Position_L

=

the position of the item in the list


Return Values:

Result

=

the item state of the specified Gadget


Description:

This is a universal function that works for almost all gadgets which handle several items:

- ListIconGadget(): returns a combination of the following values:

#PB_ListIcon_Selected: The item is selected.

Check for these states like this:

If Result & #PB_ListIcon_Selected

Endif


Example:


Remarks:



Supported OS:   Windows