Subversion Repositories f9daq

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed


//----------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------
//
//  "MIKRO_uic.c"
//
//  Implementation file for UI build functions
//
//  Date: 11-29-2014
//
//----------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------

//----------------------------------------------------------------------------------------------------
//  Include header files
//----------------------------------------------------------------------------------------------------

#include "MIKRO_uic.h"
#include <Utility.h> // definition of NULL
#include "toolbox.h" // definition of errChk macro

extern int CVIFUNC_C GetUserBitmapFromText (char *imageText, int version, int *bitmapId); // needed if there are bitmaps
extern int CVIFUNC_C NewActiveXCtrlFromPersistence (int panel, const char *ctrlLabel,
                                                    int top, int left, char *defaultIID,
                                                    int binaryFormat, char *persistenceText,
                                                    HRESULT *activeXError); // needed if there are ActiveX controls

//----------------------------------------------------------------------------------------------------
//  Prototype UI build functions.
//----------------------------------------------------------------------------------------------------

int BuildP1 (int hParentPanel);

//-------------------------------------------------------------------------------------------------
// Prototype callbacks for Panel: P1
// ------------------------------------------------------------------------------------------------


//-------------------------------------------------------------------------------------------------
// Declare identifiers for Panel:  P1
// ------------------------------------------------------------------------------------------------

int P1_S2                                    ;     // control identifier
int P1_S1                                    ;     // control identifier
int P1_B1                                    ;     // control identifier
int P1_B2                                    ;     // control identifier
int P1_EN                                    ;     // control identifier
int P1_HO                                    ;     // control identifier
int P1_B3                                    ;     // control identifier
int P1_N2                                    ;     // control identifier
int P1_N1                                    ;     // control identifier
int P1_L16                                   ;     // control identifier
int P1_L15                                   ;     // control identifier
int P1_L14                                   ;     // control identifier
int P1_L13                                   ;     // control identifier
int P1_L12                                   ;     // control identifier
int P1_L11                                   ;     // control identifier
int P1_L10                                   ;     // control identifier
int P1_L9                                    ;     // control identifier
int P1_L8                                    ;     // control identifier
int P1_L7                                    ;     // control identifier
int P1_L6                                    ;     // control identifier
int P1_L5                                    ;     // control identifier
int P1_L4                                    ;     // control identifier
int P1_L3                                    ;     // control identifier
int P1_L2                                    ;     // control identifier
int P1_L1                                    ;     // control identifier
int P1_B4                                    ;     // control identifier
int P1_N3                                    ;     // control identifier
int P1_T1                                    ;     // control identifier
int P1_BF                                    ;     // control identifier
int P1_BD                                    ;     // control identifier
int P1_BB                                    ;     // control identifier
int P1_BR                                    ;     // control identifier
int P1_BU                                    ;     // control identifier
int P1_BL                                    ;     // control identifier
int P1_XG                                    ;     // control identifier
int P1_ZG                                    ;     // control identifier
int P1_ZP                                    ;     // control identifier
int P1_YG                                    ;     // control identifier
int P1_XP                                    ;     // control identifier
int P1_YP                                    ;     // control identifier
int P1_GZ                                    ;     // control identifier
int P1_GY                                    ;     // control identifier
int P1_GX                                    ;     // control identifier
int P1_G                                     ;     // control identifier
int P1_P                                     ;     // control identifier
int P1_PORT                                  ;     // control identifier
int P1_STAGETYPE                             ;     // control identifier
int P1_COMLED                                ;     // control identifier
int P1_TEXTMSG                               ;     // control identifier
int P1_DECORATION                            ;     // control identifier
int P1_DECORATION_2                          ;     // control identifier

