thanks.
I program like the following:
int CVICALLBACK PanelCallback (int PreviewPanel, int event, void *callbackData,
int eventData1, int eventData2)
{ int MenuBar,MenuID;
if (event == EVENT_CLOSE)
HidePanel (panels);
if (event == EVENT_RIGHT_CLICK)
{
MenuBar = NewMenuBar (panels);
MenuID = NewMenu (MenuBar,"_tool",-1);
RunPopupMenu (MenuBar, MenuID, panels, 250, 330, 300, 400, 10, 10);
}
return 0;
}
but it did not work, i click on the panel and there is no popup menu.Another problem is that i don't want to display the menubar on the panel, can you answer my question?
Dongsheng Zhao
North China Electronic Power Univ.
zds_hd@yahoo.com.cn