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.

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

dev_set_tool_geometrydev_set_tool_geometryDevSetToolGeometryDevSetToolGeometrydev_set_tool_geometry (Operator)

Name

dev_set_tool_geometrydev_set_tool_geometryDevSetToolGeometryDevSetToolGeometrydev_set_tool_geometry — 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)

def dev_set_tool_geometry(tool_id: HHandle, row: Union[int, str], column: Union[int, str], width: Union[int, str], height: int) -> None

Description

dev_set_tool_geometrydev_set_tool_geometryDevSetToolGeometryDevSetToolGeometryDevSetToolGeometrydev_set_tool_geometry sets the position and dimension of the tool with the id 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 a arbitrary tool, which fits the parameter ToolIdToolIdToolIdToolIdtoolIdtool_id, is used.

The parameters RowRowRowRowrowrow and ColumnColumnColumnColumncolumncolumn can be used to modify the position of the tool. Note that the offset values specified under Edit -> Preferences -> General Options -> General Options -> Window open offset are added to the row and the column index, respectively. For more information, see the chapter “Menu Edit” in the “HDevelop User's Guide”. In order to unmodify the position 'default'"default""default""default""default""default" can be passed.

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

Attention

This operator is not supported for code export.

Parameters

ToolIdToolIdToolIdToolIdtoolIdtool_id (input_control)  dev_tool HTupleHHandleHTupleHtuple (string) (IntPtr) (HString) (char*)

Tool identifier.

RowRowRowRowrowrow (input_control)  rectangle.origin.y HTupleUnion[int, str]HTupleHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)

Row index of upper left corner.

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

Minimum increment: 1

Recommended increment: 1

ColumnColumnColumnColumncolumncolumn (input_control)  rectangle.origin.x HTupleUnion[int, str]HTupleHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)

Column index of upper left corner.

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

Minimum increment: 1

Recommended increment: 1

WidthWidthWidthWidthwidthwidth (input_control)  rectangle.extent.x HTupleUnion[int, str]HTupleHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)

Width of the tool.

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

Minimum increment: 1

Recommended increment: 1

Restriction: Width > 0

HeightHeightHeightHeightheightheight (input_control)  rectangle.extent.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Height of the tool.

Default value: 'default' "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_toolDevOpenToolDevOpenToolDevOpenTooldev_open_tool returns TRUE. Otherwise, an exception is raised and an error code returned.

Possible Predecessors

dev_open_tooldev_open_toolDevOpenToolDevOpenToolDevOpenTooldev_open_tool

Possible Successors

dev_show_tooldev_show_toolDevShowToolDevShowToolDevShowTooldev_show_tool, dev_close_tooldev_close_toolDevCloseToolDevCloseToolDevCloseTooldev_close_tool

Alternatives

dev_show_tooldev_show_toolDevShowToolDevShowToolDevShowTooldev_show_tool

See also

dev_show_tooldev_show_toolDevShowToolDevShowToolDevShowTooldev_show_tool

Module

Foundation