ClassesClassesClassesClasses | | | | Operators

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.

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

dev_set_window_extentsdev_set_window_extentsDevSetWindowExtentsdev_set_window_extentsDevSetWindowExtentsDevSetWindowExtents (Operator)

Name

dev_set_window_extentsdev_set_window_extentsDevSetWindowExtentsdev_set_window_extentsDevSetWindowExtentsDevSetWindowExtents — Change position and size of the active graphics window.

Signature

dev_set_window_extents( : : Row, Column, Width, Height : )

Herror dev_set_window_extents(const Hlong Row, const Hlong Column, const Hlong Width, const Hlong Height)

Herror T_dev_set_window_extents(const Htuple Row, const Htuple Column, const Htuple Width, const Htuple Height)

Herror dev_set_window_extents(const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height)

void HWindow::DevSetWindowExtents(const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height) const

void DevSetWindowExtents(const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height)

static void HWindow::DevSetWindowExtents(Hlong Row, Hlong Column, Hlong Width, Hlong Height)

void HOperatorSetX.DevSetWindowExtents(
[in] VARIANT Row, [in] VARIANT Column, [in] VARIANT Width, [in] VARIANT Height)

void HWindowX.DevSetWindowExtents(
[in] Hlong Row, [in] Hlong Column, [in] Hlong Width, [in] Hlong Height)

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

static void HWindow.DevSetWindowExtents(int row, int column, int width, int height)

Description

dev_set_window_extentsdev_set_window_extentsDevSetWindowExtentsdev_set_window_extentsDevSetWindowExtentsDevSetWindowExtents changes the position and/or the size of the currently active graphics window.

The parameters RowRowRowRowRowrow and ColumnColumnColumnColumnColumncolumn specify the new position (upper left corner) of the window. Depending on the window mode of HDevelop, the coordinates (0,0) refer to the upper left corner of the window area in the main HDevelop window in MDI mode, and the upper left corner of the screen in SDI mode, respectively. Negative coordinates of the position are ignored, i.e., in this direction the window will not be moved.

The parameters WidthWidthWidthWidthWidthwidth and HeightHeightHeightHeightHeightheight specify the new size of the window. This is the size of the inner part that actually displays the iconic objects. If one of the two values is negative, this dimension will remain unchanged.

Attention

Never use set_window_extentsset_window_extentsSetWindowExtentsset_window_extentsSetWindowExtentsSetWindowExtents to change the size and position of an HDevelop graphics window. The operator dev_set_window_extentsdev_set_window_extentsDevSetWindowExtentsdev_set_window_extentsDevSetWindowExtentsDevSetWindowExtents has to be used instead.

Using the code export feature of HDevelop, the code that is generated for this operator may have a different behavior than the related HALCON operator. For a detailed description of the code export of HDevelop graphics operators into the different programming languages see in the “HDevelop User's Guide” the chapter Code Export -> General Aspects of Code Generation -> Graphics Windows.

Parameters

RowRowRowRowRowrow (input_control)  rectangle.origin.y HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Row index of upper left corner.

Default value: 0

Typical range of values: 0 ≤ Row Row Row Row Row row

Minimum increment: 1

Recommended increment: 1

Restriction: Row >= 0 || Row == -1

ColumnColumnColumnColumnColumncolumn (input_control)  rectangle.origin.x HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Column index of upper left corner.

Default value: 0

Typical range of values: 0 ≤ Column Column Column Column Column column

Minimum increment: 1

Recommended increment: 1

Restriction: Column >= 0 || Column == -1

WidthWidthWidthWidthWidthwidth (input_control)  rectangle.extent.x HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Width of the window.

Default value: 256

Typical range of values: 0 ≤ Width Width Width Width Width width

Minimum increment: 1

Recommended increment: 1

Restriction: Width > 0 || Width == -1

HeightHeightHeightHeightHeightheight (input_control)  rectangle.extent.y HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Height of the window.

Default value: 256

Typical range of values: 0 ≤ Height Height Height Height Height height

Minimum increment: 1

Recommended increment: 1

Restriction: Height > 0 || Height == -1

Example (HDevelop)

dev_close_window ()
read_image (For5, 'for5')
get_image_size (For5, Width, Height)
dev_open_window (0, 0, Width, Height, 'black', WindowHandle)
dev_display (For5)
stop ()
dev_set_window_extents (-1,-1,Width/2,Height/2)
dev_display (For5)
stop ()
dev_set_window_extents (200,200,-1,-1)

Result

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

Possible Successors

dev_displaydev_displayDevDisplaydev_displayDevDisplayDevDisplay, dev_set_lutdev_set_lutDevSetLutdev_set_lutDevSetLutDevSetLut, dev_set_colordev_set_colorDevSetColordev_set_colorDevSetColorDevSetColor, dev_set_drawdev_set_drawDevSetDrawdev_set_drawDevSetDrawDevSetDraw, dev_set_partdev_set_partDevSetPartdev_set_partDevSetPartDevSetPart

See also

set_window_extentsset_window_extentsSetWindowExtentsset_window_extentsSetWindowExtentsSetWindowExtents

Module

Foundation


ClassesClassesClassesClasses | | | | Operators