hello.. can anyone show me how to utilize the right click to make a popup menu in listview? and is there a way to make it so you can drag and drop a row in the listview to rearrange manually?
thanks!
Thai
Printable View
hello.. can anyone show me how to utilize the right click to make a popup menu in listview? and is there a way to make it so you can drag and drop a row in the listview to rearrange manually?
thanks!
Thai
In the mousedown event use popupmenu method with a menu that you contruct in the menu editor by pressing Ctrl+E. To make it popup under rightclick, the button argument needs to be 2.
yeah i got that part down, but i need to trap it where it enables and disables the contents in the popupmenu depending on WHERE the mouse is clicked.. if its clicked on an item, or in a blank space where there is no item.. how would I do that? :)
Thanks,
Thai
is there a nodeclick event in listview? or something thats simliar it in treeview? Then put your code there, and put the mousedown: button into listviews tag so that u can get it from the nodeclickevent.
Or you can use the hittest(x,y) method of mousedown to get the node you're clicking on
I think you can also check for the selected item ??? :)