关于LabWindows/CVI设计的一些知识点
2013-05-03 16:47
447 查看
++++++++++++++++++++++++++++++++++++++++
NO.01-
How Do I Quit the CVI Panel by Clicking on the " X " Button in the Title Bar?
++++++++++++++++++++++++++++++++++++++++
Problem: Why does the " X " in the CVI panel not work? How do I quit the CVI panel by clicking on the " X " button in the title bar?
Solution: The X on the CVI panel generates a CVI EVENT_CLOSE function ...
There are two ways that you can handle this :
You can place an ordinary quit callback in your code that causes your application to quit . When editing your *.uir file, double click on the panel to bring up its property page. On the left-hand side you will see a drop-down list labeled "Close Control."
Click on this list to select your desired quit callback. By default, the close control does not call anything. By making this change, you direct it to a particular callback function to quit your application.
*Note* if you are creating a new CVI panel, and use the tool
Code»Generate»All Code to choose one callback to be your quit callback, CVI will automatically map that callback to the Close Control of the panel as well.
The second approach is to have a PANEL callback. In the callback, you should check for the EVENT_CLOSE event. If an EVENT_CLOSE is detected, call the code that will quit your program (typically you will use
the
NO.01-
How Do I Quit the CVI Panel by Clicking on the " X " Button in the Title Bar?
++++++++++++++++++++++++++++++++++++++++
Problem: Why does the " X " in the CVI panel not work? How do I quit the CVI panel by clicking on the " X " button in the title bar?
Solution: The X on the CVI panel generates a CVI EVENT_CLOSE function ...
There are two ways that you can handle this :
You can place an ordinary quit callback in your code that causes your application to quit . When editing your *.uir file, double click on the panel to bring up its property page. On the left-hand side you will see a drop-down list labeled "Close Control."
Click on this list to select your desired quit callback. By default, the close control does not call anything. By making this change, you direct it to a particular callback function to quit your application.
*Note* if you are creating a new CVI panel, and use the tool
Code»Generate»All Code to choose one callback to be your quit callback, CVI will automatically map that callback to the Close Control of the panel as well.
The second approach is to have a PANEL callback. In the callback, you should check for the EVENT_CLOSE event. If an EVENT_CLOSE is detected, call the code that will quit your program (typically you will use
the
QuitUserInterface()function).
相关文章推荐
- 设计模式-关于模式的一些很基本的知识点
- 设计模式-关于模式的一些很基本的知识点
- 黑马程序员 关于单例设计模式的一些理解
- 0907期《程序员》架构栏目文章《关于大规模系统缓存设计的一些考虑(上)》示例代码
- 关于Spark中RDD的设计的一些分析
- 关于NOIP初赛的一些错题和知识点整理
- 关于VUE的一些小知识点
- 关于一些设计模式(面试小问题,Java篇)
- 关于类的数据成员的访问权限设计的一些思考
- 关于js设计模式的一些总结和理解
- 关于字符类别的一些设计,含ASCLL码值
- 自己关于java的一些知识点的笔记
- 关于rman duplicate 一些比较重要的知识点--系列三
- 关于Android的一些设计(二)
- 关于treeview的一些知识点
- 一些关于CSS设计的BLOG、论坛和网站
- 关于最小化设计(尽早实现)的一些想法
- 浅谈关于JavaScript API设计的一些建议和准则
- java 关于继承的一些重要知识点(面试易考点)
- 安卓中关于相机的一些知识点