Page 1 of 1

Posted: Sun Nov 24, 2002 10:08 am
by BackupUser
Restored from previous forum. Originally posted by horst.

Is there any way to find out which item was
right clicked in a TreeGadget() ?




Horst

Posted: Sun Nov 24, 2002 4:48 pm
by BackupUser
Restored from previous forum. Originally posted by Paul.

idx=GetGadgetState(#Tree)
Will return the index number of the selected item in a TreeGadget.

text.s=GetGadgetItemText(#Tree,idx,0)
Will return the text of the selected item once you find the index number.


----------
Visit the PB Resources Site at http://www.reelmediaproductions.com/pb

Posted: Sun Nov 24, 2002 7:08 pm
by BackupUser
Restored from previous forum. Originally posted by horst.
Originally posted by Paul

idx=GetGadgetState(#Tree)
Will return the index number of the selected item in a TreeGadget.
.. provided the item was selected before it was
right clicked. But the right mouse button does
not select the item.


Horst

Posted: Sun Nov 24, 2002 8:25 pm
by BackupUser
Restored from previous forum. Originally posted by Paul.

Sorry... I was checking my other right :)


----------
Visit the PB Resources Site at http://www.reelmediaproductions.com/pb