Hi Paul,
You can attach to whole NDockingToolbar.MouseDown event and check which command contains the mouse location:
nDockingToolbar1.MouseDown += new MouseEventHandler(nDockingToolbar1_MouseDown);
...
void nDockingToolbar1_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
int nCount = nDockingToolbar1.Commands.Count;
for (int i = 0; i < nCount; i++)
{
NCommand command = nDockingToolbar1.Commands[i];
if (command.VisualState.Bounds.Contains(e.Location))
{
clickedCommand = command;
return;
}
}
}
}
Best Regards,
Nevron Support Team