RemoveGadgetItem

Just starting out? Need help? Post your questions and find answers here.
Jurgen
User
User
Posts: 37
Joined: Mon Sep 08, 2003 11:53 pm

RemoveGadgetItem

Post by Jurgen »

I need to remove an item from an ListIconGadget.

I am going to use RemoveGadgetItem(#Gadget, Position).

How do I know wich position the users selected ?

There's nothing in the docs about this.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Code: Select all

For x = 0 To NumberOfListEntries - 1
    if GetGadgetItemState(#LIST_BOX, x) = 1
       debug "This one is selected!: " + str(x)
    endif
next x
:D
--Kale

Image
Jurgen
User
User
Posts: 37
Joined: Mon Sep 08, 2003 11:53 pm

Post by Jurgen »

thank you !
Post Reply