ListIcon select all shortcut

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

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.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

You have to do a routine to do it (Easy).

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

Post by BackupUser »

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
Post Reply