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_windowT_dev_set_windowDevSetWindowDevSetWindowdev_set_window (算子名称)

名称

dev_set_windowT_dev_set_windowDevSetWindowDevSetWindowdev_set_window — Activate a graphics window.

参数签名

dev_set_window( : : WindowHandle : )

Herror T_dev_set_window(const Htuple WindowHandle)

void DevSetWindow(const HTuple& WindowHandle)

void HWindow::DevSetWindow() const

static void HOperatorSet.DevSetWindow(HTuple windowHandle)

void HWindow.DevSetWindow()

def dev_set_window(window_handle: HHandle) -> None

描述

dev_set_windowdev_set_windowDevSetWindowDevSetWindowDevSetWindowdev_set_window activates the graphics window with the passed window handle. This is equivalent to pressing the Active button in the tool bar of the graphics window.

注意

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.

参数表

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

例程 (HDevelop)

dev_open_window (1, 1, 200, 200, 'black', WindowID1)
dev_open_window (1, 220, 200, 200, 'black', WindowID2)
read_image(Image,'monkey')
dev_set_window(WindowID1)
dev_display(Image)
dev_set_window(WindowID2)
dev_display(Image)

结果

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

可能的前置算子

dev_open_windowdev_open_windowDevOpenWindowDevOpenWindowDevOpenWindowdev_open_window

可能的后置算子

dev_displaydev_displayDevDisplayDevDisplayDevDisplaydev_display

模块

Foundation