

#PB_EventType_LeftClick: left click on an item, or a checkbox was checked/unchecked The following events are supported through EventType(): #PB_Gadget_LineColor : Color for the gridlines if the #PB_ListIcon_GridLines flag is used. This gadget supports the SetGadgetColor() and GetGadgetColor() functions with #PB_ListIcon_ColumnWidth : Returns/Changes the width of the given 'Column'. GetGadgetItemAttribute() / SetGadgetItemAttribute(): With the following attribute: #PB_ListIcon_Report : Report mode (columns, default mode) It can be one of the following constants (Windows only): #PB_ListIcon_DisplayMode : Changes the display of the gadget (Windows only). SetGadgetAttribute() with the following attribute:

#PB_ListIcon_DisplayMode: Returns the current display mode of the gadget (Windows only) #PB_ListIcon_ColumnCount: Returns the number of columns in the gadget GetGadgetAttribute() with the following attribute: If -1 is specified, all selection will be removed. SetGadgetState(): Change the selected item (all other selected items will be deselected). GetGadgetState(): Returns the first selected item or -1 if there is no item selected. SetGadgetItemImage(): Changes the current image of the specified item. Like with AddGadgetItem(), it is possible to set the text for several columns at once, with the Chr(10) separator. SetGadgetItemText(): Changes the current text of the specified item. GetGadgetItemText(): Returns the current text of the specified item. SetGadgetItemState(): Changes the current state of the specified item. GetGadgetItemState(): Returns the current state of the specified item. SetGadgetItemData(): Stores a value with the item. GetGadgetItemData(): Returns the value that was stored with item. SetGadgetItemColor(): Changes front or backcolor of the item (backcolor not supported on MacOS X). GetGadgetItemColor(): Returns front or backcolor of the item. CountGadgetItems(): Returns the number of items currently in the #Gadget. ClearGadgetItems(): Remove all the items. AddGadgetItem(): Add an item (with an optional image in the standard 16x16 icon size). RemoveGadgetColumn(): Remove a column from the gadget. AddGadgetColumn(): Add a column to the gadget. The following functions can be used to act on the list content: Then the return-value is the auto-generated gadget number on success.Ī 'mini help' can be added to this gadget using GadgetToolTip(). If #PB_Any was used as the #Gadget parameter Returns nonzero on success and zero on failure. The "in between" state can be set programmatically using the SetGadgetItemState() function. The user can only select the "on" or "off" states. #PB_ListIcon_CheckBoxes flag to get checkboxes that can have an "on", "off" and "in between" state. The #PB_ListIcon_ThreeState flag can be used in combination with the #PB_ListIcon_AlwaysShowSelection: The selection is still visible, even when the gadget is not activated (Windows only). #PB_ListIcon_HeaderDragDrop : The order of columns can be changed using drag'n'drop.
#PUREBASIC NEW GADGET COLOR FULL#
#PB_ListIcon_FullRowSelect : The selection covers the full row instead of the first column (Windows only).
#PUREBASIC NEW GADGET COLOR MAC#
#PB_ListIcon_GridLines : Display separator lines between rows and columns (not supported on Mac OSX). #PB_ListIcon_MultiSelect : Enable multiple selection. #PB_ListIcon_ThreeState : The checkboxes can have an "in between" state. #PB_ListIcon_CheckBoxes : Display checkboxes in the first column.

It can be a combination of the following values: The width of the first column in the gadget.įlags to modify the gadget behavior. The gadget is created with one initial column. The title for the first column in the gadget. The position and dimensions of the new gadget. Result = ListIconGadget(#Gadget, x, y, Width, Height, FirstColumnTitle$, FirstColumnWidth ) DescriptionĬreates a ListIcon gadget in the current GadgetList.Ī number to identify the new gadget.
