Right mouse click in TreeGadget()

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

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




Horst
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 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
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 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
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 Paul.

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


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