Is it possible for a menu to appear only when a user right clicks the listbox item?
How can we enable right-click menus?
02-23-2006, 12:33 PM
With a list box you are going to have a bit harder of a time getting a right clicking menu to work. Mostly due to IE using windows controls (which the list box is) and that being on top of every thing. Basically what you would need to do is set the listbox's on click event to a function
Then in that function you need to first find out if it is a right click (Search the forums for that, there are plenty of examples). If it is a right click then you need to create a div that looks like the list box, hide the actual listbox, and show the div, then pop the menu.
Fun Fun! But definatly do able.
02-23-2006, 09:21 PM
Many browsers don't allow you to override the regular right click context menu.