ClassesClasses | | Operators

detach_drawing_object_from_windowT_detach_drawing_object_from_windowDetachDrawingObjectFromWindowDetachDrawingObjectFromWindow (Operator)

Name

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

Signature

detach_drawing_object_from_window( : : WindowHandle, DrawHandle : )

Herror T_detach_drawing_object_from_window(const Htuple WindowHandle, const Htuple DrawHandle)

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

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

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

void HWindow.DetachDrawingObjectFromWindow(HDrawingObject drawHandle)

Description

This operator can be used to detach the drawing object DrawHandleDrawHandleDrawHandleDrawHandledrawHandle from the HALCON window WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle to which it is currently attached. The drawing object will not longer be displayed in the window. 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 (handle) (IntPtr) (HHandle) (handle)

Window Handle.

DrawHandleDrawHandleDrawHandleDrawHandledrawHandle (input_control)  drawing_object HDrawingObject, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the drawing object.

Result

detach_drawing_object_from_windowdetach_drawing_object_from_windowDetachDrawingObjectFromWindowDetachDrawingObjectFromWindowDetachDrawingObjectFromWindow returns 2 (H_MSG_TRUE), if the DrawHandleDrawHandleDrawHandleDrawHandledrawHandle 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