Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

dev_set_tool_geometrydev_set_tool_geometryDevSetToolGeometryDevSetToolGeometry (Operator)

Name

dev_set_tool_geometrydev_set_tool_geometryDevSetToolGeometryDevSetToolGeometry — Sets the position and size of the specified tool.

Signature

dev_set_tool_geometry( : : ToolId, Row, Column, Width, Height : )

Herror dev_set_tool_geometry(const char* ToolId, const Hlong Row, const Hlong Column, const Hlong Width, const Hlong Height)

Herror T_dev_set_tool_geometry(const Htuple ToolId, const Htuple Row, const Htuple Column, const Htuple Width, const Htuple Height)

void DevSetToolGeometry(const HTuple& ToolId, const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height)

static void HOperatorSet.DevSetToolGeometry(HTuple toolId, HTuple row, HTuple column, HTuple width, HTuple height)

Description

dev_set_tool_geometrydev_set_tool_geometryDevSetToolGeometryDevSetToolGeometryDevSetToolGeometry sets the position and dimension of the tool with the id ToolIdToolIdToolIdToolIdtoolId.

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

The parameters RowRowRowRowrow and ColumnColumnColumnColumncolumn can be used to modify the position of the tool. In order to unmodify the position 'default'"default""default""default""default" can be passed.

The parameters WidthWidthWidthWidthwidth and HeightHeightHeightHeightheight can be used to modify the size of the tools. In order to unmodify the size 'default'"default""default""default""default" can be passed. If WidthWidthWidthWidthwidth and HeightHeightHeightHeightheight are less than the minimum size of the tool the minimum size is used.

Attention

This operator is not supported for code export.

Parameters

ToolIdToolIdToolIdToolIdtoolId (input_control)  dev_tool HTupleHTupleHtuple (string) (IntPtr) (HString) (char*)

Tool identifier.

RowRowRowRowrow (input_control)  rectangle.origin.y HTupleHTupleHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)

Row index of upper left corner.

Default value: 'default' "default" "default" "default" "default"

Minimum increment: 1

Recommended increment: 1

ColumnColumnColumnColumncolumn (input_control)  rectangle.origin.x HTupleHTupleHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)

Column index of upper left corner.

Default value: 'default' "default" "default" "default" "default"

Minimum increment: 1

Recommended increment: 1

WidthWidthWidthWidthwidth (input_control)  rectangle.extent.x HTupleHTupleHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)

Width of the tool.

Default value: 'default' "default" "default" "default" "default"

Minimum increment: 1

Recommended increment: 1

Restriction: Width > 0

HeightHeightHeightHeightheight (input_control)  rectangle.extent.y HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the tool.

Default value: 'default' "default" "default" "default" "default"

Minimum increment: 1

Recommended increment: 1

Restriction: Height > 0

Example (HDevelop)

dev_open_tool ('zoom_window', 0, 0, Width, 'default', ToolId)
dev_close_tool (ToolId)

Result

If the values of the specified parameters are correct, dev_open_tooldev_open_toolDevOpenToolDevOpenToolDevOpenTool returns 2 (H_MSG_TRUE). Otherwise, an exception is raised and an error code returned.

Possible Predecessors

dev_open_tooldev_open_toolDevOpenToolDevOpenToolDevOpenTool

Possible Successors

dev_show_tooldev_show_toolDevShowToolDevShowToolDevShowTool, dev_close_tooldev_close_toolDevCloseToolDevCloseToolDevCloseTool

Alternatives

dev_show_tooldev_show_toolDevShowToolDevShowToolDevShowTool

See also

dev_show_tooldev_show_toolDevShowToolDevShowToolDevShowTool

Module

Foundation