Board index » delphi » Right-click Listview

Right-click Listview

In my prog I have a listview with large icons,
and I have created a popup menu.

How can I detect if the user has right-clicked
anywhere on the listview?

Thankyou very much.

 

Re:Right-click Listview


Quote
hoezz <ho...@iprimus.com.au> wrote in message

news:3c931308_1@news.iprimus.com.au...

Quote
> In my prog I have a listview with large icons,
> and I have created a popup menu.

> How can I detect if the user has right-clicked
> anywhere on the listview?

Set the PopupMenu property.

Quote
> Thankyou very much.

You're welcome.

Gilles.

Re:Right-click Listview


"hoezz" <ho...@iprimus.com.au> a crit dans le message news:
3c93130...@news.iprimus.com.au...

Quote
> In my prog I have a listview with large icons,
> and I have created a popup menu.

> How can I detect if the user has right-clicked
> anywhere on the listview?

Use the Mousedown event rather than Onclick, then you can test if
button:=mbright

Other Threads