ListView - Column Specific ContextMenus????

  • Thread starter Thread starter sho_nuff
  • Start date Start date
S

sho_nuff

Hello all,

Is it possible to have column specific context menus? so, if i have
three columns containing different objects / info, i could have a
context menu corresponding to each one?

Thanks,
SN
 
Yes, but you'll have to write some code to do it. Take the Listview-relative
coordinates of the mouse (say, from the mouse-down in which you recognize
that the right mouse button is down), and repeatedly decrement the
x-coordinate by the column widths until you know which column you're in.
Once you know, display the column-specific context menu.

HTH,
Tom Dacon
Dacon Software Consulting
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top