Forum Discussion
aqAnt
Alumni
14 years agoHello Neha,
Here are the ClickRTab and DblClickTab functions that should work with your DevExpress control:
function ClickRTab(tab_ctrl, index)
{
var rect = tab_ctrl.ViewInfo.HeaderInfo.Rows.Item(0).Pages.Item(index).Bounds;
X = rect.Left + rect.Width/2;
Y = rect.Top + rect.Height/2;
tab_ctrl.ClickR(X, Y);
}
function DblClickTab(tab_ctrl, index)
{
var rect = tab_ctrl.ViewInfo.HeaderInfo.Rows.Item(0).Pages.Item(index).Bounds;
X = rect.Left + rect.Width/2;
Y = rect.Top + rect.Height/2;
tab_ctrl.DblClick(X, Y);
}
Please pay attention to the way a page header's bounds are got using the control's internal properties. You can browse the internal properties in the Object Browser.