//----------------------------------------------------------------------------------------------------
// BuildP1 ():  Build UI object P1; return handle or standard UI error code.
//----------------------------------------------------------------------------------------------------
int BuildP1 (int hParentPanel)
{
    int hPanel;
    int error = 0;
    int bitmapId = 0; // needed if there are bitmaps
    char *dataPtr = NULL;
    int hMenubar;
    int screenHeight;
    int screenWidth;
    int resAdjustment;
    int monitorId;
    float SFv;
    float SFh;
    int hTabPanel; // needed if there are tab controls
    ColorMapEntry colorRamp[255]; // needed if there are controls with color ramps

    // Create the panel
    errChk(hPanel = NewPanel (hParentPanel, "Untitled Panel", 28, 13, 387, 606));

    // Set the panel's attributes
    errChk(SetPanelAttribute (hPanel, ATTR_CONSTANT_NAME, "P1"));
    errChk(SetPanelAttribute (hPanel, ATTR_CALLBACK_FUNCTION_POINTER, 0));
//  errChk(SetPanelAttribute (hPanel, ATTR_DIMMED, 0));
    if (hParentPanel)
        errChk(SetPanelAttribute (hPanel, ATTR_FRAME_COLOR, VAL_LT_GRAY));
//  errChk(SetPanelAttribute (hPanel, ATTR_SCROLL_BARS, VAL_NO_SCROLL_BARS));
    errChk(SetPanelAttribute (hPanel, ATTR_SCROLL_BAR_COLOR, VAL_LT_GRAY));
//  errChk(SetPanelAttribute (hPanel, ATTR_HSCROLL_OFFSET, 0));
    errChk(SetPanelAttribute (hPanel, ATTR_BACKCOLOR, VAL_LT_GRAY));
//  errChk(SetPanelAttribute (hPanel, ATTR_TITLEBAR_VISIBLE, 1));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLEBAR_THICKNESS, 16));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLEBAR_STYLE, VAL_CLASSIC));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_SCROLL_BAR_STYLE, VAL_CLASSIC));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_COLOR, VAL_BLACK));
    if (hParentPanel)
        errChk(SetPanelAttribute (hPanel, ATTR_TITLE_BACKCOLOR, VAL_LT_GRAY));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_FRAME_STYLE, VAL_RAISED_OUTLINED_FRAME));
//  errChk(SetPanelAttribute (hPanel, ATTR_SIZABLE, 1));
//  errChk(SetPanelAttribute (hPanel, ATTR_MOVABLE, 1));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_FONT, "VAL_DIALOG_META_FONT"));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_ITALIC, 0));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_UNDERLINE, 0));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_STRIKEOUT, 0));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_POINT_SIZE, 11));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_BOLD, 0));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_PARENT_SHARES_SHORTCUT_KEYS, 1));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_ACTIVATE_WHEN_CLICKED_ON, 1));
//  errChk(SetPanelAttribute (hPanel, ATTR_CAN_MINIMIZE, 1));
//  errChk(SetPanelAttribute (hPanel, ATTR_CAN_MAXIMIZE, 1));
    errChk(SetPanelAttribute (hPanel, ATTR_MIN_HEIGHT_FOR_SCALING, 0));
    errChk(SetPanelAttribute (hPanel, ATTR_MIN_WIDTH_FOR_SCALING, 0));
//  if (!hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_FLOATING, VAL_FLOAT_NEVER));
//  errChk(SetPanelAttribute (hPanel, ATTR_CLOSE_ITEM_VISIBLE, 1));
//  errChk(SetPanelAttribute (hPanel, ATTR_SYSTEM_MENU_VISIBLE, 1));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_SIZE_TO_FONT, 1));
//  errChk(SetPanelAttribute (hPanel, ATTR_HAS_TASKBAR_BUTTON, 0));
//  errChk(SetPanelAttribute (hPanel, ATTR_VSCROLL_OFFSET, 0));
//  if (hParentPanel)
    //  errChk(SetPanelAttribute (hPanel, ATTR_FRAME_THICKNESS, 5));
// ****WARNING****  Not equipped to set panel's ATTR_MOUSE_CURSOR = VAL_DEFAULT_CURSOR

    // Build control: P1_S2
    errChk(P1_S2 = NewCtrl (hPanel, CTRL_STRING, "ODGOVOR", 116, 61));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_CONSTANT_NAME, "S2"));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_FRAME_COLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_WIDTH, 58));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_DFLT_VALUE, ""));
    errChk(DefaultCtrl (hPanel, P1_S2));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_MAX_ENTRY_LENGTH, -1));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_NO_EDIT_TEXT, 0));
// ****WARNING****  Skipped ATTR_MASK_CHARACTER = 42
// ****WARNING****  Skipped ATTR_ENABLE_CHARACTER_MASKING = 0
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_WIDTH, 171));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_TOP, 95));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_LEFT, 67));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_HSCROLL_OFFSET, 0));
//  errChk(DSBindCtrl (hPanel, P1_S2, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_S1
    errChk(P1_S1 = NewCtrl (hPanel, CTRL_STRING, "UKAZ", 36, 58));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_CONSTANT_NAME, "S1"));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_FRAME_COLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_CTRL_MODE, VAL_VALIDATE));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_WIDTH, 32));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_DFLT_VALUE, "1 en"));
    errChk(DefaultCtrl (hPanel, P1_S1));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_MAX_ENTRY_LENGTH, -1));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_NO_EDIT_TEXT, 0));
// ****WARNING****  Skipped ATTR_MASK_CHARACTER = 42
// ****WARNING****  Skipped ATTR_ENABLE_CHARACTER_MASKING = 0
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_WIDTH, 127));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_TOP, 38));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_LEFT, 13));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_HSCROLL_OFFSET, 0));
//  errChk(DSBindCtrl (hPanel, P1_S1, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_B1
    errChk(P1_B1 = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "__EXIT", 324, 418));
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_CONSTANT_NAME, "B1"));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_B1));
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_CMD_BUTTON_COLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_WIDTH, 40));

    // Build control: P1_B2
    errChk(P1_B2 = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "__POSLJI", 33, 190));
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_CONSTANT_NAME, "B2"));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_B2));
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_CMD_BUTTON_COLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_WIDTH, 56));

    // Build control: P1_EN
    errChk(P1_EN = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "ENABLE", 84, 277));
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_CONSTANT_NAME, "EN"));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_EN));
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_CMD_BUTTON_COLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_WIDTH, 64));

    // Build control: P1_HO
    errChk(P1_HO = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "__HOME", 121, 413));
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_CONSTANT_NAME, "HO"));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_HO));
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_CMD_BUTTON_COLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_WIDTH, 51));

    // Build control: P1_B3
    errChk(P1_B3 = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "__Rst  & Cfg", 20, 273));
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_CONSTANT_NAME, "B3"));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_B3));
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_CMD_BUTTON_COLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_WIDTH, 69));

    // Build control: P1_N2
    errChk(P1_N2 = NewCtrl (hPanel, CTRL_NUMERIC, "", 141, 61));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_CONSTANT_NAME, "N2"));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_DATA_TYPE, VAL_INTEGER));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_FRAME_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_WIDTH, 9));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_MAX_VALUE, 2147483647));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_MIN_VALUE, -2147483648));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_INCR_VALUE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_PRECISION, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_CHECK_RANGE, VAL_NOTIFY));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_PADDING, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_SHOW_RADIX, 0));
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_N2));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_SHOW_INCDEC_ARROWS, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_NO_EDIT_TEXT, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_WIDTH, 71));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_TOP, 120));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_LEFT, 61));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
//  errChk(DSBindCtrl (hPanel, P1_N2, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_N1
    errChk(P1_N1 = NewCtrl (hPanel, CTRL_NUMERIC, "", 117, 15));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_CONSTANT_NAME, "N1"));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_DATA_TYPE, VAL_INTEGER));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_FRAME_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_WIDTH, 9));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_MAX_VALUE, 2147483647));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_MIN_VALUE, -2147483648));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_INCR_VALUE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_PRECISION, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_CHECK_RANGE, VAL_NOTIFY));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_PADDING, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_SHOW_RADIX, 0));
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_N1));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_SHOW_INCDEC_ARROWS, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_NO_EDIT_TEXT, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_WIDTH, 39));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_TOP, 96));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_LEFT, 15));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
//  errChk(DSBindCtrl (hPanel, P1_N1, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_L16
    errChk(P1_L16 = NewCtrl (hPanel, CTRL_ROUND_LED, "neg. limit", 292, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_CONSTANT_NAME, "L16"));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_WIDTH, 44));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L16));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_TOP, 290));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L15
    errChk(P1_L15 = NewCtrl (hPanel, CTRL_ROUND_LED, "ext. event 2", 273, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_CONSTANT_NAME, "L15"));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_WIDTH, 59));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L15));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_TOP, 271));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L14
    errChk(P1_L14 = NewCtrl (hPanel, CTRL_ROUND_LED, "pos. limit", 254, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_CONSTANT_NAME, "L14"));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_WIDTH, 43));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L14));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_TOP, 252));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L13
    errChk(P1_L13 = NewCtrl (hPanel, CTRL_ROUND_LED, "ext. event 1", 235, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_CONSTANT_NAME, "L13"));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_WIDTH, 59));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L13));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_TOP, 233));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L12
    errChk(P1_L12 = NewCtrl (hPanel, CTRL_ROUND_LED, "emergency stop", 217, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_CONSTANT_NAME, "L12"));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_WIDTH, 78));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L12));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_TOP, 215));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L11
    errChk(P1_L11 = NewCtrl (hPanel, CTRL_ROUND_LED, "local mode", 198, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_CONSTANT_NAME, "L11"));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_WIDTH, 54));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L11));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_TOP, 196));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L10
    errChk(P1_L10 = NewCtrl (hPanel, CTRL_ROUND_LED, "soft limit", 179, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_CONSTANT_NAME, "L10"));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_WIDTH, 40));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L10));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_TOP, 177));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L9
    errChk(P1_L9 = NewCtrl (hPanel, CTRL_ROUND_LED, "disabled", 160, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_CONSTANT_NAME, "L9"));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_WIDTH, 42));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L9));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_TOP, 158));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L8
    errChk(P1_L8 = NewCtrl (hPanel, CTRL_ROUND_LED, "off trajectory", 142, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_CONSTANT_NAME, "L8"));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_WIDTH, 61));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L8));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_TOP, 140));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L7
    errChk(P1_L7 = NewCtrl (hPanel, CTRL_ROUND_LED, "DevNet error", 123, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_CONSTANT_NAME, "L7"));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_WIDTH, 64));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L7));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_TOP, 121));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L6
    errChk(P1_L6 = NewCtrl (hPanel, CTRL_ROUND_LED, "DevNet mode", 104, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_CONSTANT_NAME, "L6"));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_WIDTH, 69));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L6));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_TOP, 102));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L5
    errChk(P1_L5 = NewCtrl (hPanel, CTRL_ROUND_LED, "error", 85, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_CONSTANT_NAME, "L5"));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_WIDTH, 24));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L5));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_TOP, 83));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L4
    errChk(P1_L4 = NewCtrl (hPanel, CTRL_ROUND_LED, "% complete", 67, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_CONSTANT_NAME, "L4"));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_WIDTH, 57));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L4));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_TOP, 65));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L3
    errChk(P1_L3 = NewCtrl (hPanel, CTRL_ROUND_LED, "velocity mode", 48, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_CONSTANT_NAME, "L3"));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_WIDTH, 68));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L3));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_TOP, 46));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L2
    errChk(P1_L2 = NewCtrl (hPanel, CTRL_ROUND_LED, "in position", 29, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_CONSTANT_NAME, "L2"));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_WIDTH, 50));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L2));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_TOP, 27));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_L1
    errChk(P1_L1 = NewCtrl (hPanel, CTRL_ROUND_LED, "move", 11, 488));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_CONSTANT_NAME, "L1"));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_WIDTH, 29));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_L1));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_ON_COLOR, VAL_RED));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_OFF_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_HEIGHT, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_WIDTH, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_TOP, 9));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_LEFT, 510));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_B4
    errChk(P1_B4 = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "__STATUS", 323, 509));
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_CONSTANT_NAME, "B4"));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_B4));
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_WIDTH, 66));

    // Build control: P1_N3
    errChk(P1_N3 = NewCtrl (hPanel, CTRL_NUMERIC, "node", 55, 315));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_CONSTANT_NAME, "N3"));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_DATA_TYPE, VAL_INTEGER));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_FRAME_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_CTRL_MODE, VAL_NORMAL));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_WIDTH, 27));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_MAX_VALUE, 4));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_MIN_VALUE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_INCR_VALUE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_PRECISION, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_CHECK_RANGE, VAL_NOTIFY));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_PADDING, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_SHOW_RADIX, 0));
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_DFLT_VALUE, 1));
    errChk(DefaultCtrl (hPanel, P1_N3));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_SHOW_INCDEC_ARROWS, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_NO_EDIT_TEXT, 0));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_WIDTH, 26));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_TOP, 57));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_LEFT, 275));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
//  errChk(DSBindCtrl (hPanel, P1_N3, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_T1
    errChk(P1_T1 = NewCtrl (hPanel, CTRL_TEXT_BOX, "REPLY", 164, 11));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_CONSTANT_NAME, "T1"));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_FRAME_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_SCROLL_BARS, VAL_VERT_SCROLL_BAR));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_SCROLL_BAR_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_SCROLL_BAR_SIZE, VAL_SMALL_SCROLL_BARS));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_WIDTH, 38));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_DFLT_VALUE, ""));
    errChk(DefaultCtrl (hPanel, P1_T1));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_MAX_ENTRY_LENGTH, -1));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_WRAP_MODE, VAL_LINE_WRAP));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_ENTER_IS_NEWLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_FIRST_VISIBLE_LINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_EXTRA_LINES, -1));
// ****WARNING****  Skipped ATTR_VISIBLE_LINES = 6
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_NO_EDIT_TEXT, 0));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_HEIGHT, 84));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_WIDTH, 289));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_TOP, 143));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_LEFT, 11));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_HSCROLL_OFFSET, 0));
//  errChk(DSBindCtrl (hPanel, P1_T1, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_BF
    errChk(P1_BF = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, ">", 330, 153));
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_CONSTANT_NAME, "BF"));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_BF));
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_WIDTH, 24));

    // Build control: P1_BD
    errChk(P1_BD = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "<", 301, 66));
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_CONSTANT_NAME, "BD"));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_BD));
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_WIDTH, 24));

    // Build control: P1_BB
    errChk(P1_BB = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "<", 330, 66));
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_CONSTANT_NAME, "BB"));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_BB));
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_WIDTH, 24));

    // Build control: P1_BR
    errChk(P1_BR = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, ">", 274, 153));
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_CONSTANT_NAME, "BR"));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_BR));
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_WIDTH, 24));

    // Build control: P1_BU
    errChk(P1_BU = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, ">", 302, 152));
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_CONSTANT_NAME, "BU"));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_BU));
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_WIDTH, 24));

    // Build control: P1_BL
    errChk(P1_BL = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "<", 274, 66));
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_CONSTANT_NAME, "BL"));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_BL));
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_WIDTH, 24));

    // Build control: P1_XG
    errChk(P1_XG = NewCtrl (hPanel, CTRL_NUMERIC, "", 277, 196));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_CONSTANT_NAME, "XG"));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_DATA_TYPE, VAL_INTEGER));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_FRAME_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_CTRL_MODE, VAL_NORMAL));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_WIDTH, 9));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_MAX_VALUE, 2147483647));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_MIN_VALUE, -2147483648));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_INCR_VALUE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_PRECISION, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_CHECK_RANGE, VAL_NOTIFY));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_PADDING, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_SHOW_RADIX, 0));
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_DFLT_VALUE, 50000));
    errChk(DefaultCtrl (hPanel, P1_XG));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_SHOW_INCDEC_ARROWS, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_NO_EDIT_TEXT, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_WIDTH, 53));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_TOP, 278));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_LEFT, 171));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
//  errChk(DSBindCtrl (hPanel, P1_XG, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_ZG
    errChk(P1_ZG = NewCtrl (hPanel, CTRL_NUMERIC, "", 331, 194));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_CONSTANT_NAME, "ZG"));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_DATA_TYPE, VAL_INTEGER));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_FRAME_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_CTRL_MODE, VAL_NORMAL));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_WIDTH, 9));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_MAX_VALUE, 2147483647));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_MIN_VALUE, -2147483648));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_INCR_VALUE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_PRECISION, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_CHECK_RANGE, VAL_NOTIFY));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_PADDING, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_SHOW_RADIX, 0));
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_DFLT_VALUE, 50000));
    errChk(DefaultCtrl (hPanel, P1_ZG));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_SHOW_INCDEC_ARROWS, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_NO_EDIT_TEXT, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_WIDTH, 54));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_TOP, 330));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_LEFT, 168));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
//  errChk(DSBindCtrl (hPanel, P1_ZG, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_ZP
    errChk(P1_ZP = NewCtrl (hPanel, CTRL_NUMERIC, "Z", 332, 94));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_CONSTANT_NAME, "ZP"));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_DATA_TYPE, VAL_INTEGER));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_FRAME_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_WIDTH, 10));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_MAX_VALUE, 2147483647));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_MIN_VALUE, -2147483648));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_INCR_VALUE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_PRECISION, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_CHECK_RANGE, VAL_NOTIFY));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_PADDING, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_SHOW_RADIX, 0));
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_ZP));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_SHOW_INCDEC_ARROWS, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_NO_EDIT_TEXT, 0));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_WIDTH, 54));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_TOP, 333));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_LEFT, 31));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(DSBindCtrl (hPanel, P1_ZP, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_YG
    errChk(P1_YG = NewCtrl (hPanel, CTRL_NUMERIC, "", 304, 194));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_CONSTANT_NAME, "YG"));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_DATA_TYPE, VAL_INTEGER));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_FRAME_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_CTRL_MODE, VAL_NORMAL));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_WIDTH, 9));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_MAX_VALUE, 2147483647));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_MIN_VALUE, -2147483648));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_INCR_VALUE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_PRECISION, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_CHECK_RANGE, VAL_NOTIFY));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_PADDING, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_SHOW_RADIX, 0));
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_DFLT_VALUE, 50000));
    errChk(DefaultCtrl (hPanel, P1_YG));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_SHOW_INCDEC_ARROWS, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_NO_EDIT_TEXT, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_WIDTH, 54));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_TOP, 305));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_LEFT, 169));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
