Restored from previous forum. Originally posted by Justin.
Can a Listicon respond to the CTRL+A message to select all the items?, or do i have to write a routine to select them all.
ListIcon select all shortcut
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Justin.
I must be stupid.. why this does not work?
ListIconGadget(9,11,107,392,212,"C1",200,#PB_ListIcon_MultiSelect)
AddGadgetColumn(9,1,"C2",100)
AddGadgetColumn(9,2,"C3",88)
;;fill list
icount=CountGadgetItems(9)-1 ;(0 based?)
For index=0 To icount
SetGadgetItemState(9, index, 1)
Next
I must be stupid.. why this does not work?
ListIconGadget(9,11,107,392,212,"C1",200,#PB_ListIcon_MultiSelect)
AddGadgetColumn(9,1,"C2",100)
AddGadgetColumn(9,2,"C3",88)
;;fill list
icount=CountGadgetItems(9)-1 ;(0 based?)
For index=0 To icount
SetGadgetItemState(9, index, 1)
Next