The ActiveLayer example demonstrates how to access static controls in a Dialog Builder resource and how to trigger event handlers for various Origin events. To access the static controls in the Active Layer dialog below the example program uses the Origin C Control class. To trigger event handlers for various Origin events the Active Layer dialog uses several event macros defined in the Origin C system header file MsgMap.h. The example dialog is launched by executing the function TestDlg in the source file ActiveLayer.c found in this zip file, under the \Dialog Builder\ActiveLayer subfolder of Origin.
To launch the ActiveLayer dialog above: