Hans,
I suspect what you may be seeing is a change in behavior that was introduced in the toolbar for 8.0. Whenever you assign a control callback to a toolbar item, the old behavior was to pass the panel handle and control id for the associated control back through the callback. In 8.0, we changed this behavior to pass the ToolbarType through the panel id and the item index through the control id.
For example:
int CVICALLBACK ToolbarItemCallback (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2)
{
ToolbarType toolbar = (ToolbarType)panel;
int toolbarItemIndex = control;
/* ... */
}
This change was made to enable more flexibility in the item callbacks. You can still obtain the panel and control IDs if needed by calling the new toolbar API function Toolbar_GetCtrlFromIndex. Unfortunately this did break backward compatibility with old programs that relied on these IDs being set.
Hope this helps,
-alex