Tabbar Right-click menu problem


Enclosed are two screens.
The first one shows what we can now achieve with the labelcontrol.The second one shows what we would like to make outwith the label control – as is shown in the picture,when the header of the tab is selected, a dialog box will pop out by right clicking. How can we achieve this? We will appreciate if you can either give us some suggestions on operation or some instructions for us to write functions.

There is a simple code:


tabbar html, body { width: 100%; height: 100%; margin: 0px; overflow: hidden; background-color:white; }
<body onload='doOnLoad()'>	
		<div id="b_tabbar" style="width: 700px; height: 400px; margin: 15px;"></div>
[/code] There is an XML structure: [code]<?xml version="1.0"?> [/code] You just need to define your 'close' functions by context menu onClick...

thank you ,very much!

You are welcome!

is it also possible to attach a right-click event to the toolbar items?
I’ve searched for a solution but there’s no event onRightClick or something else like this?

Hi, mediamemphis
There is private method:

toolbar.objPull[toolbar.idPrefix+id].obj.oncontextmenu = function(){ alert("right mouse button click") }; }