贰[2],函数OpenWindow/CloseWindow

函数OpenWindow

C++形式

LIntExport void OpenWindow( 
const HTuple& Row,                            
const HTuple& Column,                        
const HTuple& Width,                           
const HTuple& Height,                           
const HTuple& FatherWindow, 
const HTuple& Mode,                            
const HTuple& Machine,                        
HTuple* WindowHandle);
//参数1:窗体起始位置行位置
//参数2:窗体起始位置列位置
//参数3:窗体宽度
//参数4:窗体高度
//参数5:窗体父窗体容器Handle,无传0
//参数6:显示模式"visible"
//参数7:窗体的名称
//参数7:窗体的Handle

C#形式

public static void OpenWindow(
HTuple row, 
HTuple column, 
HTuple width, 
HTuple height, 
HTuple fatherWindow, 
HTuple mode, 
HTuple machine, 
out HTuple windowHandle)

错误处理

错误1:HALCON error #1405: Wrong number of values of control parameter 5 in operator open_window

控制参数值的数量错误

//C#错误传参示例
HOperatorSet.OpenWindow(0, 0, 500, 500, null, "visible", "", out winHandle);
错误2:HALCON error #1305: Wrong value of control parameter 5 in operator open_window

控制参数值错误

//C#错误传参示例
参数5传了字符串,需修改为整型
HOperatorSet.OpenWindow(0, 0, 500, 500, "0", "visible", "", out winHandle);
错误3:HALCON error #5101: Error while opening the window in operator open_window

打开窗口时出错

//C#错误传参示例
//参数5传了-1,需修改为0
HOperatorSet.OpenWindow(0, 0, 500, 500, -1, "visible", "", out winHandle);

函数CloseWindow

C++形式

LIntExport void CloseWindow(
const HTuple& WindowHandle);
参数1:窗体Handle

C#形式

LIntExport void CloseWindow(const HTuple& WindowHandle);

相关推荐

  1. [2],函数OpenWindow/CloseWindow

    2023-12-16 14:06:03       36 阅读
  2. 函数2

    2023-12-16 14:06:03       11 阅读
  3. 词法约定 - 现代 C++(心得-

    2023-12-16 14:06:03       29 阅读
  4. vivado $clog2函数

    2023-12-16 14:06:03       40 阅读
  5. CMSIS-RTOS2 函数

    2023-12-16 14:06:03       36 阅读
  6. 【Scala】 2. 函数

    2023-12-16 14:06:03       32 阅读
  7. 时间函数举例2

    2023-12-16 14:06:03       33 阅读

最近更新

  1. 微软edge浏览器全解析

    2023-12-16 14:06:03       0 阅读
  2. react根据后端返回数据动态添加路由

    2023-12-16 14:06:03       0 阅读
  3. RedHat运维-Ansible自动化运维基础22-rhel-system-roles

    2023-12-16 14:06:03       0 阅读
  4. 深入浅出:Scikit-Learn基础教程

    2023-12-16 14:06:03       0 阅读
  5. python class

    2023-12-16 14:06:03       0 阅读
  6. 10.pwn ROP(栈溢出攻击的核心)

    2023-12-16 14:06:03       0 阅读
  7. sklearn基础教程

    2023-12-16 14:06:03       0 阅读
  8. 跨境支付新篇章:引领电商潮流

    2023-12-16 14:06:03       0 阅读

热门阅读

  1. vue3拖拽组件vuedraggable

    2023-12-16 14:06:03       46 阅读
  2. QT之QMessageBox的用法

    2023-12-16 14:06:03       32 阅读
  3. 大语言模型--引言

    2023-12-16 14:06:03       31 阅读
  4. Clion下编写QT界面方法详解

    2023-12-16 14:06:03       39 阅读
  5. Storm+Kafka+Redis+zookeeper docker集群实战问题与解决

    2023-12-16 14:06:03       28 阅读
  6. 使用boost::mpl模块实现push_back相关的测试程序

    2023-12-16 14:06:03       45 阅读
  7. vue 浙里办前端改造,引入jquery脚本文件并使用

    2023-12-16 14:06:03       42 阅读