ListView problem

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 Iontichy.

Hi all,
i have a little problem with the ListViewGadget.
SetGadgetState() doesnt select an item.
I added this:

Code: Select all

 SetGadgetState(4,2) 
at line 107 in the gadget.pb (see pb-help file), but if i click "Select" nothing happens...
PureBasic 3.10 / Win2000

Can anybody help me?

---------------
star traveler
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 tranquil.
Hi all,
i have a little problem with the ListViewGadget.
SetGadgetState() doesnt select an item.
I added this:

Code: Select all

 SetGadgetState(4,2) 
at line 107 in the gadget.pb (see pb-help file), but if i click "Select" nothing happens...
PureBasic 3.10 / Win2000

Can anybody help me?

---------------
star traveler
Use SetGadgetItemstate instead to highlight an item in a listview.

Cheers from NRW
Bye

Tranquilizer/ Secretly!
Registred PureBasic User
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 Iontichy.
Use SetGadgetItemstate instead to highlight an item in a listview.
thx Tranquilizer, it works!!!

but what does SetGadgetState(); in documentation ---> - ListViewGadget: change the current selected item.




---------------
star traveler
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 tranquil.

This was used in earlier versions in PB. Fred added new commands to extend the GadgetLib. Seems like a "bug" in the docs.

Greetinx
Mike

Tranquilizer/ Secretly!
Registred PureBasic User
Post Reply