GetGadgetItemText()

Syntax

Result$ = GetGadgetItemText(#Gadget, Item, Column)
Description
Returns the item text of the specified #Gadget. This is a universal function which works for almost all gadgets which handle several items:

- ComboBoxGadget() - 'Item' is the index of the item in the ComboBox list. 'Column' will be ignored.
- EditorGadget() - 'Item' is the text line in the EditorGadget. 'Column' will be ignored.
- ExplorerListGadget() - returns the name of the 'Item', without the path. If 'Item' = -1, the 'Column' header is returned.
- ListIconGadget() - returns the entry of the given 'Item' and 'Column'. If 'Item' = -1, the 'Column' header is returned.
- ListViewGadget() - 'Item' is the index of the entry from which you want to receive the content. 'Column' will be ignored.
- MDIGadget() - 'Item' is the index of the child window of which you want to get the title.
- PanelGadget() - 'Item' is the panel from which you want to receive the header text.
- TreeGadget() - 'Item' is the index of the entry from which you want to receive the content. 'Column' will be ignored.

Note: All 'Item' index start from 0.

Supported OS

All

<- GetGadgetItemState() - Gadget Index - GetGadgetState() ->