Get the window type.
::get_window_type determines the type or the graphical software, respectively, of the output device for the window. You may query the available types of output devices with procedure ::query_window_type. A reasonable use for ::get_window_type might be in the field of the development of machine independent software. Possible values are:
'X-Window' X-Window Version 11. 'pixmap' Windows are not shown, but managed in memory. By this means Halcon\ programs can be ported on computers without a graphical display. 'PostScript' Objects are output to a PostScript File.
|
WindowHandle (input_control) |
window -> HTuple.long |
| Window identifier. | |
|
WindowType (output_control) |
string -> char * |
| Window type | |
open_window(100,100,200,200,"root","visible","",&WindowHandle) ;
get_window_type(WindowHandle,&WindowType) ;
fwrite_string("Window type:") ;
sprintf(buf,"%d",WindowType) ;
fwrite_string(buf) ;
fnew_line() ;
If the window is valid ::get_window_type returns H_MSG_TRUE. If necessary an exception handling is raised.
::open_window, ::open_textwindow
::query_window_type, ::set_window_type, ::get_window_pointer3, ::open_window, ::open_textwindow
System