ClassesClassesClassesClasses | | | | Operators

set_window_typeset_window_typeSetWindowTypeset_window_typeSetWindowTypeSetWindowType (Operator)

Name

set_window_typeset_window_typeSetWindowTypeset_window_typeSetWindowTypeSetWindowType — Specify a window type.

Signature

set_window_type( : : WindowType : )

Herror set_window_type(const char* WindowType)

Herror T_set_window_type(const Htuple WindowType)

Herror set_window_type(const HTuple& WindowType)

void SetWindowType(const HTuple& WindowType)

static void HSystem::SetWindowType(const HString& WindowType)

static void HSystem::SetWindowType(const char* WindowType)

void HOperatorSetX.SetWindowType([in] VARIANT WindowType)

void HSystemX.SetWindowType([in] BSTR WindowType)

static void HOperatorSet.SetWindowType(HTuple windowType)

static void HSystem.SetWindowType(string windowType)

Description

set_window_typeset_window_typeSetWindowTypeset_window_typeSetWindowTypeSetWindowType determines on which type of output device the output is going to be displayed. This specification is going to be used by the operator open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow while opening the windows. You may open different windows on different types of output devices. Therefore you have to specify the wanted type before opening. You may request the available types of output devices by calling the operator query_window_typequery_window_typeQueryWindowTypequery_window_typeQueryWindowTypeQueryWindowType. Possible values are:

'X-Window'

X-Window Version 11.

'WIN32-Window'

Microsoft Windows.

'Cocoa'

OS X.

'pixmap'

Windows are not displayed, but managed in memory only. In this manner you may port HALCON programs to computers without graphical display.

'PostScript'

Objects are output to a PostScript File.

'system_default'

Default for current platform.

A useful usage of set_window_typeset_window_typeSetWindowTypeset_window_typeSetWindowTypeSetWindowType could be the development of machine independent programs.

Parallelization

Parameters

WindowTypeWindowTypeWindowTypeWindowTypeWindowTypewindowType (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Name of the window type which has to be set.

Default value: 'X-Window' "X-Window" "X-Window" "X-Window" "X-Window" "X-Window"

List of values: 'Cocoa'"Cocoa""Cocoa""Cocoa""Cocoa""Cocoa", 'PostScript'"PostScript""PostScript""PostScript""PostScript""PostScript", 'WIN32-Window'"WIN32-Window""WIN32-Window""WIN32-Window""WIN32-Window""WIN32-Window", 'X-Window'"X-Window""X-Window""X-Window""X-Window""X-Window", 'pixmap'"pixmap""pixmap""pixmap""pixmap""pixmap", 'system_default'"system_default""system_default""system_default""system_default""system_default"

Result

If the type of the output device is available, then set_window_typeset_window_typeSetWindowTypeset_window_typeSetWindowTypeSetWindowType returns 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowOpenTextwindowopen_textwindowOpenTextwindowOpenTextwindow

See also

open_windowopen_windowOpenWindowopen_windowOpenWindowOpenWindow, open_textwindowopen_textwindowOpenTextwindowopen_textwindowOpenTextwindowOpenTextwindow, query_window_typequery_window_typeQueryWindowTypequery_window_typeQueryWindowTypeQueryWindowType, get_window_typeget_window_typeGetWindowTypeget_window_typeGetWindowTypeGetWindowType

Module

Foundation


ClassesClassesClassesClasses | | | | Operators