dev_show_tooldev_show_toolDevShowToolDevShowTooldev_show_tool (算子)
名称
dev_show_tooldev_show_toolDevShowToolDevShowTooldev_show_tool — 显示指定的工具。
签名
Herror dev_show_tool(const char* ToolId, const char* Action)
Herror T_dev_show_tool(const Htuple ToolId, const Htuple Action)
void DevShowTool(const HTuple& ToolId, const HTuple& Action)
描述
dev_show_tooldev_show_toolDevShowToolDevShowToolDevShowTooldev_show_tool executes the action ActionActionActionActionactionaction on the tool
ToolIdToolIdToolIdToolIdtoolIdtool_id
Instead of using the ToolIdToolIdToolIdToolIdtoolIdtool_id, given during opening the tool,
you can use the name that has to be used in dev_open_tooldev_open_toolDevOpenToolDevOpenToolDevOpenTooldev_open_tool。In that case an arbitrary tool, which fits the parameter
ToolIdToolIdToolIdToolIdtoolIdtool_id, is used.
ActionActionActionActionactionaction
- 'show'"show""show""show""show""show":
Activates the tool.
- 'normal'"normal""normal""normal""normal""normal":
Shows the tool, brings it to the front and activates it.
- 'minimize'"minimize""minimize""minimize""minimize""minimize":
Minimizes the tool.
- 'maximize'"maximize""maximize""maximize""maximize""maximize":
Maximizes the tool.
- 'hide'"hide""hide""hide""hide""hide":
Hides the tool.
注意
此算子不支持代码导出。
参数
ToolIdToolIdToolIdToolIdtoolIdtool_id (输入控制) dev_tool → HTupleHHandleHTupleHtuple (string) (IntPtr) (HString) (char*)
Tool identifier.
ActionActionActionActionactionaction (输入控制) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Action to execute.
示例(HDevelop)
dev_open_tool ('matching_assistant', 0, 0, 'default','default', ToolId)
dev_show_tool (ToolId, 'minimize')
结果
If the values of the specified parameters are correct,
dev_show_tooldev_show_toolDevShowToolDevShowToolDevShowTooldev_show_tool 返回 2 ( H_MSG_TRUE )。否则,将抛出一个异常并返回错误代码。
可能的前趋
dev_set_tool_geometrydev_set_tool_geometryDevSetToolGeometryDevSetToolGeometryDevSetToolGeometrydev_set_tool_geometry,
dev_open_tooldev_open_toolDevOpenToolDevOpenToolDevOpenTooldev_open_tool
另见
dev_set_tool_geometrydev_set_tool_geometryDevSetToolGeometryDevSetToolGeometryDevSetToolGeometrydev_set_tool_geometry
模块
基础