I looked on the forum, there is not a single working code!?
As I understand it, you need through ListiconGadget?
Interested in how to remove lines backlighting, so that only on the cells there is a selection?
Code: Select all
If OpenWindow(0, 0, 0, 400, 150, "ListIcon - Add Columns", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
ListIconGadget(0, 10, 10, 380, 100, "Standard Column", 150, #PB_ListIcon_GridLines)
ButtonGadget(1, 10, 120, 150, 20, "Add new column")
index = 1 ; "Standard column" has already index 0
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Gadget
If EventGadget() = 1
AddGadgetColumn(0, index, "Column "+Str(index), 80)
AddGadgetItem(0,index,"Row"+Str(index))
index + 1
EndIf
EndIf
Until Event = #PB_Event_CloseWindow
EndIf