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

Thanks!

new topic     » topic index » view message » categorize

2. Re: Right-click popup in ListView?

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu