如何在CVI下使用toolbar,该从哪里调用?刚开始学请求教~~
如题,正在写个CVI的窗口,想用上toolbar工具条,但不知道从何入手请各位详细指点,小弟在这里先谢谢了~~ 这个还不太容易说清楚,它需要添加工具栏的库,还需要创建工具栏,以及为它们定义回调函数之类的!我记得CVI有例子的! cvi安装目录\toolslib\custctrl\toolbar.fp要加这个库! int Toolbar_New (int Parent_Panel, int Menu_Bar, const char *Title, int Top, int Left, int Conform_Bitmap_Colors, int Conform_to_System, ToolbarType *New_Toolbar); int Toolbar_InsertItem (ToolbarType Toolbar, int Position, int Item_Type, int Active, const char *Description, int Callback_Type, int Menu_Item, CtrlCallbackPtr Control_Callback_Function, void *Callback_Data, const char *Image_File); 在它的帮助菜单下面,有一个查找例子的,里面输入:toolbar,就能搜索出来有例子,可以看看,会更容易理解的,好运!:handshake
页:
[1]