[Project_owners] How to disable the context menu for <treecol>

Michael Vincent van Rantwijk some at universum.org
Wed May 25 12:48:42 EDT 2005


Hi,

We're using several trees and I want to disable the context menu for 
treecols, but I don't know how to do this. I've looked on xulplanet.com 
but had no luck.

I used a dump() in 'onpopupshowing' with 'event.target.localName' and 
'event.originalTarget.localName' but they both showed up as being the 
'menupopup' so that can't be used.

<tree id="..." context="_child"...
<menupopup onpopupshowing="initContextmenu(event);"...
<treecols...
<treecol...

Thanks for your time and help,
Michael.


More information about the Project_owners mailing list