Page 1 of 1

Posted: Thu May 23, 2002 5:03 pm
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

Posted: Thu May 23, 2002 7:59 pm
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

Posted: Thu May 23, 2002 9:16 pm
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

Posted: Fri May 24, 2002 9:04 am
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