机器视觉 dev_show_tool算子

Posted 沧海一笑-dj

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了机器视觉 dev_show_tool算子相关的知识,希望对你有一定的参考价值。

00. 目录

01. 概述

dev_show_tool - 显示指定的tool。

02. 签名

dev_show_tool( : : ToolId, Action : )

03. 描述

dev_show_tool在tool的ID为ToolId上执行动作Action。

可以用tool的名称替代作为tool的ToolId参数。 在这种情况任意的tool,只要存在符合它的ToolID,就会被使用。

Action(参数)

’show’:

激活tool。

’normal’:

显示tool,把它置顶,并激活它。
’minimize’:
  最小化tool。

’maximize’:

最大化tool。
’hide’:
  隐藏tool。

原文描述

dev_show_tool executes the action Action on the tool ToolId

Instead of using the ToolId, given during opening the tool, you can use the name that has to be used in dev_open_tool. In that case an arbitrary tool, which fits the parameter ToolId, is used.

Action

‘show’:
Activates the tool.

‘normal’:
Shows the tool, brings it to the front and activates it.

‘minimize’:
Minimizes the tool.

‘maximize’:
Maximizes the tool.

‘hide’:
Hides the tool.

04. 注意

此算子不支持代码导出

05. 参数

ToolId (input_control)   dev_tool → (string)
  Tool identifier.

Action (input_control)    string → (string)
  Action to execute.

HDevelop例程

dev_open_tool.hdev Open and adjust tools in HDevelop

程序示例

dev_open_tool ('matching_assistant', 0, 0, 'default','default', ToolId)
dev_show_tool (ToolId, 'minimize')

06. 结果

如果指定参数的值正确,则 dev_show_tool 返回 2 (H_MSG_TRUE)。 否则会引发异常并返回错误代码。

07. 附录

7.1 机器视觉博客汇总
网址:https://dengjin.blog.csdn.net/article/details/116837497

以上是关于机器视觉 dev_show_tool算子的主要内容,如果未能解决你的问题,请参考以下文章

机器视觉 exit算子

机器视觉 switch算子

机器视觉 export_def算子

机器视觉 insert算子(已废弃)

机器视觉 stop算子

机器视觉 endwhile算子