SG_AddGadgetItem | ||||||||||||
Syntax: | ||||||||||||
SG_AddGadgetItem(SG_GadgetID_L.l, Position_L.l, Text_S.s, [ImageID_L.l]) | ||||||||||||
Parameters: | ||||||||||||
| ||||||||||||
Description: | ||||||||||||
Add an item to the specified #Gadget. An optional ImageID() can be specified for any gadgets which support it. The following gadgets are supported: - ListIconGadget() - EditorGadget() The optional image must be in the standard 16x16 size and works only with the Listicongadget.. The position specifies the item index where the new item should be inserted. To add the item at the start, use an index of 0. To add this item to the end of the current item list, use a value of -1. Remember that when you add an item that all current items which come after the new one will have their positions increased by 1. | ||||||||||||
Remarks: | ||||||||||||
The position specifies the column index where the new item should be inserted. Column indexes start from 0, which is the leftmost column, and increase by 1 for each column to the right. When you add a column, all the old columns which are on the right of the new column will have a position which is one more than they previously had. The maximum amount of items is set to 500 | ||||||||||||
|