ClassesClasses | | Operators

detach_drawing_object_from_windowdetach_drawing_object_from_windowDetachDrawingObjectFromWindowDetachDrawingObjectFromWindow (Operator)

Name

detach_drawing_object_from_windowdetach_drawing_object_from_windowDetachDrawingObjectFromWindowDetachDrawingObjectFromWindow — Detach an existing drawing object from a HALCON window.

Signature

detach_drawing_object_from_window( : : WindowHandle, DrawID : )

Herror detach_drawing_object_from_window(const Hlong WindowHandle, const Hlong DrawID)

Herror T_detach_drawing_object_from_window(const Htuple WindowHandle, const Htuple DrawID)

void DetachDrawingObjectFromWindow(const HTuple& WindowHandle, const HTuple& DrawID)

void HWindow::DetachDrawingObjectFromWindow(const HDrawingObject& DrawID) const

static void HOperatorSet.DetachDrawingObjectFromWindow(HTuple windowHandle, HTuple drawID)

void HWindow.DetachDrawingObjectFromWindow(HDrawingObject drawID)

Description

This operator can be used to detach the drawing object DrawIDDrawIDDrawIDDrawIDdrawID from the HALCON window WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle to which it is currently attached. The drawing object will not longer be displayed in the window. However, unless the operator clear_drawing_objectclear_drawing_objectClearDrawingObjectClearDrawingObjectClearDrawingObject is called the drawing object still exists. If a callback function was defined for the drawing object on the event 'on_detach' with set_drawing_object_callbackset_drawing_object_callbackSetDrawingObjectCallbackSetDrawingObjectCallbackSetDrawingObjectCallback this will also be called.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Window Handle.

DrawIDDrawIDDrawIDDrawIDdrawID (input_control)  drawing_object HDrawingObject, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Handle of the drawing object.

Result

detach_drawing_object_from_windowdetach_drawing_object_from_windowDetachDrawingObjectFromWindowDetachDrawingObjectFromWindowDetachDrawingObjectFromWindow returns 2 (H_MSG_TRUE), if the DrawIDDrawIDDrawIDDrawIDdrawID and WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle are valid. Otherwise an exception is raised.

Possible Predecessors

attach_drawing_object_to_windowattach_drawing_object_to_windowAttachDrawingObjectToWindowAttachDrawingObjectToWindowAttachDrawingObjectToWindow, get_drawing_object_iconicget_drawing_object_iconicGetDrawingObjectIconicGetDrawingObjectIconicGetDrawingObjectIconic, get_drawing_object_paramsget_drawing_object_paramsGetDrawingObjectParamsGetDrawingObjectParamsGetDrawingObjectParams

Possible Successors

close_windowclose_windowCloseWindowCloseWindowCloseWindow, clear_drawing_objectclear_drawing_objectClearDrawingObjectClearDrawingObjectClearDrawingObject

See also

attach_drawing_object_to_windowattach_drawing_object_to_windowAttachDrawingObjectToWindowAttachDrawingObjectToWindowAttachDrawingObjectToWindow

Module

Foundation


ClassesClasses | | Operators