//  errChk(DSBindCtrl (hPanel, P1_YG, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_XP
    errChk(P1_XP = NewCtrl (hPanel, CTRL_NUMERIC, "X", 276, 95));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_CONSTANT_NAME, "XP"));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_DATA_TYPE, VAL_INTEGER));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_FRAME_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_WIDTH, 10));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_MAX_VALUE, 2147483647));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_MIN_VALUE, -2147483648));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_INCR_VALUE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_PRECISION, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_CHECK_RANGE, VAL_NOTIFY));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_PADDING, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_SHOW_RADIX, 0));
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_XP));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_SHOW_INCDEC_ARROWS, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_NO_EDIT_TEXT, 0));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_WIDTH, 53));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_TOP, 278));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_LEFT, 29));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(DSBindCtrl (hPanel, P1_XP, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_YP
    errChk(P1_YP = NewCtrl (hPanel, CTRL_NUMERIC, "Y", 304, 94));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_CONSTANT_NAME, "YP"));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_DATA_TYPE, VAL_INTEGER));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_FRAME_COLOR, 0XD4D0C8));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_WIDTH, 10));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_MAX_VALUE, 2147483647));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_MIN_VALUE, -2147483648));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_INCR_VALUE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_PRECISION, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_CHECK_RANGE, VAL_NOTIFY));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_PADDING, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_SHOW_RADIX, 0));
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_YP));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_SHOW_INCDEC_ARROWS, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_NO_EDIT_TEXT, 0));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_WIDTH, 54));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_TOP, 305));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_LEFT, 31));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(DSBindCtrl (hPanel, P1_YP, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_GZ
    errChk(P1_GZ = NewCtrl (hPanel, CTRL_ROUND_COMMAND_BUTTON, "GO z", 330, 262));
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_CONSTANT_NAME, "GZ"));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_GZ));
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_WIDTH, 40));

    // Build control: P1_GY
    errChk(P1_GY = NewCtrl (hPanel, CTRL_ROUND_COMMAND_BUTTON, "GO y", 300, 262));
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_CONSTANT_NAME, "GY"));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_GY));
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_WIDTH, 41));

    // Build control: P1_GX
    errChk(P1_GX = NewCtrl (hPanel, CTRL_ROUND_COMMAND_BUTTON, "GO x", 273, 262));
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_CONSTANT_NAME, "GX"));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_GX));
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_WIDTH, 40));

    // Build control: P1_G
    errChk(P1_G = NewCtrl (hPanel, CTRL_ROUND_COMMAND_BUTTON, "GO", 329, 316));
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_CONSTANT_NAME, "G"));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_G));
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_WIDTH, 31));

    // Build control: P1_P
    errChk(P1_P = NewCtrl (hPanel, CTRL_ROUND_COMMAND_BUTTON, "Current Position", 358, 75));
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_CONSTANT_NAME, "P"));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_P));
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_HEIGHT, 26));
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_WIDTH, 104));

    // Build control: P1_PORT
    errChk(P1_PORT = NewCtrl (hPanel, CTRL_NUMERIC, "COM Port", 12, 81));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CONSTANT_NAME, "PORT"));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DATA_TYPE, VAL_SHORT_INTEGER));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_FRAME_COLOR, 0XEBE9ED));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CTRL_MODE, VAL_NORMAL));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_WIDTH, 49));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_BGCOLOR, VAL_WHITE));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_MAX_VALUE, 8));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_MIN_VALUE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_INCR_VALUE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_PRECISION, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CHECK_RANGE, VAL_NOTIFY));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_PADDING, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHOW_RADIX, 0));
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DFLT_VALUE, 8));
    errChk(DefaultCtrl (hPanel, P1_PORT));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHOW_INCDEC_ARROWS, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_NO_EDIT_TEXT, 0));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_WIDTH, 30));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_TOP, 14));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_LEFT, 14));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(DSBindCtrl (hPanel, P1_PORT, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_STAGETYPE
    errChk(P1_STAGETYPE = NewCtrl (hPanel, CTRL_LIST, "STAGE TYPE:", 35, 349));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CONSTANT_NAME, "STAGETYPE"));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_VISIBLE, 1));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_DATA_TYPE, VAL_INTEGER));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_SHORTCUT_KEY, 0));
    errChk(InsertListItem (hPanel, P1_STAGETYPE, 0, "use EPROM parameters", 0));
    errChk(InsertListItem (hPanel, P1_STAGETYPE, 1, "10mm3MLinear", 1));
    errChk(InsertListItem (hPanel, P1_STAGETYPE, 2, "10mm3MRotary", 2));
    errChk(InsertListItem (hPanel, P1_STAGETYPE, 3, "13mm4MLinear", 3));
    errChk(InsertListItem (hPanel, P1_STAGETYPE, 4, "13mm4MRotary", 4));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_FRAME_COLOR, 0XEBE9ED));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_SCROLL_BARS, VAL_VERT_SCROLL_BAR));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_SCROLL_BAR_COLOR, 0XEBE9ED));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_SCROLL_BAR_SIZE, VAL_LARGE_SCROLL_BARS));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CTRL_MODE, VAL_HOT));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_WIDTH, 73));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_BGCOLOR, VAL_WHITE));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_DFLT_INDEX, 0));
    errChk(DefaultCtrl (hPanel, P1_STAGETYPE));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CHECK_MODE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CHECK_STYLE, VAL_CHECK_MARK));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_CLICK_TOGGLES_CHECK, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_DRAGGABLE_MARKS, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_ALLOW_ROOM_FOR_IMAGES, 0));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_HEIGHT, 56));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_WIDTH, 109));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_TOP, 17));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_LEFT, 352));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_COMLED
    errChk(P1_COMLED = NewCtrl (hPanel, CTRL_ROUND_LED_LS, "", 11, 117));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_CONSTANT_NAME, "COMLED"));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_WIDTH, 9));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_HEIGHT, 15));
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_DFLT_VALUE, 0));
    errChk(DefaultCtrl (hPanel, P1_COMLED));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_ON_COLOR, 0X009900));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_OFF_COLOR, 0XCC0000));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_HEIGHT, 21));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_WIDTH, 21));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_TOP, -10));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_LEFT, 90));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_SIZE_TO_TEXT, 1));

    // Build control: P1_TEXTMSG
    errChk(P1_TEXTMSG = NewCtrl (hPanel, CTRL_TEXT_MSG, "", 358, 188));
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_CONSTANT_NAME, "TEXTMSG"));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_CTRL_MODE, VAL_INDICATOR));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_COLOR, VAL_BLACK));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_ITALIC, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_UNDERLINE, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_STRIKEOUT, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_POINT_SIZE, 11));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_BOLD, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_ANGLE, 0));
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_BGCOLOR, VAL_LT_GRAY));
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_DFLT_VALUE, "Absolute Position"));
    errChk(DefaultCtrl (hPanel, P1_TEXTMSG));
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_RAISED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_HEIGHT, 15));
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_WIDTH, 84));
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_SIZE_TO_TEXT, 1));
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
//  errChk(DSBindCtrl (hPanel, P1_TEXTMSG, "", VAL_DS_READ, NULL, NULL));

    // Build control: P1_DECORATION
    errChk(P1_DECORATION = NewCtrl (hPanel, CTRL_FLAT_BOX, "", 9, 257));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_CONSTANT_NAME, "DECORATION"));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_FRAME_COLOR, 0XEBE9ED));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_CTRL_MODE, VAL_INDICATOR));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_HEIGHT, 106));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_WIDTH, 212));

    // Build control: P1_DECORATION_2
    errChk(P1_DECORATION_2 = NewCtrl (hPanel, CTRL_FLAT_BOX, "", 3, 479));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_CONSTANT_NAME, "DECORATION_2"));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_VISIBLE, 1));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_CALLBACK_FUNCTION_POINTER, 0));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_SHORTCUT_KEY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_DIMMED, 0));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_FRAME_COLOR, 0XEBE9ED));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_TOOLTIP_TEXT, ""));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_TOOLTIP_DELAY, 1000));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_TOOLTIP_HIDE_DELAY, 0));
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_DISABLE_CTRL_TOOLTIP, 0));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_CTRL_MODE, VAL_INDICATOR));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_HEIGHT, 356));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_WIDTH, 113));

    // Set up ZPLANE order if necessary
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_ZPLANE_POSITION, 0));
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_ZPLANE_POSITION, 1));
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_ZPLANE_POSITION, 2));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_ZPLANE_POSITION, 3));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_ZPLANE_POSITION, 4));
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_ZPLANE_POSITION, 5));
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_ZPLANE_POSITION, 6));
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_ZPLANE_POSITION, 7));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_ZPLANE_POSITION, 8));
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_ZPLANE_POSITION, 9));
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_ZPLANE_POSITION, 10));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_ZPLANE_POSITION, 11));
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_ZPLANE_POSITION, 12));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_ZPLANE_POSITION, 13));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_ZPLANE_POSITION, 14));
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_ZPLANE_POSITION, 15));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_ZPLANE_POSITION, 16));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_ZPLANE_POSITION, 17));
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_ZPLANE_POSITION, 18));
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_ZPLANE_POSITION, 19));
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_ZPLANE_POSITION, 20));
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_ZPLANE_POSITION, 21));
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_ZPLANE_POSITION, 22));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_ZPLANE_POSITION, 23));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_ZPLANE_POSITION, 24));
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_ZPLANE_POSITION, 25));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_ZPLANE_POSITION, 26));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_ZPLANE_POSITION, 27));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_ZPLANE_POSITION, 28));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_ZPLANE_POSITION, 29));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_ZPLANE_POSITION, 30));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_ZPLANE_POSITION, 31));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_ZPLANE_POSITION, 32));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_ZPLANE_POSITION, 33));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_ZPLANE_POSITION, 34));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_ZPLANE_POSITION, 35));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_ZPLANE_POSITION, 36));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_ZPLANE_POSITION, 37));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_ZPLANE_POSITION, 38));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_ZPLANE_POSITION, 39));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_ZPLANE_POSITION, 40));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_ZPLANE_POSITION, 41));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_ZPLANE_POSITION, 42));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_ZPLANE_POSITION, 43));
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_ZPLANE_POSITION, 44));
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_ZPLANE_POSITION, 45));
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_ZPLANE_POSITION, 46));
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_ZPLANE_POSITION, 47));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_ZPLANE_POSITION, 48));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_ZPLANE_POSITION, 49));
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_ZPLANE_POSITION, 50));

    // Set up TAB order if necessary
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_CTRL_TAB_POSITION, 0));
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_CTRL_TAB_POSITION, 1));
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_CTRL_TAB_POSITION, 2));
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_CTRL_TAB_POSITION, 3));
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_CTRL_TAB_POSITION, 4));
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_CTRL_TAB_POSITION, 5));
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_CTRL_TAB_POSITION, 6));
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_CTRL_TAB_POSITION, 7));
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_CTRL_TAB_POSITION, 8));
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_CTRL_TAB_POSITION, 9));
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_CTRL_TAB_POSITION, 10));
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_CTRL_TAB_POSITION, 11));
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_CTRL_TAB_POSITION, 12));
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_CTRL_TAB_POSITION, 13));
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_CTRL_TAB_POSITION, 14));
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_CTRL_TAB_POSITION, 15));
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_CTRL_TAB_POSITION, 16));
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_CTRL_TAB_POSITION, 17));
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_CTRL_TAB_POSITION, 18));
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_CTRL_TAB_POSITION, 19));
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_CTRL_TAB_POSITION, 20));
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_CTRL_TAB_POSITION, 21));
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_CTRL_TAB_POSITION, 22));
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_CTRL_TAB_POSITION, 23));
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_CTRL_TAB_POSITION, 24));
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_CTRL_TAB_POSITION, 25));
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_CTRL_TAB_POSITION, 26));
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_CTRL_TAB_POSITION, 27));
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_CTRL_TAB_POSITION, 28));
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_CTRL_TAB_POSITION, 29));
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_CTRL_TAB_POSITION, 30));
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_CTRL_TAB_POSITION, 31));
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_CTRL_TAB_POSITION, 32));
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_CTRL_TAB_POSITION, 33));
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_CTRL_TAB_POSITION, 34));
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_CTRL_TAB_POSITION, 35));
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_CTRL_TAB_POSITION, 36));
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_CTRL_TAB_POSITION, 37));
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_CTRL_TAB_POSITION, 38));
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_CTRL_TAB_POSITION, 39));
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_CTRL_TAB_POSITION, 40));
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_CTRL_TAB_POSITION, 41));
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_CTRL_TAB_POSITION, 42));
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_CTRL_TAB_POSITION, 43));
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_CTRL_TAB_POSITION, 44));
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CTRL_TAB_POSITION, 45));
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CTRL_TAB_POSITION, 46));
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_CTRL_TAB_POSITION, 47));

    // Set up splitter attachments if necessary

    // Finalize panel colors, positioning, and sizing
    errChk(SetPanelAttribute (hPanel, ATTR_CONFORM_TO_SYSTEM, 0));
    errChk(SetPanelAttribute (hPanel, ATTR_CONFORM_TO_SYSTEM_THEME, 0));
    errChk(SetPanelAttribute (hPanel, ATTR_SCALE_CONTENTS_ON_RESIZE, 1));
    errChk(GetSystemAttribute (ATTR_RESOLUTION_ADJUSTMENT, &resAdjustment));
    if (resAdjustment == VAL_USE_PANEL_SETTING)
        resAdjustment = 0;
    if (resAdjustment)
        {
        errChk(GetMonitorFromPanel (hPanel, &monitorId));
        errChk(GetMonitorAttribute (monitorId, ATTR_HEIGHT, &screenHeight));
        errChk(GetMonitorAttribute (monitorId, ATTR_WIDTH, &screenWidth));
        SFv = (((float)screenHeight/1200)-1)*0.01*resAdjustment+1;
        errChk(SetPanelAttribute (hPanel, ATTR_HEIGHT, (int)(387*SFv)));
        SFh = (((float)screenWidth/1920)-1)*0.01*resAdjustment+1;
        errChk(SetPanelAttribute (hPanel, ATTR_WIDTH, (int)(606*SFh)));
        errChk(SetPanelAttribute (hPanel, ATTR_TOP, (int)(28*SFv)));
        errChk(SetPanelAttribute (hPanel, ATTR_LEFT, (int)(13*SFh)));
        }
    errChk(SetPanelAttribute (hPanel, ATTR_SCALE_CONTENTS_ON_RESIZE, 0));

    //We're done!
    return hPanel;
Error:
    if (bitmapId)
        DiscardBitmap (bitmapId);
    return error;
}