10.2.5.6   Graphics Windows

HALCON provides a functionality that emulates the behavior of HDevelop graphics windows for HALCON windows. This HALCON window stack is accessible via class methods and functions in the HALCON interfaces, and code exported from HDevelop uses this functionality when opening, closing, setting, or accessing the active window. The HALCON window stack mechanism is threadsafe and can be shared among threads. Though, in a multithreaded application the user has to take care when switching the active window in different threads, as setting it in one thread will also set it for other threads.

For the .NET code export it is optional whether to export HDevelop programs as code using the HDevelop export example templates or as code using the previously described HALCON window stack functionality when doing graphics windows output. Additionally, in the latter case the exported code contains a main function and thus is usable as a standalone application. The HDevelop Export dialog allows you to select the corresponding option.

The graphics windows of HDevelop and the basic windows of the HALCON libraries

have different functionality.