1. Right-click popup in ListView?
- Posted by aku saya <akusaya at gmx.net> May 13, 2003
- 354 views
I want to make a right-click popup on a ListView (like in Windows Explorer). I tried onMouse event, detecting the RightDown event, but the list item is selected *after* the event, so when I used getIndex() to get the current item, it returns the previous selected item. What routine should I use? Using win32lib 58. Thanks!
2. Re: Right-click popup in ListView?
- Posted by Derek Parnell <ddparnell at bigpond.com> May 13, 2003
- 358 views
----- Original Message ----- From: "aku saya" <akusaya at gmx.net> To: "EUforum" <EUforum at topica.com> Subject: Right-click popup in ListView? > > I want to make a right-click popup on a ListView > (like in Windows Explorer). > I tried onMouse event, detecting the RightDown event, > but the list item is selected *after* the event, so when I used > getIndex() to get the current item, it returns the previous selected > item. > > What routine should I use? Using win32lib 58. The standard way is to test for RightUp rather than RightDown. This is how Microsoft do it. Also, it is very difficult to detect RightDown in ListViews because the ListView typically grabs it before your application sees it. ---------------- cheers, Derek Parnell