Subversion Repositories f9daq

Rev

Rev 120 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
120 f9daq 1
 
2
//----------------------------------------------------------------------------------------------------
3
//----------------------------------------------------------------------------------------------------
4
//
5
//  "MIKRO_uic.c"
6
//
7
//  Implementation file for UI build functions
8
//
133 f9daq 9
//  Date: 10-17-2015
120 f9daq 10
//
11
//----------------------------------------------------------------------------------------------------
12
//----------------------------------------------------------------------------------------------------
13
 
14
//----------------------------------------------------------------------------------------------------
15
//  Include header files
16
//----------------------------------------------------------------------------------------------------
17
 
18
#include "MIKRO_uic.h"
19
#include <Utility.h> // definition of NULL
20
#include "toolbox.h" // definition of errChk macro
21
 
22
extern int CVIFUNC_C GetUserBitmapFromText (char *imageText, int version, int *bitmapId); // needed if there are bitmaps
23
extern int CVIFUNC_C NewActiveXCtrlFromPersistence (int panel, const char *ctrlLabel,
24
                                                    int top, int left, char *defaultIID,
25
                                                    int binaryFormat, char *persistenceText,
26
                                                    HRESULT *activeXError); // needed if there are ActiveX controls
27
 
28
//----------------------------------------------------------------------------------------------------
29
//  Prototype UI build functions.
30
//----------------------------------------------------------------------------------------------------
31
 
32
int BuildP1 (int hParentPanel);
33
 
34
//-------------------------------------------------------------------------------------------------
35
// Prototype callbacks for Panel: P1
36
// ------------------------------------------------------------------------------------------------
37
 
38
 
39
//-------------------------------------------------------------------------------------------------
40
// Declare identifiers for Panel:  P1
41
// ------------------------------------------------------------------------------------------------
42
 
43
int P1_S2                                    ;     // control identifier
44
int P1_S1                                    ;     // control identifier
45
int P1_B1                                    ;     // control identifier
46
int P1_B2                                    ;     // control identifier
47
int P1_EN                                    ;     // control identifier
48
int P1_HO                                    ;     // control identifier
49
int P1_B3                                    ;     // control identifier
50
int P1_N2                                    ;     // control identifier
51
int P1_N1                                    ;     // control identifier
52
int P1_L16                                   ;     // control identifier
53
int P1_L15                                   ;     // control identifier
54
int P1_L14                                   ;     // control identifier
55
int P1_L13                                   ;     // control identifier
56
int P1_L12                                   ;     // control identifier
57
int P1_L11                                   ;     // control identifier
58
int P1_L10                                   ;     // control identifier
59
int P1_L9                                    ;     // control identifier
60
int P1_L8                                    ;     // control identifier
61
int P1_L7                                    ;     // control identifier
62
int P1_L6                                    ;     // control identifier
63
int P1_L5                                    ;     // control identifier
64
int P1_L4                                    ;     // control identifier
65
int P1_L3                                    ;     // control identifier
66
int P1_L2                                    ;     // control identifier
67
int P1_L1                                    ;     // control identifier
68
int P1_B4                                    ;     // control identifier
69
int P1_N3                                    ;     // control identifier
70
int P1_T1                                    ;     // control identifier
71
int P1_BF                                    ;     // control identifier
72
int P1_BD                                    ;     // control identifier
73
int P1_BB                                    ;     // control identifier
74
int P1_BR                                    ;     // control identifier
75
int P1_BU                                    ;     // control identifier
76
int P1_BL                                    ;     // control identifier
77
int P1_XG                                    ;     // control identifier
78
int P1_ZG                                    ;     // control identifier
79
int P1_ZP                                    ;     // control identifier
80
int P1_YG                                    ;     // control identifier
81
int P1_XP                                    ;     // control identifier
82
int P1_YP                                    ;     // control identifier
83
int P1_GZ                                    ;     // control identifier
84
int P1_GY                                    ;     // control identifier
85
int P1_GX                                    ;     // control identifier
86
int P1_G                                     ;     // control identifier
87
int P1_P                                     ;     // control identifier
88
int P1_PORT                                  ;     // control identifier
89
int P1_STAGETYPE                             ;     // control identifier
90
int P1_COMLED                                ;     // control identifier
91
int P1_TEXTMSG                               ;     // control identifier
92
int P1_DECORATION                            ;     // control identifier
93
int P1_DECORATION_2                          ;     // control identifier
94
 
95
//----------------------------------------------------------------------------------------------------
96
// BuildP1 ():  Build UI object P1; return handle or standard UI error code.
97
//----------------------------------------------------------------------------------------------------
98
int BuildP1 (int hParentPanel)
99
{
100
    int hPanel;
101
    int error = 0;
102
    int bitmapId = 0; // needed if there are bitmaps 
103
    char *dataPtr = NULL;
104
    int hMenubar;
105
    int screenHeight;
106
    int screenWidth;
107
    int resAdjustment;
108
    int monitorId;
109
    float SFv;
110
    float SFh;
111
    int hTabPanel; // needed if there are tab controls 
112
    ColorMapEntry colorRamp[255]; // needed if there are controls with color ramps
113
 
114
    // Create the panel
115
    errChk(hPanel = NewPanel (hParentPanel, "Untitled Panel", 28, 13, 387, 606));
116
 
117
    // Set the panel's attributes
118
    errChk(SetPanelAttribute (hPanel, ATTR_CONSTANT_NAME, "P1"));
119
    errChk(SetPanelAttribute (hPanel, ATTR_CALLBACK_FUNCTION_POINTER, 0));
120
//  errChk(SetPanelAttribute (hPanel, ATTR_DIMMED, 0));
121
    if (hParentPanel)
122
        errChk(SetPanelAttribute (hPanel, ATTR_FRAME_COLOR, VAL_LT_GRAY));
123
//  errChk(SetPanelAttribute (hPanel, ATTR_SCROLL_BARS, VAL_NO_SCROLL_BARS));
124
    errChk(SetPanelAttribute (hPanel, ATTR_SCROLL_BAR_COLOR, VAL_LT_GRAY));
125
//  errChk(SetPanelAttribute (hPanel, ATTR_HSCROLL_OFFSET, 0));
126
    errChk(SetPanelAttribute (hPanel, ATTR_BACKCOLOR, VAL_LT_GRAY));
127
//  errChk(SetPanelAttribute (hPanel, ATTR_TITLEBAR_VISIBLE, 1));
128
//  if (hParentPanel)
129
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLEBAR_THICKNESS, 16));
130
//  if (hParentPanel)
131
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLEBAR_STYLE, VAL_CLASSIC));
132
//  if (hParentPanel)
133
    //  errChk(SetPanelAttribute (hPanel, ATTR_SCROLL_BAR_STYLE, VAL_CLASSIC));
134
//  if (hParentPanel)
135
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_COLOR, VAL_BLACK));
136
    if (hParentPanel)
137
        errChk(SetPanelAttribute (hPanel, ATTR_TITLE_BACKCOLOR, VAL_LT_GRAY));
138
//  if (hParentPanel)
139
    //  errChk(SetPanelAttribute (hPanel, ATTR_FRAME_STYLE, VAL_RAISED_OUTLINED_FRAME));
140
//  errChk(SetPanelAttribute (hPanel, ATTR_SIZABLE, 1));
141
//  errChk(SetPanelAttribute (hPanel, ATTR_MOVABLE, 1));
142
//  if (hParentPanel)
143
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_FONT, "VAL_DIALOG_META_FONT"));
144
//  if (hParentPanel)
145
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_ITALIC, 0));
146
//  if (hParentPanel)
147
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_UNDERLINE, 0));
148
//  if (hParentPanel)
149
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_STRIKEOUT, 0));
150
//  if (hParentPanel)
151
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_POINT_SIZE, 11));
152
//  if (hParentPanel)
153
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_BOLD, 0));
154
//  if (hParentPanel)
155
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_CHARACTER_SET, VAL_NATIVE_CHARSET));
156
//  if (hParentPanel)
157
    //  errChk(SetPanelAttribute (hPanel, ATTR_PARENT_SHARES_SHORTCUT_KEYS, 1));
158
//  if (hParentPanel)
159
    //  errChk(SetPanelAttribute (hPanel, ATTR_ACTIVATE_WHEN_CLICKED_ON, 1));
160
//  errChk(SetPanelAttribute (hPanel, ATTR_CAN_MINIMIZE, 1));
161
//  errChk(SetPanelAttribute (hPanel, ATTR_CAN_MAXIMIZE, 1));
162
    errChk(SetPanelAttribute (hPanel, ATTR_MIN_HEIGHT_FOR_SCALING, 0));
163
    errChk(SetPanelAttribute (hPanel, ATTR_MIN_WIDTH_FOR_SCALING, 0));
164
//  if (!hParentPanel)
165
    //  errChk(SetPanelAttribute (hPanel, ATTR_FLOATING, VAL_FLOAT_NEVER));
166
//  errChk(SetPanelAttribute (hPanel, ATTR_CLOSE_ITEM_VISIBLE, 1));
167
//  errChk(SetPanelAttribute (hPanel, ATTR_SYSTEM_MENU_VISIBLE, 1));
168
//  if (hParentPanel)
169
    //  errChk(SetPanelAttribute (hPanel, ATTR_TITLE_SIZE_TO_FONT, 1));
170
//  errChk(SetPanelAttribute (hPanel, ATTR_HAS_TASKBAR_BUTTON, 0));
171
//  errChk(SetPanelAttribute (hPanel, ATTR_VSCROLL_OFFSET, 0));
172
//  if (hParentPanel)
173
    //  errChk(SetPanelAttribute (hPanel, ATTR_FRAME_THICKNESS, 5));
174
// ****WARNING****  Not equipped to set panel's ATTR_MOUSE_CURSOR = VAL_DEFAULT_CURSOR
175
 
176
    // Build control: P1_S2
177
    errChk(P1_S2 = NewCtrl (hPanel, CTRL_STRING, "ODGOVOR", 116, 61));
178
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_CONSTANT_NAME, "S2"));
179
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_VISIBLE, 1));
180
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_CALLBACK_FUNCTION_POINTER, 0));
181
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_SHORTCUT_KEY, 0));
182
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_DIMMED, 0));
183
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_FRAME_COLOR, VAL_LT_GRAY));
184
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TOOLTIP_TEXT, ""));
185
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TOOLTIP_DELAY, 1000));
186
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TOOLTIP_HIDE_DELAY, 0));
187
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_DISABLE_CTRL_TOOLTIP, 0));
188
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_CTRL_MODE, VAL_INDICATOR));
189
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_COLOR, VAL_BLACK));
190
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
191
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_ITALIC, 0));
192
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_UNDERLINE, 0));
193
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_STRIKEOUT, 0));
194
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_POINT_SIZE, 11));
195
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_BOLD, 0));
196
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
197
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_VISIBLE, 1));
198
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
199
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_ANGLE, 0));
200
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_WIDTH, 58));
201
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_HEIGHT, 15));
202
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_RAISED, 0));
203
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
204
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_COLOR, VAL_BLACK));
205
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
206
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_ITALIC, 0));
207
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_UNDERLINE, 0));
208
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_STRIKEOUT, 0));
209
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_POINT_SIZE, 11));
210
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_BOLD, 0));
211
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
212
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_BGCOLOR, VAL_WHITE));
213
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_DFLT_VALUE, ""));
214
    errChk(DefaultCtrl (hPanel, P1_S2));
215
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_MAX_ENTRY_LENGTH, -1));
216
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_NO_EDIT_TEXT, 0));
217
// ****WARNING****  Skipped ATTR_MASK_CHARACTER = 42
218
// ****WARNING****  Skipped ATTR_ENABLE_CHARACTER_MASKING = 0
219
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_WIDTH, 171));
220
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_TOP, 95));
221
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_LEFT, 67));
222
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_LABEL_SIZE_TO_TEXT, 1));
223
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
224
//  errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_HSCROLL_OFFSET, 0));
225
//  errChk(DSBindCtrl (hPanel, P1_S2, "", VAL_DS_READ, NULL, NULL));
226
 
227
    // Build control: P1_S1
228
    errChk(P1_S1 = NewCtrl (hPanel, CTRL_STRING, "UKAZ", 36, 58));
229
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_CONSTANT_NAME, "S1"));
230
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_VISIBLE, 1));
231
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_CALLBACK_FUNCTION_POINTER, 0));
232
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_SHORTCUT_KEY, 0));
233
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_DIMMED, 0));
234
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_FRAME_COLOR, VAL_LT_GRAY));
235
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TOOLTIP_TEXT, ""));
236
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TOOLTIP_DELAY, 1000));
237
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TOOLTIP_HIDE_DELAY, 0));
238
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_DISABLE_CTRL_TOOLTIP, 0));
239
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_CTRL_MODE, VAL_VALIDATE));
240
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_COLOR, VAL_BLACK));
241
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
242
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_ITALIC, 0));
243
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_UNDERLINE, 0));
244
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_STRIKEOUT, 0));
245
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_POINT_SIZE, 11));
246
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_BOLD, 0));
247
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
248
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_VISIBLE, 1));
249
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
250
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_ANGLE, 0));
251
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_WIDTH, 32));
252
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_HEIGHT, 15));
253
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_RAISED, 0));
254
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
255
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_COLOR, VAL_BLACK));
256
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
257
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_ITALIC, 0));
258
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_UNDERLINE, 0));
259
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_STRIKEOUT, 0));
260
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_POINT_SIZE, 11));
261
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_BOLD, 0));
262
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
263
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_BGCOLOR, VAL_WHITE));
264
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_DFLT_VALUE, "1 en"));
265
    errChk(DefaultCtrl (hPanel, P1_S1));
266
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_MAX_ENTRY_LENGTH, -1));
267
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_NO_EDIT_TEXT, 0));
268
// ****WARNING****  Skipped ATTR_MASK_CHARACTER = 42
269
// ****WARNING****  Skipped ATTR_ENABLE_CHARACTER_MASKING = 0
270
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_WIDTH, 127));
271
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_TOP, 38));
272
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_LEFT, 13));
273
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_LABEL_SIZE_TO_TEXT, 1));
274
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
275
//  errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_HSCROLL_OFFSET, 0));
276
//  errChk(DSBindCtrl (hPanel, P1_S1, "", VAL_DS_READ, NULL, NULL));
277
 
278
    // Build control: P1_B1
279
    errChk(P1_B1 = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "__EXIT", 324, 418));
280
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_CONSTANT_NAME, "B1"));
281
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_VISIBLE, 1));
282
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_CALLBACK_FUNCTION_POINTER, 0));
283
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_SHORTCUT_KEY, 0));
284
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_DIMMED, 0));
285
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_TOOLTIP_TEXT, ""));
286
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_TOOLTIP_DELAY, 1000));
287
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_TOOLTIP_HIDE_DELAY, 0));
288
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_DISABLE_CTRL_TOOLTIP, 0));
289
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_CTRL_MODE, VAL_HOT));
290
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_COLOR, VAL_BLACK));
291
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
292
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_ITALIC, 0));
293
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_UNDERLINE, 0));
294
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_STRIKEOUT, 0));
295
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_POINT_SIZE, 11));
296
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_BOLD, 0));
297
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
298
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_LABEL_VISIBLE, 1));
299
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_DFLT_VALUE, 0));
300
    errChk(DefaultCtrl (hPanel, P1_B1));
301
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_CMD_BUTTON_COLOR, VAL_LT_GRAY));
302
//  errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
303
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_HEIGHT, 26));
304
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_WIDTH, 40));
305
 
306
    // Build control: P1_B2
307
    errChk(P1_B2 = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "__POSLJI", 33, 190));
308
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_CONSTANT_NAME, "B2"));
309
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_VISIBLE, 1));
310
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_CALLBACK_FUNCTION_POINTER, 0));
311
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_SHORTCUT_KEY, 0));
312
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_DIMMED, 0));
313
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_TOOLTIP_TEXT, ""));
314
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_TOOLTIP_DELAY, 1000));
315
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_TOOLTIP_HIDE_DELAY, 0));
316
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_DISABLE_CTRL_TOOLTIP, 0));
317
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_CTRL_MODE, VAL_HOT));
318
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_COLOR, VAL_BLACK));
319
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
320
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_ITALIC, 0));
321
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_UNDERLINE, 0));
322
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_STRIKEOUT, 0));
323
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_POINT_SIZE, 11));
324
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_BOLD, 0));
325
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
326
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_LABEL_VISIBLE, 1));
327
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_DFLT_VALUE, 0));
328
    errChk(DefaultCtrl (hPanel, P1_B2));
329
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_CMD_BUTTON_COLOR, VAL_LT_GRAY));
330
//  errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
331
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_HEIGHT, 26));
332
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_WIDTH, 56));
333
 
334
    // Build control: P1_EN
335
    errChk(P1_EN = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "ENABLE", 84, 277));
336
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_CONSTANT_NAME, "EN"));
337
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_VISIBLE, 1));
338
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_CALLBACK_FUNCTION_POINTER, 0));
339
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_SHORTCUT_KEY, 0));
340
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_DIMMED, 0));
341
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_TOOLTIP_TEXT, ""));
342
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_TOOLTIP_DELAY, 1000));
343
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_TOOLTIP_HIDE_DELAY, 0));
344
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_DISABLE_CTRL_TOOLTIP, 0));
345
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_CTRL_MODE, VAL_HOT));
346
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_COLOR, VAL_BLACK));
347
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
348
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_ITALIC, 0));
349
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_UNDERLINE, 0));
350
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_STRIKEOUT, 0));
351
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_POINT_SIZE, 11));
352
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_BOLD, 0));
353
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
354
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_LABEL_VISIBLE, 1));
355
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_DFLT_VALUE, 0));
356
    errChk(DefaultCtrl (hPanel, P1_EN));
357
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_CMD_BUTTON_COLOR, VAL_LT_GRAY));
358
//  errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
359
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_HEIGHT, 26));
360
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_WIDTH, 64));
361
 
362
    // Build control: P1_HO
363
    errChk(P1_HO = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "__HOME", 121, 413));
364
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_CONSTANT_NAME, "HO"));
365
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_VISIBLE, 1));
366
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_CALLBACK_FUNCTION_POINTER, 0));
367
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_SHORTCUT_KEY, 0));
368
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_DIMMED, 0));
369
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_TOOLTIP_TEXT, ""));
370
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_TOOLTIP_DELAY, 1000));
371
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_TOOLTIP_HIDE_DELAY, 0));
372
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_DISABLE_CTRL_TOOLTIP, 0));
373
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_CTRL_MODE, VAL_HOT));
374
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_COLOR, VAL_BLACK));
375
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
376
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_ITALIC, 0));
377
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_UNDERLINE, 0));
378
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_STRIKEOUT, 0));
379
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_POINT_SIZE, 11));
380
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_BOLD, 0));
381
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
382
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_LABEL_VISIBLE, 1));
383
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_DFLT_VALUE, 0));
384
    errChk(DefaultCtrl (hPanel, P1_HO));
385
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_CMD_BUTTON_COLOR, VAL_LT_GRAY));
386
//  errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
387
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_HEIGHT, 26));
388
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_WIDTH, 51));
389
 
390
    // Build control: P1_B3
391
    errChk(P1_B3 = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "__Rst  & Cfg", 20, 273));
392
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_CONSTANT_NAME, "B3"));
393
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_VISIBLE, 1));
394
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_CALLBACK_FUNCTION_POINTER, 0));
395
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_SHORTCUT_KEY, 0));
396
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_DIMMED, 0));
397
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_TOOLTIP_TEXT, ""));
398
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_TOOLTIP_DELAY, 1000));
399
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_TOOLTIP_HIDE_DELAY, 0));
400
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_DISABLE_CTRL_TOOLTIP, 0));
401
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_CTRL_MODE, VAL_HOT));
402
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_COLOR, VAL_BLACK));
403
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
404
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_ITALIC, 0));
405
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_UNDERLINE, 0));
406
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_STRIKEOUT, 0));
407
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_POINT_SIZE, 11));
408
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_BOLD, 0));
409
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
410
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_LABEL_VISIBLE, 1));
411
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_DFLT_VALUE, 0));
412
    errChk(DefaultCtrl (hPanel, P1_B3));
413
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_CMD_BUTTON_COLOR, VAL_LT_GRAY));
414
//  errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
415
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_HEIGHT, 26));
416
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_WIDTH, 69));
417
 
418
    // Build control: P1_N2
419
    errChk(P1_N2 = NewCtrl (hPanel, CTRL_NUMERIC, "", 141, 61));
420
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_CONSTANT_NAME, "N2"));
421
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_VISIBLE, 1));
422
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_DATA_TYPE, VAL_INTEGER));
423
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_CALLBACK_FUNCTION_POINTER, 0));
424
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_SHORTCUT_KEY, 0));
425
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_DIMMED, 0));
426
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_FRAME_COLOR, 0XD4D0C8));
427
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TOOLTIP_TEXT, ""));
428
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TOOLTIP_DELAY, 1000));
429
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TOOLTIP_HIDE_DELAY, 0));
430
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_DISABLE_CTRL_TOOLTIP, 0));
431
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_CTRL_MODE, VAL_INDICATOR));
432
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_COLOR, VAL_BLACK));
433
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
434
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_ITALIC, 0));
435
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_UNDERLINE, 0));
436
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_STRIKEOUT, 0));
437
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_POINT_SIZE, 11));
438
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_BOLD, 0));
439
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
440
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_VISIBLE, 1));
441
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
442
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_ANGLE, 0));
443
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_WIDTH, 9));
444
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_HEIGHT, 15));
445
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_RAISED, 0));
446
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
447
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_COLOR, VAL_BLACK));
448
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
449
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_ITALIC, 0));
450
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_UNDERLINE, 0));
451
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_STRIKEOUT, 0));
452
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_POINT_SIZE, 11));
453
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_BOLD, 0));
454
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
455
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_BGCOLOR, VAL_WHITE));
456
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_MAX_VALUE, 2147483647));
457
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_MIN_VALUE, -2147483648));
458
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_INCR_VALUE, 1));
459
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
460
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_PRECISION, 0));
461
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_CHECK_RANGE, VAL_NOTIFY));
462
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_PADDING, 0));
463
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_SHOW_RADIX, 0));
464
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
465
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
466
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_DFLT_VALUE, 0));
467
    errChk(DefaultCtrl (hPanel, P1_N2));
468
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_SHOW_INCDEC_ARROWS, 0));
469
//  errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_NO_EDIT_TEXT, 0));
470
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_WIDTH, 71));
471
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_TOP, 120));
472
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_LEFT, 61));
473
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_LABEL_SIZE_TO_TEXT, 1));
474
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
475
//  errChk(DSBindCtrl (hPanel, P1_N2, "", VAL_DS_READ, NULL, NULL));
476
 
477
    // Build control: P1_N1
478
    errChk(P1_N1 = NewCtrl (hPanel, CTRL_NUMERIC, "", 117, 15));
479
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_CONSTANT_NAME, "N1"));
480
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_VISIBLE, 1));
481
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_DATA_TYPE, VAL_INTEGER));
482
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_CALLBACK_FUNCTION_POINTER, 0));
483
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_SHORTCUT_KEY, 0));
484
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_DIMMED, 0));
485
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_FRAME_COLOR, 0XD4D0C8));
486
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TOOLTIP_TEXT, ""));
487
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TOOLTIP_DELAY, 1000));
488
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TOOLTIP_HIDE_DELAY, 0));
489
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_DISABLE_CTRL_TOOLTIP, 0));
490
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_CTRL_MODE, VAL_INDICATOR));
491
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_COLOR, VAL_BLACK));
492
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
493
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_ITALIC, 0));
494
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_UNDERLINE, 0));
495
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_STRIKEOUT, 0));
496
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_POINT_SIZE, 11));
497
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_BOLD, 0));
498
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
499
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_VISIBLE, 1));
500
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
501
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_ANGLE, 0));
502
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_WIDTH, 9));
503
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_HEIGHT, 15));
504
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_RAISED, 0));
505
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
506
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_COLOR, VAL_BLACK));
507
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
508
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_ITALIC, 0));
509
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_UNDERLINE, 0));
510
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_STRIKEOUT, 0));
511
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_POINT_SIZE, 11));
512
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_BOLD, 0));
513
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
514
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_BGCOLOR, VAL_WHITE));
515
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_MAX_VALUE, 2147483647));
516
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_MIN_VALUE, -2147483648));
517
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_INCR_VALUE, 1));
518
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
519
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_PRECISION, 0));
520
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_CHECK_RANGE, VAL_NOTIFY));
521
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_PADDING, 0));
522
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_SHOW_RADIX, 0));
523
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
524
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
525
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_DFLT_VALUE, 0));
526
    errChk(DefaultCtrl (hPanel, P1_N1));
527
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_SHOW_INCDEC_ARROWS, 0));
528
//  errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_NO_EDIT_TEXT, 0));
529
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_WIDTH, 39));
530
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_TOP, 96));
531
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_LEFT, 15));
532
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_LABEL_SIZE_TO_TEXT, 1));
533
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
534
//  errChk(DSBindCtrl (hPanel, P1_N1, "", VAL_DS_READ, NULL, NULL));
535
 
536
    // Build control: P1_L16
537
    errChk(P1_L16 = NewCtrl (hPanel, CTRL_ROUND_LED, "neg. limit", 292, 488));
538
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_CONSTANT_NAME, "L16"));
539
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_VISIBLE, 1));
540
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_CALLBACK_FUNCTION_POINTER, 0));
541
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_SHORTCUT_KEY, 0));
542
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_DIMMED, 0));
543
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_TOOLTIP_TEXT, ""));
544
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_TOOLTIP_DELAY, 1000));
545
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_TOOLTIP_HIDE_DELAY, 0));
546
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_DISABLE_CTRL_TOOLTIP, 0));
547
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_CTRL_MODE, VAL_INDICATOR));
548
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_COLOR, VAL_BLACK));
549
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
550
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_ITALIC, 0));
551
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_UNDERLINE, 0));
552
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_STRIKEOUT, 0));
553
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_POINT_SIZE, 11));
554
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_BOLD, 0));
555
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
556
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_VISIBLE, 1));
557
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
558
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_ANGLE, 0));
559
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_WIDTH, 44));
560
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_HEIGHT, 15));
561
//  errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_RAISED, 0));
562
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
563
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_DFLT_VALUE, 0));
564
    errChk(DefaultCtrl (hPanel, P1_L16));
565
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_ON_COLOR, VAL_RED));
566
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_OFF_COLOR, 0XD4D0C8));
567
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_HEIGHT, 12));
568
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_WIDTH, 13));
569
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_TOP, 290));
570
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_LEFT, 510));
571
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_LABEL_SIZE_TO_TEXT, 1));
572
 
573
    // Build control: P1_L15
574
    errChk(P1_L15 = NewCtrl (hPanel, CTRL_ROUND_LED, "ext. event 2", 273, 488));
575
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_CONSTANT_NAME, "L15"));
576
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_VISIBLE, 1));
577
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_CALLBACK_FUNCTION_POINTER, 0));
578
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_SHORTCUT_KEY, 0));
579
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_DIMMED, 0));
580
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_TOOLTIP_TEXT, ""));
581
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_TOOLTIP_DELAY, 1000));
582
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_TOOLTIP_HIDE_DELAY, 0));
583
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_DISABLE_CTRL_TOOLTIP, 0));
584
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_CTRL_MODE, VAL_INDICATOR));
585
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_COLOR, VAL_BLACK));
586
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
587
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_ITALIC, 0));
588
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_UNDERLINE, 0));
589
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_STRIKEOUT, 0));
590
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_POINT_SIZE, 11));
591
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_BOLD, 0));
592
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
593
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_VISIBLE, 1));
594
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
595
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_ANGLE, 0));
596
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_WIDTH, 59));
597
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_HEIGHT, 15));
598
//  errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_RAISED, 0));
599
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
600
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_DFLT_VALUE, 0));
601
    errChk(DefaultCtrl (hPanel, P1_L15));
602
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_ON_COLOR, VAL_RED));
603
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_OFF_COLOR, 0XD4D0C8));
604
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_HEIGHT, 12));
605
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_WIDTH, 13));
606
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_TOP, 271));
607
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_LEFT, 510));
608
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_LABEL_SIZE_TO_TEXT, 1));
609
 
610
    // Build control: P1_L14
611
    errChk(P1_L14 = NewCtrl (hPanel, CTRL_ROUND_LED, "pos. limit", 254, 488));
612
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_CONSTANT_NAME, "L14"));
613
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_VISIBLE, 1));
614
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_CALLBACK_FUNCTION_POINTER, 0));
615
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_SHORTCUT_KEY, 0));
616
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_DIMMED, 0));
617
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_TOOLTIP_TEXT, ""));
618
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_TOOLTIP_DELAY, 1000));
619
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_TOOLTIP_HIDE_DELAY, 0));
620
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_DISABLE_CTRL_TOOLTIP, 0));
621
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_CTRL_MODE, VAL_INDICATOR));
622
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_COLOR, VAL_BLACK));
623
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
624
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_ITALIC, 0));
625
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_UNDERLINE, 0));
626
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_STRIKEOUT, 0));
627
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_POINT_SIZE, 11));
628
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_BOLD, 0));
629
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
630
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_VISIBLE, 1));
631
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
632
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_ANGLE, 0));
633
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_WIDTH, 43));
634
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_HEIGHT, 15));
635
//  errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_RAISED, 0));
636
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
637
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_DFLT_VALUE, 0));
638
    errChk(DefaultCtrl (hPanel, P1_L14));
639
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_ON_COLOR, VAL_RED));
640
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_OFF_COLOR, 0XD4D0C8));
641
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_HEIGHT, 12));
642
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_WIDTH, 13));
643
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_TOP, 252));
644
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_LEFT, 510));
645
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_LABEL_SIZE_TO_TEXT, 1));
646
 
647
    // Build control: P1_L13
648
    errChk(P1_L13 = NewCtrl (hPanel, CTRL_ROUND_LED, "ext. event 1", 235, 488));
649
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_CONSTANT_NAME, "L13"));
650
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_VISIBLE, 1));
651
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_CALLBACK_FUNCTION_POINTER, 0));
652
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_SHORTCUT_KEY, 0));
653
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_DIMMED, 0));
654
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_TOOLTIP_TEXT, ""));
655
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_TOOLTIP_DELAY, 1000));
656
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_TOOLTIP_HIDE_DELAY, 0));
657
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_DISABLE_CTRL_TOOLTIP, 0));
658
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_CTRL_MODE, VAL_INDICATOR));
659
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_COLOR, VAL_BLACK));
660
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
661
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_ITALIC, 0));
662
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_UNDERLINE, 0));
663
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_STRIKEOUT, 0));
664
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_POINT_SIZE, 11));
665
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_BOLD, 0));
666
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
667
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_VISIBLE, 1));
668
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
669
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_ANGLE, 0));
670
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_WIDTH, 59));
671
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_HEIGHT, 15));
672
//  errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_RAISED, 0));
673
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
674
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_DFLT_VALUE, 0));
675
    errChk(DefaultCtrl (hPanel, P1_L13));
676
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_ON_COLOR, VAL_RED));
677
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_OFF_COLOR, 0XD4D0C8));
678
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_HEIGHT, 12));
679
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_WIDTH, 13));
680
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_TOP, 233));
681
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_LEFT, 510));
682
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_LABEL_SIZE_TO_TEXT, 1));
683
 
684
    // Build control: P1_L12
685
    errChk(P1_L12 = NewCtrl (hPanel, CTRL_ROUND_LED, "emergency stop", 217, 488));
686
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_CONSTANT_NAME, "L12"));
687
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_VISIBLE, 1));
688
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_CALLBACK_FUNCTION_POINTER, 0));
689
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_SHORTCUT_KEY, 0));
690
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_DIMMED, 0));
691
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_TOOLTIP_TEXT, ""));
692
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_TOOLTIP_DELAY, 1000));
693
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_TOOLTIP_HIDE_DELAY, 0));
694
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_DISABLE_CTRL_TOOLTIP, 0));
695
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_CTRL_MODE, VAL_INDICATOR));
696
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_COLOR, VAL_BLACK));
697
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
698
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_ITALIC, 0));
699
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_UNDERLINE, 0));
700
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_STRIKEOUT, 0));
701
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_POINT_SIZE, 11));
702
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_BOLD, 0));
703
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
704
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_VISIBLE, 1));
705
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
706
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_ANGLE, 0));
707
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_WIDTH, 78));
708
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_HEIGHT, 15));
709
//  errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_RAISED, 0));
710
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
711
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_DFLT_VALUE, 0));
712
    errChk(DefaultCtrl (hPanel, P1_L12));
713
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_ON_COLOR, VAL_RED));
714
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_OFF_COLOR, 0XD4D0C8));
715
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_HEIGHT, 12));
716
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_WIDTH, 13));
717
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_TOP, 215));
718
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_LEFT, 510));
719
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_LABEL_SIZE_TO_TEXT, 1));
720
 
721
    // Build control: P1_L11
722
    errChk(P1_L11 = NewCtrl (hPanel, CTRL_ROUND_LED, "local mode", 198, 488));
723
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_CONSTANT_NAME, "L11"));
724
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_VISIBLE, 1));
725
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_CALLBACK_FUNCTION_POINTER, 0));
726
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_SHORTCUT_KEY, 0));
727
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_DIMMED, 0));
728
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_TOOLTIP_TEXT, ""));
729
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_TOOLTIP_DELAY, 1000));
730
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_TOOLTIP_HIDE_DELAY, 0));
731
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_DISABLE_CTRL_TOOLTIP, 0));
732
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_CTRL_MODE, VAL_INDICATOR));
733
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_COLOR, VAL_BLACK));
734
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
735
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_ITALIC, 0));
736
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_UNDERLINE, 0));
737
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_STRIKEOUT, 0));
738
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_POINT_SIZE, 11));
739
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_BOLD, 0));
740
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
741
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_VISIBLE, 1));
742
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
743
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_ANGLE, 0));
744
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_WIDTH, 54));
745
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_HEIGHT, 15));
746
//  errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_RAISED, 0));
747
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
748
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_DFLT_VALUE, 0));
749
    errChk(DefaultCtrl (hPanel, P1_L11));
750
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_ON_COLOR, VAL_RED));
751
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_OFF_COLOR, 0XD4D0C8));
752
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_HEIGHT, 12));
753
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_WIDTH, 13));
754
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_TOP, 196));
755
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_LEFT, 510));
756
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_LABEL_SIZE_TO_TEXT, 1));
757
 
758
    // Build control: P1_L10
759
    errChk(P1_L10 = NewCtrl (hPanel, CTRL_ROUND_LED, "soft limit", 179, 488));
760
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_CONSTANT_NAME, "L10"));
761
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_VISIBLE, 1));
762
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_CALLBACK_FUNCTION_POINTER, 0));
763
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_SHORTCUT_KEY, 0));
764
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_DIMMED, 0));
765
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_TOOLTIP_TEXT, ""));
766
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_TOOLTIP_DELAY, 1000));
767
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_TOOLTIP_HIDE_DELAY, 0));
768
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_DISABLE_CTRL_TOOLTIP, 0));
769
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_CTRL_MODE, VAL_INDICATOR));
770
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_COLOR, VAL_BLACK));
771
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
772
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_ITALIC, 0));
773
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_UNDERLINE, 0));
774
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_STRIKEOUT, 0));
775
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_POINT_SIZE, 11));
776
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_BOLD, 0));
777
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
778
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_VISIBLE, 1));
779
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
780
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_ANGLE, 0));
781
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_WIDTH, 40));
782
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_HEIGHT, 15));
783
//  errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_RAISED, 0));
784
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
785
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_DFLT_VALUE, 0));
786
    errChk(DefaultCtrl (hPanel, P1_L10));
787
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_ON_COLOR, VAL_RED));
788
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_OFF_COLOR, 0XD4D0C8));
789
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_HEIGHT, 12));
790
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_WIDTH, 13));
791
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_TOP, 177));
792
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_LEFT, 510));
793
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_LABEL_SIZE_TO_TEXT, 1));
794
 
795
    // Build control: P1_L9
796
    errChk(P1_L9 = NewCtrl (hPanel, CTRL_ROUND_LED, "disabled", 160, 488));
797
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_CONSTANT_NAME, "L9"));
798
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_VISIBLE, 1));
799
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_CALLBACK_FUNCTION_POINTER, 0));
800
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_SHORTCUT_KEY, 0));
801
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_DIMMED, 0));
802
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_TOOLTIP_TEXT, ""));
803
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_TOOLTIP_DELAY, 1000));
804
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_TOOLTIP_HIDE_DELAY, 0));
805
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_DISABLE_CTRL_TOOLTIP, 0));
806
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_CTRL_MODE, VAL_INDICATOR));
807
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_COLOR, VAL_BLACK));
808
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
809
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_ITALIC, 0));
810
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_UNDERLINE, 0));
811
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_STRIKEOUT, 0));
812
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_POINT_SIZE, 11));
813
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_BOLD, 0));
814
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
815
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_VISIBLE, 1));
816
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
817
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_ANGLE, 0));
818
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_WIDTH, 42));
819
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_HEIGHT, 15));
820
//  errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_RAISED, 0));
821
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
822
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_DFLT_VALUE, 0));
823
    errChk(DefaultCtrl (hPanel, P1_L9));
824
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_ON_COLOR, VAL_RED));
825
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_OFF_COLOR, 0XD4D0C8));
826
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_HEIGHT, 12));
827
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_WIDTH, 13));
828
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_TOP, 158));
829
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_LEFT, 510));
830
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_LABEL_SIZE_TO_TEXT, 1));
831
 
832
    // Build control: P1_L8
833
    errChk(P1_L8 = NewCtrl (hPanel, CTRL_ROUND_LED, "off trajectory", 142, 488));
834
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_CONSTANT_NAME, "L8"));
835
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_VISIBLE, 1));
836
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_CALLBACK_FUNCTION_POINTER, 0));
837
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_SHORTCUT_KEY, 0));
838
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_DIMMED, 0));
839
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_TOOLTIP_TEXT, ""));
840
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_TOOLTIP_DELAY, 1000));
841
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_TOOLTIP_HIDE_DELAY, 0));
842
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_DISABLE_CTRL_TOOLTIP, 0));
843
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_CTRL_MODE, VAL_INDICATOR));
844
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_COLOR, VAL_BLACK));
845
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
846
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_ITALIC, 0));
847
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_UNDERLINE, 0));
848
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_STRIKEOUT, 0));
849
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_POINT_SIZE, 11));
850
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_BOLD, 0));
851
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
852
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_VISIBLE, 1));
853
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
854
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_ANGLE, 0));
855
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_WIDTH, 61));
856
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_HEIGHT, 15));
857
//  errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_RAISED, 0));
858
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
859
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_DFLT_VALUE, 0));
860
    errChk(DefaultCtrl (hPanel, P1_L8));
861
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_ON_COLOR, VAL_RED));
862
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_OFF_COLOR, 0XD4D0C8));
863
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_HEIGHT, 12));
864
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_WIDTH, 13));
865
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_TOP, 140));
866
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_LEFT, 510));
867
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_LABEL_SIZE_TO_TEXT, 1));
868
 
869
    // Build control: P1_L7
870
    errChk(P1_L7 = NewCtrl (hPanel, CTRL_ROUND_LED, "DevNet error", 123, 488));
871
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_CONSTANT_NAME, "L7"));
872
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_VISIBLE, 1));
873
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_CALLBACK_FUNCTION_POINTER, 0));
874
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_SHORTCUT_KEY, 0));
875
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_DIMMED, 0));
876
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_TOOLTIP_TEXT, ""));
877
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_TOOLTIP_DELAY, 1000));
878
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_TOOLTIP_HIDE_DELAY, 0));
879
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_DISABLE_CTRL_TOOLTIP, 0));
880
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_CTRL_MODE, VAL_INDICATOR));
881
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_COLOR, VAL_BLACK));
882
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
883
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_ITALIC, 0));
884
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_UNDERLINE, 0));
885
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_STRIKEOUT, 0));
886
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_POINT_SIZE, 11));
887
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_BOLD, 0));
888
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
889
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_VISIBLE, 1));
890
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
891
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_ANGLE, 0));
892
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_WIDTH, 64));
893
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_HEIGHT, 15));
894
//  errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_RAISED, 0));
895
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
896
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_DFLT_VALUE, 0));
897
    errChk(DefaultCtrl (hPanel, P1_L7));
898
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_ON_COLOR, VAL_RED));
899
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_OFF_COLOR, 0XD4D0C8));
900
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_HEIGHT, 12));
901
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_WIDTH, 13));
902
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_TOP, 121));
903
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_LEFT, 510));
904
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_LABEL_SIZE_TO_TEXT, 1));
905
 
906
    // Build control: P1_L6
907
    errChk(P1_L6 = NewCtrl (hPanel, CTRL_ROUND_LED, "DevNet mode", 104, 488));
908
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_CONSTANT_NAME, "L6"));
909
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_VISIBLE, 1));
910
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_CALLBACK_FUNCTION_POINTER, 0));
911
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_SHORTCUT_KEY, 0));
912
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_DIMMED, 0));
913
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_TOOLTIP_TEXT, ""));
914
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_TOOLTIP_DELAY, 1000));
915
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_TOOLTIP_HIDE_DELAY, 0));
916
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_DISABLE_CTRL_TOOLTIP, 0));
917
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_CTRL_MODE, VAL_INDICATOR));
918
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_COLOR, VAL_BLACK));
919
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
920
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_ITALIC, 0));
921
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_UNDERLINE, 0));
922
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_STRIKEOUT, 0));
923
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_POINT_SIZE, 11));
924
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_BOLD, 0));
925
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
926
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_VISIBLE, 1));
927
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
928
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_ANGLE, 0));
929
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_WIDTH, 69));
930
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_HEIGHT, 15));
931
//  errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_RAISED, 0));
932
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
933
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_DFLT_VALUE, 0));
934
    errChk(DefaultCtrl (hPanel, P1_L6));
935
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_ON_COLOR, VAL_RED));
936
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_OFF_COLOR, 0XD4D0C8));
937
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_HEIGHT, 12));
938
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_WIDTH, 13));
939
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_TOP, 102));
940
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_LEFT, 510));
941
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_LABEL_SIZE_TO_TEXT, 1));
942
 
943
    // Build control: P1_L5
944
    errChk(P1_L5 = NewCtrl (hPanel, CTRL_ROUND_LED, "error", 85, 488));
945
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_CONSTANT_NAME, "L5"));
946
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_VISIBLE, 1));
947
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_CALLBACK_FUNCTION_POINTER, 0));
948
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_SHORTCUT_KEY, 0));
949
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_DIMMED, 0));
950
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_TOOLTIP_TEXT, ""));
951
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_TOOLTIP_DELAY, 1000));
952
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_TOOLTIP_HIDE_DELAY, 0));
953
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_DISABLE_CTRL_TOOLTIP, 0));
954
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_CTRL_MODE, VAL_INDICATOR));
955
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_COLOR, VAL_BLACK));
956
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
957
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_ITALIC, 0));
958
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_UNDERLINE, 0));
959
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_STRIKEOUT, 0));
960
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_POINT_SIZE, 11));
961
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_BOLD, 0));
962
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
963
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_VISIBLE, 1));
964
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
965
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_ANGLE, 0));
966
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_WIDTH, 24));
967
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_HEIGHT, 15));
968
//  errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_RAISED, 0));
969
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
970
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_DFLT_VALUE, 0));
971
    errChk(DefaultCtrl (hPanel, P1_L5));
972
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_ON_COLOR, VAL_RED));
973
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_OFF_COLOR, 0XD4D0C8));
974
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_HEIGHT, 12));
975
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_WIDTH, 13));
976
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_TOP, 83));
977
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_LEFT, 510));
978
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_LABEL_SIZE_TO_TEXT, 1));
979
 
980
    // Build control: P1_L4
981
    errChk(P1_L4 = NewCtrl (hPanel, CTRL_ROUND_LED, "% complete", 67, 488));
982
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_CONSTANT_NAME, "L4"));
983
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_VISIBLE, 1));
984
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_CALLBACK_FUNCTION_POINTER, 0));
985
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_SHORTCUT_KEY, 0));
986
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_DIMMED, 0));
987
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_TOOLTIP_TEXT, ""));
988
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_TOOLTIP_DELAY, 1000));
989
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_TOOLTIP_HIDE_DELAY, 0));
990
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_DISABLE_CTRL_TOOLTIP, 0));
991
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_CTRL_MODE, VAL_INDICATOR));
992
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_COLOR, VAL_BLACK));
993
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
994
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_ITALIC, 0));
995
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_UNDERLINE, 0));
996
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_STRIKEOUT, 0));
997
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_POINT_SIZE, 11));
998
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_BOLD, 0));
999
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1000
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_VISIBLE, 1));
1001
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1002
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_ANGLE, 0));
1003
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_WIDTH, 57));
1004
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_HEIGHT, 15));
1005
//  errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_RAISED, 0));
1006
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1007
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_DFLT_VALUE, 0));
1008
    errChk(DefaultCtrl (hPanel, P1_L4));
1009
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_ON_COLOR, VAL_RED));
1010
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_OFF_COLOR, 0XD4D0C8));
1011
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_HEIGHT, 12));
1012
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_WIDTH, 13));
1013
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_TOP, 65));
1014
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_LEFT, 510));
1015
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_LABEL_SIZE_TO_TEXT, 1));
1016
 
1017
    // Build control: P1_L3
1018
    errChk(P1_L3 = NewCtrl (hPanel, CTRL_ROUND_LED, "velocity mode", 48, 488));
1019
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_CONSTANT_NAME, "L3"));
1020
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_VISIBLE, 1));
1021
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1022
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_SHORTCUT_KEY, 0));
1023
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_DIMMED, 0));
1024
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_TOOLTIP_TEXT, ""));
1025
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_TOOLTIP_DELAY, 1000));
1026
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_TOOLTIP_HIDE_DELAY, 0));
1027
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1028
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_CTRL_MODE, VAL_INDICATOR));
1029
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_COLOR, VAL_BLACK));
1030
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1031
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_ITALIC, 0));
1032
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_UNDERLINE, 0));
1033
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_STRIKEOUT, 0));
1034
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_POINT_SIZE, 11));
1035
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_BOLD, 0));
1036
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1037
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_VISIBLE, 1));
1038
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1039
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_ANGLE, 0));
1040
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_WIDTH, 68));
1041
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_HEIGHT, 15));
1042
//  errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_RAISED, 0));
1043
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1044
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_DFLT_VALUE, 0));
1045
    errChk(DefaultCtrl (hPanel, P1_L3));
1046
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_ON_COLOR, VAL_RED));
1047
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_OFF_COLOR, 0XD4D0C8));
1048
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_HEIGHT, 12));
1049
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_WIDTH, 13));
1050
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_TOP, 46));
1051
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_LEFT, 510));
1052
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_LABEL_SIZE_TO_TEXT, 1));
1053
 
1054
    // Build control: P1_L2
1055
    errChk(P1_L2 = NewCtrl (hPanel, CTRL_ROUND_LED, "in position", 29, 488));
1056
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_CONSTANT_NAME, "L2"));
1057
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_VISIBLE, 1));
1058
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1059
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_SHORTCUT_KEY, 0));
1060
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_DIMMED, 0));
1061
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_TOOLTIP_TEXT, ""));
1062
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_TOOLTIP_DELAY, 1000));
1063
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_TOOLTIP_HIDE_DELAY, 0));
1064
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1065
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_CTRL_MODE, VAL_INDICATOR));
1066
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_COLOR, VAL_BLACK));
1067
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1068
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_ITALIC, 0));
1069
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_UNDERLINE, 0));
1070
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_STRIKEOUT, 0));
1071
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_POINT_SIZE, 11));
1072
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_BOLD, 0));
1073
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1074
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_VISIBLE, 1));
1075
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1076
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_ANGLE, 0));
1077
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_WIDTH, 50));
1078
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_HEIGHT, 15));
1079
//  errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_RAISED, 0));
1080
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1081
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_DFLT_VALUE, 0));
1082
    errChk(DefaultCtrl (hPanel, P1_L2));
1083
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_ON_COLOR, VAL_RED));
1084
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_OFF_COLOR, 0XD4D0C8));
1085
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_HEIGHT, 12));
1086
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_WIDTH, 13));
1087
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_TOP, 27));
1088
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_LEFT, 510));
1089
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_LABEL_SIZE_TO_TEXT, 1));
1090
 
1091
    // Build control: P1_L1
1092
    errChk(P1_L1 = NewCtrl (hPanel, CTRL_ROUND_LED, "move", 11, 488));
1093
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_CONSTANT_NAME, "L1"));
1094
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_VISIBLE, 1));
1095
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1096
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_SHORTCUT_KEY, 0));
1097
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_DIMMED, 0));
1098
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_TOOLTIP_TEXT, ""));
1099
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_TOOLTIP_DELAY, 1000));
1100
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_TOOLTIP_HIDE_DELAY, 0));
1101
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1102
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_CTRL_MODE, VAL_INDICATOR));
1103
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_COLOR, VAL_BLACK));
1104
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1105
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_ITALIC, 0));
1106
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_UNDERLINE, 0));
1107
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_STRIKEOUT, 0));
1108
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_POINT_SIZE, 11));
1109
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_BOLD, 0));
1110
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1111
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_VISIBLE, 1));
1112
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1113
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_ANGLE, 0));
1114
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_WIDTH, 29));
1115
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_HEIGHT, 15));
1116
//  errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_RAISED, 0));
1117
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1118
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_DFLT_VALUE, 0));
1119
    errChk(DefaultCtrl (hPanel, P1_L1));
1120
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_ON_COLOR, VAL_RED));
1121
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_OFF_COLOR, 0XD4D0C8));
1122
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_HEIGHT, 12));
1123
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_WIDTH, 13));
1124
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_TOP, 9));
1125
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_LEFT, 510));
1126
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_LABEL_SIZE_TO_TEXT, 1));
1127
 
1128
    // Build control: P1_B4
1129
    errChk(P1_B4 = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "__STATUS", 323, 509));
1130
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_CONSTANT_NAME, "B4"));
1131
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_VISIBLE, 1));
1132
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1133
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_SHORTCUT_KEY, 0));
1134
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_DIMMED, 0));
1135
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_TOOLTIP_TEXT, ""));
1136
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_TOOLTIP_DELAY, 1000));
1137
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_TOOLTIP_HIDE_DELAY, 0));
1138
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1139
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_CTRL_MODE, VAL_HOT));
1140
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_COLOR, VAL_BLACK));
1141
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1142
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_ITALIC, 0));
1143
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_UNDERLINE, 0));
1144
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_STRIKEOUT, 0));
1145
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_POINT_SIZE, 11));
1146
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_BOLD, 0));
1147
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1148
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_LABEL_VISIBLE, 1));
1149
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_DFLT_VALUE, 0));
1150
    errChk(DefaultCtrl (hPanel, P1_B4));
1151
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
1152
//  errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1153
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_HEIGHT, 26));
1154
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_WIDTH, 66));
1155
 
1156
    // Build control: P1_N3
1157
    errChk(P1_N3 = NewCtrl (hPanel, CTRL_NUMERIC, "node", 55, 315));
1158
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_CONSTANT_NAME, "N3"));
1159
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_VISIBLE, 1));
1160
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_DATA_TYPE, VAL_INTEGER));
1161
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1162
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_SHORTCUT_KEY, 0));
1163
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_DIMMED, 0));
1164
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_FRAME_COLOR, 0XD4D0C8));
1165
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TOOLTIP_TEXT, ""));
1166
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TOOLTIP_DELAY, 1000));
1167
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TOOLTIP_HIDE_DELAY, 0));
1168
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1169
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_CTRL_MODE, VAL_NORMAL));
1170
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_COLOR, VAL_BLACK));
1171
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1172
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_ITALIC, 0));
1173
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_UNDERLINE, 0));
1174
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_STRIKEOUT, 0));
1175
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_POINT_SIZE, 11));
1176
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_BOLD, 0));
1177
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1178
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_VISIBLE, 1));
1179
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1180
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_ANGLE, 0));
1181
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_WIDTH, 27));
1182
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_HEIGHT, 15));
1183
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_RAISED, 0));
1184
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1185
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_COLOR, VAL_BLACK));
1186
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
1187
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_ITALIC, 0));
1188
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_UNDERLINE, 0));
1189
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_STRIKEOUT, 0));
1190
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_POINT_SIZE, 11));
1191
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_BOLD, 0));
1192
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
1193
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_BGCOLOR, VAL_WHITE));
1194
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_MAX_VALUE, 4));
1195
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_MIN_VALUE, 0));
1196
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_INCR_VALUE, 1));
1197
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
1198
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_PRECISION, 0));
1199
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_CHECK_RANGE, VAL_NOTIFY));
1200
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_PADDING, 0));
1201
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_SHOW_RADIX, 0));
1202
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
1203
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
1204
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_DFLT_VALUE, 1));
1205
    errChk(DefaultCtrl (hPanel, P1_N3));
1206
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_SHOW_INCDEC_ARROWS, 1));
1207
//  errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_NO_EDIT_TEXT, 0));
1208
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_WIDTH, 26));
1209
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_TOP, 57));
1210
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_LEFT, 275));
1211
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_LABEL_SIZE_TO_TEXT, 1));
1212
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
1213
//  errChk(DSBindCtrl (hPanel, P1_N3, "", VAL_DS_READ, NULL, NULL));
1214
 
1215
    // Build control: P1_T1
1216
    errChk(P1_T1 = NewCtrl (hPanel, CTRL_TEXT_BOX, "REPLY", 164, 11));
1217
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_CONSTANT_NAME, "T1"));
1218
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_VISIBLE, 1));
1219
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1220
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_SHORTCUT_KEY, 0));
1221
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_DIMMED, 0));
1222
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_FRAME_COLOR, 0XD4D0C8));
1223
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_SCROLL_BARS, VAL_VERT_SCROLL_BAR));
1224
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_SCROLL_BAR_COLOR, 0XD4D0C8));
1225
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_SCROLL_BAR_SIZE, VAL_SMALL_SCROLL_BARS));
1226
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TOOLTIP_TEXT, ""));
1227
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TOOLTIP_DELAY, 1000));
1228
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TOOLTIP_HIDE_DELAY, 0));
1229
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1230
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_CTRL_MODE, VAL_INDICATOR));
1231
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_COLOR, VAL_BLACK));
1232
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1233
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_ITALIC, 0));
1234
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_UNDERLINE, 0));
1235
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_STRIKEOUT, 0));
1236
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_POINT_SIZE, 11));
1237
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_BOLD, 0));
1238
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1239
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_VISIBLE, 1));
1240
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1241
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_ANGLE, 0));
1242
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_WIDTH, 38));
1243
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_HEIGHT, 15));
1244
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_RAISED, 0));
1245
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1246
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_COLOR, VAL_BLACK));
1247
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
1248
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_ITALIC, 0));
1249
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_UNDERLINE, 0));
1250
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_STRIKEOUT, 0));
1251
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_POINT_SIZE, 11));
1252
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_BOLD, 0));
1253
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
1254
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_BGCOLOR, VAL_WHITE));
1255
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_DFLT_VALUE, ""));
1256
    errChk(DefaultCtrl (hPanel, P1_T1));
1257
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_MAX_ENTRY_LENGTH, -1));
1258
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_WRAP_MODE, VAL_LINE_WRAP));
1259
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_ENTER_IS_NEWLINE, 0));
1260
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_FIRST_VISIBLE_LINE, 0));
1261
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_EXTRA_LINES, -1));
1262
// ****WARNING****  Skipped ATTR_VISIBLE_LINES = 6
1263
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_NO_EDIT_TEXT, 0));
1264
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_HEIGHT, 84));
1265
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_WIDTH, 289));
1266
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_TOP, 143));
1267
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_LEFT, 11));
1268
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_LABEL_SIZE_TO_TEXT, 1));
1269
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
1270
//  errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_HSCROLL_OFFSET, 0));
1271
//  errChk(DSBindCtrl (hPanel, P1_T1, "", VAL_DS_READ, NULL, NULL));
1272
 
1273
    // Build control: P1_BF
1274
    errChk(P1_BF = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, ">", 330, 153));
1275
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_CONSTANT_NAME, "BF"));
1276
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_VISIBLE, 1));
1277
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1278
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_SHORTCUT_KEY, 0));
1279
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_DIMMED, 0));
1280
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_TOOLTIP_TEXT, ""));
1281
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_TOOLTIP_DELAY, 1000));
1282
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_TOOLTIP_HIDE_DELAY, 0));
1283
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1284
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_CTRL_MODE, VAL_HOT));
1285
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_COLOR, VAL_BLACK));
1286
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1287
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_ITALIC, 0));
1288
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_UNDERLINE, 0));
1289
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_STRIKEOUT, 0));
1290
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_POINT_SIZE, 11));
1291
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_BOLD, 0));
1292
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1293
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_LABEL_VISIBLE, 1));
1294
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_DFLT_VALUE, 0));
1295
    errChk(DefaultCtrl (hPanel, P1_BF));
1296
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
1297
//  errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1298
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_HEIGHT, 26));
1299
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_WIDTH, 24));
1300
 
1301
    // Build control: P1_BD
1302
    errChk(P1_BD = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "<", 301, 66));
1303
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_CONSTANT_NAME, "BD"));
1304
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_VISIBLE, 1));
1305
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1306
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_SHORTCUT_KEY, 0));
1307
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_DIMMED, 0));
1308
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_TOOLTIP_TEXT, ""));
1309
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_TOOLTIP_DELAY, 1000));
1310
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_TOOLTIP_HIDE_DELAY, 0));
1311
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1312
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_CTRL_MODE, VAL_HOT));
1313
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_COLOR, VAL_BLACK));
1314
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1315
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_ITALIC, 0));
1316
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_UNDERLINE, 0));
1317
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_STRIKEOUT, 0));
1318
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_POINT_SIZE, 11));
1319
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_BOLD, 0));
1320
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1321
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_LABEL_VISIBLE, 1));
1322
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_DFLT_VALUE, 0));
1323
    errChk(DefaultCtrl (hPanel, P1_BD));
1324
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
1325
//  errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1326
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_HEIGHT, 26));
1327
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_WIDTH, 24));
1328
 
1329
    // Build control: P1_BB
1330
    errChk(P1_BB = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "<", 330, 66));
1331
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_CONSTANT_NAME, "BB"));
1332
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_VISIBLE, 1));
1333
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1334
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_SHORTCUT_KEY, 0));
1335
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_DIMMED, 0));
1336
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_TOOLTIP_TEXT, ""));
1337
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_TOOLTIP_DELAY, 1000));
1338
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_TOOLTIP_HIDE_DELAY, 0));
1339
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1340
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_CTRL_MODE, VAL_HOT));
1341
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_COLOR, VAL_BLACK));
1342
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1343
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_ITALIC, 0));
1344
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_UNDERLINE, 0));
1345
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_STRIKEOUT, 0));
1346
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_POINT_SIZE, 11));
1347
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_BOLD, 0));
1348
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1349
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_LABEL_VISIBLE, 1));
1350
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_DFLT_VALUE, 0));
1351
    errChk(DefaultCtrl (hPanel, P1_BB));
1352
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
1353
//  errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1354
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_HEIGHT, 26));
1355
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_WIDTH, 24));
1356
 
1357
    // Build control: P1_BR
1358
    errChk(P1_BR = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, ">", 274, 153));
1359
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_CONSTANT_NAME, "BR"));
1360
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_VISIBLE, 1));
1361
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1362
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_SHORTCUT_KEY, 0));
1363
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_DIMMED, 0));
1364
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_TOOLTIP_TEXT, ""));
1365
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_TOOLTIP_DELAY, 1000));
1366
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_TOOLTIP_HIDE_DELAY, 0));
1367
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1368
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_CTRL_MODE, VAL_HOT));
1369
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_COLOR, VAL_BLACK));
1370
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1371
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_ITALIC, 0));
1372
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_UNDERLINE, 0));
1373
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_STRIKEOUT, 0));
1374
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_POINT_SIZE, 11));
1375
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_BOLD, 0));
1376
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1377
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_LABEL_VISIBLE, 1));
1378
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_DFLT_VALUE, 0));
1379
    errChk(DefaultCtrl (hPanel, P1_BR));
1380
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
1381
//  errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1382
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_HEIGHT, 26));
1383
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_WIDTH, 24));
1384
 
1385
    // Build control: P1_BU
1386
    errChk(P1_BU = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, ">", 302, 152));
1387
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_CONSTANT_NAME, "BU"));
1388
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_VISIBLE, 1));
1389
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1390
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_SHORTCUT_KEY, 0));
1391
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_DIMMED, 0));
1392
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_TOOLTIP_TEXT, ""));
1393
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_TOOLTIP_DELAY, 1000));
1394
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_TOOLTIP_HIDE_DELAY, 0));
1395
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1396
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_CTRL_MODE, VAL_HOT));
1397
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_COLOR, VAL_BLACK));
1398
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1399
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_ITALIC, 0));
1400
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_UNDERLINE, 0));
1401
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_STRIKEOUT, 0));
1402
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_POINT_SIZE, 11));
1403
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_BOLD, 0));
1404
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1405
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_LABEL_VISIBLE, 1));
1406
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_DFLT_VALUE, 0));
1407
    errChk(DefaultCtrl (hPanel, P1_BU));
1408
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
1409
//  errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1410
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_HEIGHT, 26));
1411
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_WIDTH, 24));
1412
 
1413
    // Build control: P1_BL
1414
    errChk(P1_BL = NewCtrl (hPanel, CTRL_SQUARE_COMMAND_BUTTON, "<", 274, 66));
1415
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_CONSTANT_NAME, "BL"));
1416
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_VISIBLE, 1));
1417
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1418
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_SHORTCUT_KEY, 0));
1419
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_DIMMED, 0));
1420
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_TOOLTIP_TEXT, ""));
1421
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_TOOLTIP_DELAY, 1000));
1422
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_TOOLTIP_HIDE_DELAY, 0));
1423
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1424
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_CTRL_MODE, VAL_HOT));
1425
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_COLOR, VAL_BLACK));
1426
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1427
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_ITALIC, 0));
1428
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_UNDERLINE, 0));
1429
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_STRIKEOUT, 0));
1430
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_POINT_SIZE, 11));
1431
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_BOLD, 0));
1432
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1433
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_LABEL_VISIBLE, 1));
1434
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_DFLT_VALUE, 0));
1435
    errChk(DefaultCtrl (hPanel, P1_BL));
1436
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_CMD_BUTTON_COLOR, 0XECE9D8));
1437
//  errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1438
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_HEIGHT, 26));
1439
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_WIDTH, 24));
1440
 
1441
    // Build control: P1_XG
1442
    errChk(P1_XG = NewCtrl (hPanel, CTRL_NUMERIC, "", 277, 196));
1443
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_CONSTANT_NAME, "XG"));
1444
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_VISIBLE, 1));
1445
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_DATA_TYPE, VAL_INTEGER));
1446
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1447
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_SHORTCUT_KEY, 0));
1448
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_DIMMED, 0));
1449
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_FRAME_COLOR, 0XD4D0C8));
1450
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TOOLTIP_TEXT, ""));
1451
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TOOLTIP_DELAY, 1000));
1452
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TOOLTIP_HIDE_DELAY, 0));
1453
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1454
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_CTRL_MODE, VAL_NORMAL));
1455
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_COLOR, VAL_BLACK));
1456
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1457
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_ITALIC, 0));
1458
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_UNDERLINE, 0));
1459
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_STRIKEOUT, 0));
1460
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_POINT_SIZE, 11));
1461
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_BOLD, 0));
1462
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1463
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_VISIBLE, 1));
1464
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1465
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_ANGLE, 0));
1466
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_WIDTH, 9));
1467
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_HEIGHT, 15));
1468
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_RAISED, 0));
1469
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1470
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_COLOR, VAL_BLACK));
1471
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
1472
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_ITALIC, 0));
1473
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_UNDERLINE, 0));
1474
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_STRIKEOUT, 0));
1475
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_POINT_SIZE, 11));
1476
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_BOLD, 0));
1477
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
1478
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_BGCOLOR, VAL_WHITE));
1479
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_MAX_VALUE, 2147483647));
1480
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_MIN_VALUE, -2147483648));
1481
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_INCR_VALUE, 1));
1482
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
1483
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_PRECISION, 0));
1484
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_CHECK_RANGE, VAL_NOTIFY));
1485
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_PADDING, 0));
1486
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_SHOW_RADIX, 0));
1487
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
1488
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
1489
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_DFLT_VALUE, 50000));
1490
    errChk(DefaultCtrl (hPanel, P1_XG));
1491
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_SHOW_INCDEC_ARROWS, 0));
1492
//  errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_NO_EDIT_TEXT, 0));
1493
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_WIDTH, 53));
1494
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_TOP, 278));
1495
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_LEFT, 171));
1496
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_LABEL_SIZE_TO_TEXT, 1));
1497
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
1498
//  errChk(DSBindCtrl (hPanel, P1_XG, "", VAL_DS_READ, NULL, NULL));
1499
 
1500
    // Build control: P1_ZG
1501
    errChk(P1_ZG = NewCtrl (hPanel, CTRL_NUMERIC, "", 331, 194));
1502
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_CONSTANT_NAME, "ZG"));
1503
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_VISIBLE, 1));
1504
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_DATA_TYPE, VAL_INTEGER));
1505
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1506
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_SHORTCUT_KEY, 0));
1507
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_DIMMED, 0));
1508
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_FRAME_COLOR, 0XD4D0C8));
1509
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TOOLTIP_TEXT, ""));
1510
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TOOLTIP_DELAY, 1000));
1511
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TOOLTIP_HIDE_DELAY, 0));
1512
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1513
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_CTRL_MODE, VAL_NORMAL));
1514
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_COLOR, VAL_BLACK));
1515
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1516
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_ITALIC, 0));
1517
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_UNDERLINE, 0));
1518
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_STRIKEOUT, 0));
1519
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_POINT_SIZE, 11));
1520
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_BOLD, 0));
1521
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1522
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_VISIBLE, 1));
1523
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1524
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_ANGLE, 0));
1525
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_WIDTH, 9));
1526
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_HEIGHT, 15));
1527
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_RAISED, 0));
1528
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1529
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_COLOR, VAL_BLACK));
1530
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
1531
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_ITALIC, 0));
1532
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_UNDERLINE, 0));
1533
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_STRIKEOUT, 0));
1534
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_POINT_SIZE, 11));
1535
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_BOLD, 0));
1536
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
1537
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_BGCOLOR, VAL_WHITE));
1538
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_MAX_VALUE, 2147483647));
1539
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_MIN_VALUE, -2147483648));
1540
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_INCR_VALUE, 1));
1541
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
1542
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_PRECISION, 0));
1543
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_CHECK_RANGE, VAL_NOTIFY));
1544
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_PADDING, 0));
1545
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_SHOW_RADIX, 0));
1546
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
1547
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
1548
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_DFLT_VALUE, 50000));
1549
    errChk(DefaultCtrl (hPanel, P1_ZG));
1550
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_SHOW_INCDEC_ARROWS, 0));
1551
//  errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_NO_EDIT_TEXT, 0));
1552
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_WIDTH, 54));
1553
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_TOP, 330));
1554
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_LEFT, 168));
1555
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_LABEL_SIZE_TO_TEXT, 1));
1556
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
1557
//  errChk(DSBindCtrl (hPanel, P1_ZG, "", VAL_DS_READ, NULL, NULL));
1558
 
1559
    // Build control: P1_ZP
1560
    errChk(P1_ZP = NewCtrl (hPanel, CTRL_NUMERIC, "Z", 332, 94));
1561
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_CONSTANT_NAME, "ZP"));
1562
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_VISIBLE, 1));
1563
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_DATA_TYPE, VAL_INTEGER));
1564
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1565
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_SHORTCUT_KEY, 0));
1566
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_DIMMED, 0));
1567
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_FRAME_COLOR, 0XD4D0C8));
1568
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TOOLTIP_TEXT, ""));
1569
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TOOLTIP_DELAY, 1000));
1570
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TOOLTIP_HIDE_DELAY, 0));
1571
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1572
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_CTRL_MODE, VAL_INDICATOR));
1573
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_COLOR, VAL_BLACK));
1574
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1575
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_ITALIC, 0));
1576
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_UNDERLINE, 0));
1577
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_STRIKEOUT, 0));
1578
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_POINT_SIZE, 11));
1579
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_BOLD, 0));
1580
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1581
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_VISIBLE, 1));
1582
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1583
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_ANGLE, 0));
1584
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_WIDTH, 10));
1585
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_HEIGHT, 15));
1586
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_RAISED, 0));
1587
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1588
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_COLOR, VAL_BLACK));
1589
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
1590
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_ITALIC, 0));
1591
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_UNDERLINE, 0));
1592
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_STRIKEOUT, 0));
1593
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_POINT_SIZE, 11));
1594
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_BOLD, 0));
1595
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
1596
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_BGCOLOR, VAL_WHITE));
1597
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_MAX_VALUE, 2147483647));
1598
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_MIN_VALUE, -2147483648));
1599
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_INCR_VALUE, 1));
1600
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
1601
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_PRECISION, 0));
1602
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_CHECK_RANGE, VAL_NOTIFY));
1603
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_PADDING, 0));
1604
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_SHOW_RADIX, 0));
1605
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
1606
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
1607
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_DFLT_VALUE, 0));
1608
    errChk(DefaultCtrl (hPanel, P1_ZP));
1609
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_SHOW_INCDEC_ARROWS, 1));
1610
//  errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_NO_EDIT_TEXT, 0));
1611
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_WIDTH, 54));
1612
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_TOP, 333));
1613
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_LEFT, 31));
1614
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_LABEL_SIZE_TO_TEXT, 1));
1615
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
1616
//  errChk(DSBindCtrl (hPanel, P1_ZP, "", VAL_DS_READ, NULL, NULL));
1617
 
1618
    // Build control: P1_YG
1619
    errChk(P1_YG = NewCtrl (hPanel, CTRL_NUMERIC, "", 304, 194));
1620
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_CONSTANT_NAME, "YG"));
1621
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_VISIBLE, 1));
1622
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_DATA_TYPE, VAL_INTEGER));
1623
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1624
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_SHORTCUT_KEY, 0));
1625
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_DIMMED, 0));
1626
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_FRAME_COLOR, 0XD4D0C8));
1627
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TOOLTIP_TEXT, ""));
1628
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TOOLTIP_DELAY, 1000));
1629
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TOOLTIP_HIDE_DELAY, 0));
1630
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1631
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_CTRL_MODE, VAL_NORMAL));
1632
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_COLOR, VAL_BLACK));
1633
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1634
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_ITALIC, 0));
1635
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_UNDERLINE, 0));
1636
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_STRIKEOUT, 0));
1637
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_POINT_SIZE, 11));
1638
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_BOLD, 0));
1639
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1640
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_VISIBLE, 1));
1641
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1642
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_ANGLE, 0));
1643
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_WIDTH, 9));
1644
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_HEIGHT, 15));
1645
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_RAISED, 0));
1646
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1647
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_COLOR, VAL_BLACK));
1648
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
1649
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_ITALIC, 0));
1650
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_UNDERLINE, 0));
1651
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_STRIKEOUT, 0));
1652
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_POINT_SIZE, 11));
1653
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_BOLD, 0));
1654
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
1655
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_BGCOLOR, VAL_WHITE));
1656
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_MAX_VALUE, 2147483647));
1657
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_MIN_VALUE, -2147483648));
1658
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_INCR_VALUE, 1));
1659
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
1660
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_PRECISION, 0));
1661
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_CHECK_RANGE, VAL_NOTIFY));
1662
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_PADDING, 0));
1663
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_SHOW_RADIX, 0));
1664
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
1665
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
1666
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_DFLT_VALUE, 50000));
1667
    errChk(DefaultCtrl (hPanel, P1_YG));
1668
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_SHOW_INCDEC_ARROWS, 0));
1669
//  errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_NO_EDIT_TEXT, 0));
1670
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_WIDTH, 54));
1671
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_TOP, 305));
1672
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_LEFT, 169));
1673
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_LABEL_SIZE_TO_TEXT, 1));
1674
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_TEXT_JUSTIFY, VAL_RIGHT_JUSTIFIED));
1675
//  errChk(DSBindCtrl (hPanel, P1_YG, "", VAL_DS_READ, NULL, NULL));
1676
 
1677
    // Build control: P1_XP
1678
    errChk(P1_XP = NewCtrl (hPanel, CTRL_NUMERIC, "X", 276, 95));
1679
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_CONSTANT_NAME, "XP"));
1680
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_VISIBLE, 1));
1681
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_DATA_TYPE, VAL_INTEGER));
1682
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1683
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_SHORTCUT_KEY, 0));
1684
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_DIMMED, 0));
1685
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_FRAME_COLOR, 0XD4D0C8));
1686
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TOOLTIP_TEXT, ""));
1687
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TOOLTIP_DELAY, 1000));
1688
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TOOLTIP_HIDE_DELAY, 0));
1689
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1690
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_CTRL_MODE, VAL_INDICATOR));
1691
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_COLOR, VAL_BLACK));
1692
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1693
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_ITALIC, 0));
1694
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_UNDERLINE, 0));
1695
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_STRIKEOUT, 0));
1696
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_POINT_SIZE, 11));
1697
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_BOLD, 0));
1698
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1699
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_VISIBLE, 1));
1700
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1701
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_ANGLE, 0));
1702
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_WIDTH, 10));
1703
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_HEIGHT, 15));
1704
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_RAISED, 0));
1705
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1706
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_COLOR, VAL_BLACK));
1707
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
1708
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_ITALIC, 0));
1709
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_UNDERLINE, 0));
1710
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_STRIKEOUT, 0));
1711
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_POINT_SIZE, 11));
1712
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_BOLD, 0));
1713
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
1714
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_BGCOLOR, VAL_WHITE));
1715
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_MAX_VALUE, 2147483647));
1716
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_MIN_VALUE, -2147483648));
1717
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_INCR_VALUE, 1));
1718
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
1719
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_PRECISION, 0));
1720
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_CHECK_RANGE, VAL_NOTIFY));
1721
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_PADDING, 0));
1722
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_SHOW_RADIX, 0));
1723
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
1724
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
1725
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_DFLT_VALUE, 0));
1726
    errChk(DefaultCtrl (hPanel, P1_XP));
1727
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_SHOW_INCDEC_ARROWS, 1));
1728
//  errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_NO_EDIT_TEXT, 0));
1729
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_WIDTH, 53));
1730
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_TOP, 278));
1731
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_LEFT, 29));
1732
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_LABEL_SIZE_TO_TEXT, 1));
1733
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
1734
//  errChk(DSBindCtrl (hPanel, P1_XP, "", VAL_DS_READ, NULL, NULL));
1735
 
1736
    // Build control: P1_YP
1737
    errChk(P1_YP = NewCtrl (hPanel, CTRL_NUMERIC, "Y", 304, 94));
1738
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_CONSTANT_NAME, "YP"));
1739
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_VISIBLE, 1));
1740
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_DATA_TYPE, VAL_INTEGER));
1741
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1742
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_SHORTCUT_KEY, 0));
1743
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_DIMMED, 0));
1744
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_FRAME_COLOR, 0XD4D0C8));
1745
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TOOLTIP_TEXT, ""));
1746
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TOOLTIP_DELAY, 1000));
1747
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TOOLTIP_HIDE_DELAY, 0));
1748
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1749
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_CTRL_MODE, VAL_INDICATOR));
1750
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_COLOR, VAL_BLACK));
1751
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1752
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_ITALIC, 0));
1753
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_UNDERLINE, 0));
1754
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_STRIKEOUT, 0));
1755
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_POINT_SIZE, 11));
1756
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_BOLD, 0));
1757
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1758
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_VISIBLE, 1));
1759
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1760
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_ANGLE, 0));
1761
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_WIDTH, 10));
1762
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_HEIGHT, 15));
1763
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_RAISED, 0));
1764
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1765
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_COLOR, VAL_BLACK));
1766
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
1767
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_ITALIC, 0));
1768
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_UNDERLINE, 0));
1769
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_STRIKEOUT, 0));
1770
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_POINT_SIZE, 11));
1771
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_BOLD, 0));
1772
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
1773
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_BGCOLOR, VAL_WHITE));
1774
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_MAX_VALUE, 2147483647));
1775
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_MIN_VALUE, -2147483648));
1776
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_INCR_VALUE, 1));
1777
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
1778
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_PRECISION, 0));
1779
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_CHECK_RANGE, VAL_NOTIFY));
1780
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_PADDING, 0));
1781
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_SHOW_RADIX, 0));
1782
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
1783
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
1784
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_DFLT_VALUE, 0));
1785
    errChk(DefaultCtrl (hPanel, P1_YP));
1786
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_SHOW_INCDEC_ARROWS, 1));
1787
//  errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_NO_EDIT_TEXT, 0));
1788
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_WIDTH, 54));
1789
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_TOP, 305));
1790
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_LEFT, 31));
1791
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_LABEL_SIZE_TO_TEXT, 1));
1792
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
1793
//  errChk(DSBindCtrl (hPanel, P1_YP, "", VAL_DS_READ, NULL, NULL));
1794
 
1795
    // Build control: P1_GZ
1796
    errChk(P1_GZ = NewCtrl (hPanel, CTRL_ROUND_COMMAND_BUTTON, "GO z", 330, 262));
1797
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_CONSTANT_NAME, "GZ"));
1798
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_VISIBLE, 1));
1799
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1800
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_SHORTCUT_KEY, 0));
1801
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_DIMMED, 0));
1802
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_TOOLTIP_TEXT, ""));
1803
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_TOOLTIP_DELAY, 1000));
1804
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_TOOLTIP_HIDE_DELAY, 0));
1805
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1806
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_CTRL_MODE, VAL_HOT));
1807
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_COLOR, VAL_BLACK));
1808
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1809
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_ITALIC, 0));
1810
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_UNDERLINE, 0));
1811
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_STRIKEOUT, 0));
1812
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_POINT_SIZE, 11));
1813
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_BOLD, 0));
1814
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1815
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_LABEL_VISIBLE, 1));
1816
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_DFLT_VALUE, 0));
1817
    errChk(DefaultCtrl (hPanel, P1_GZ));
1818
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
1819
//  errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1820
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_HEIGHT, 26));
1821
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_WIDTH, 40));
1822
 
1823
    // Build control: P1_GY
1824
    errChk(P1_GY = NewCtrl (hPanel, CTRL_ROUND_COMMAND_BUTTON, "GO y", 300, 262));
1825
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_CONSTANT_NAME, "GY"));
1826
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_VISIBLE, 1));
1827
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1828
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_SHORTCUT_KEY, 0));
1829
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_DIMMED, 0));
1830
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_TOOLTIP_TEXT, ""));
1831
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_TOOLTIP_DELAY, 1000));
1832
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_TOOLTIP_HIDE_DELAY, 0));
1833
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1834
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_CTRL_MODE, VAL_HOT));
1835
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_COLOR, VAL_BLACK));
1836
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1837
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_ITALIC, 0));
1838
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_UNDERLINE, 0));
1839
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_STRIKEOUT, 0));
1840
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_POINT_SIZE, 11));
1841
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_BOLD, 0));
1842
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1843
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_LABEL_VISIBLE, 1));
1844
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_DFLT_VALUE, 0));
1845
    errChk(DefaultCtrl (hPanel, P1_GY));
1846
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
1847
//  errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1848
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_HEIGHT, 26));
1849
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_WIDTH, 41));
1850
 
1851
    // Build control: P1_GX
1852
    errChk(P1_GX = NewCtrl (hPanel, CTRL_ROUND_COMMAND_BUTTON, "GO x", 273, 262));
1853
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_CONSTANT_NAME, "GX"));
1854
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_VISIBLE, 1));
1855
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1856
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_SHORTCUT_KEY, 0));
1857
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_DIMMED, 0));
1858
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_TOOLTIP_TEXT, ""));
1859
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_TOOLTIP_DELAY, 1000));
1860
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_TOOLTIP_HIDE_DELAY, 0));
1861
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1862
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_CTRL_MODE, VAL_HOT));
1863
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_COLOR, VAL_BLACK));
1864
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1865
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_ITALIC, 0));
1866
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_UNDERLINE, 0));
1867
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_STRIKEOUT, 0));
1868
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_POINT_SIZE, 11));
1869
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_BOLD, 0));
1870
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1871
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_LABEL_VISIBLE, 1));
1872
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_DFLT_VALUE, 0));
1873
    errChk(DefaultCtrl (hPanel, P1_GX));
1874
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
1875
//  errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1876
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_HEIGHT, 26));
1877
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_WIDTH, 40));
1878
 
1879
    // Build control: P1_G
1880
    errChk(P1_G = NewCtrl (hPanel, CTRL_ROUND_COMMAND_BUTTON, "GO", 329, 316));
1881
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_CONSTANT_NAME, "G"));
1882
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_VISIBLE, 1));
1883
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1884
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_SHORTCUT_KEY, 0));
1885
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_DIMMED, 0));
1886
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_TOOLTIP_TEXT, ""));
1887
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_TOOLTIP_DELAY, 1000));
1888
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_TOOLTIP_HIDE_DELAY, 0));
1889
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1890
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_CTRL_MODE, VAL_HOT));
1891
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_COLOR, VAL_BLACK));
1892
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1893
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_ITALIC, 0));
1894
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_UNDERLINE, 0));
1895
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_STRIKEOUT, 0));
1896
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_POINT_SIZE, 11));
1897
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_BOLD, 0));
1898
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1899
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_LABEL_VISIBLE, 1));
1900
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_DFLT_VALUE, 0));
1901
    errChk(DefaultCtrl (hPanel, P1_G));
1902
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
1903
//  errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1904
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_HEIGHT, 26));
1905
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_WIDTH, 31));
1906
 
1907
    // Build control: P1_P
1908
    errChk(P1_P = NewCtrl (hPanel, CTRL_ROUND_COMMAND_BUTTON, "Current Position", 358, 75));
1909
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_CONSTANT_NAME, "P"));
1910
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_VISIBLE, 1));
1911
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1912
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_SHORTCUT_KEY, 0));
1913
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_DIMMED, 0));
1914
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_TOOLTIP_TEXT, ""));
1915
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_TOOLTIP_DELAY, 1000));
1916
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_TOOLTIP_HIDE_DELAY, 0));
1917
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1918
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_CTRL_MODE, VAL_HOT));
1919
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_COLOR, VAL_BLACK));
1920
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1921
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_ITALIC, 0));
1922
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_UNDERLINE, 0));
1923
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_STRIKEOUT, 0));
1924
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_POINT_SIZE, 11));
1925
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_BOLD, 0));
1926
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1927
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_LABEL_VISIBLE, 1));
1928
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_DFLT_VALUE, 0));
1929
    errChk(DefaultCtrl (hPanel, P1_P));
1930
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_CMD_BUTTON_COLOR, 0XD4D0C8));
1931
//  errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_AUTO_SIZING, VAL_GROW_ONLY));
1932
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_HEIGHT, 26));
1933
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_WIDTH, 104));
1934
 
1935
    // Build control: P1_PORT
1936
    errChk(P1_PORT = NewCtrl (hPanel, CTRL_NUMERIC, "COM Port", 12, 81));
1937
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CONSTANT_NAME, "PORT"));
1938
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_VISIBLE, 1));
1939
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DATA_TYPE, VAL_SHORT_INTEGER));
1940
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CALLBACK_FUNCTION_POINTER, 0));
1941
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHORTCUT_KEY, 0));
1942
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DIMMED, 0));
1943
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_FRAME_COLOR, 0XEBE9ED));
1944
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TOOLTIP_TEXT, ""));
1945
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TOOLTIP_DELAY, 1000));
1946
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TOOLTIP_HIDE_DELAY, 0));
1947
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DISABLE_CTRL_TOOLTIP, 0));
1948
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CTRL_MODE, VAL_NORMAL));
1949
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_COLOR, VAL_BLACK));
1950
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
1951
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_ITALIC, 0));
1952
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_UNDERLINE, 0));
1953
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_STRIKEOUT, 0));
1954
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_POINT_SIZE, 11));
1955
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_BOLD, 0));
1956
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
1957
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_VISIBLE, 1));
1958
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
1959
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_ANGLE, 0));
1960
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_WIDTH, 49));
1961
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_HEIGHT, 15));
1962
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_RAISED, 0));
1963
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
1964
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_COLOR, VAL_BLACK));
1965
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
1966
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_ITALIC, 0));
1967
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_UNDERLINE, 0));
1968
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_STRIKEOUT, 0));
1969
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_POINT_SIZE, 11));
1970
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_BOLD, 0));
1971
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
1972
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_BGCOLOR, VAL_WHITE));
1973
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_MAX_VALUE, 8));
1974
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_MIN_VALUE, 1));
1975
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_INCR_VALUE, 1));
1976
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_FORMAT, VAL_DECIMAL_FORMAT));
1977
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_PRECISION, 0));
1978
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CHECK_RANGE, VAL_NOTIFY));
1979
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_PADDING, 0));
1980
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHOW_RADIX, 0));
1981
// ****WARNING****  Skipped ATTR_DISABLE_RADIX = False
1982
// ****WARNING****  Skipped ATTR_INCDEC_WIDTH = 9
133 f9daq 1983
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_DFLT_VALUE, 3));
120 f9daq 1984
    errChk(DefaultCtrl (hPanel, P1_PORT));
1985
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_SHOW_INCDEC_ARROWS, 1));
1986
//  errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_NO_EDIT_TEXT, 0));
1987
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_WIDTH, 30));
1988
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_TOP, 14));
1989
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_LEFT, 14));
1990
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_LABEL_SIZE_TO_TEXT, 1));
1991
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
1992
//  errChk(DSBindCtrl (hPanel, P1_PORT, "", VAL_DS_READ, NULL, NULL));
1993
 
1994
    // Build control: P1_STAGETYPE
1995
    errChk(P1_STAGETYPE = NewCtrl (hPanel, CTRL_LIST, "STAGE TYPE:", 35, 349));
1996
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CONSTANT_NAME, "STAGETYPE"));
1997
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_VISIBLE, 1));
1998
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_DATA_TYPE, VAL_INTEGER));
1999
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CALLBACK_FUNCTION_POINTER, 0));
2000
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_SHORTCUT_KEY, 0));
2001
    errChk(InsertListItem (hPanel, P1_STAGETYPE, 0, "use EPROM parameters", 0));
2002
    errChk(InsertListItem (hPanel, P1_STAGETYPE, 1, "10mm3MLinear", 1));
2003
    errChk(InsertListItem (hPanel, P1_STAGETYPE, 2, "10mm3MRotary", 2));
2004
    errChk(InsertListItem (hPanel, P1_STAGETYPE, 3, "13mm4MLinear", 3));
2005
    errChk(InsertListItem (hPanel, P1_STAGETYPE, 4, "13mm4MRotary", 4));
2006
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_DIMMED, 0));
2007
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_FRAME_COLOR, 0XEBE9ED));
2008
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_SCROLL_BARS, VAL_VERT_SCROLL_BAR));
2009
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_SCROLL_BAR_COLOR, 0XEBE9ED));
2010
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_SCROLL_BAR_SIZE, VAL_LARGE_SCROLL_BARS));
2011
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TOOLTIP_TEXT, ""));
2012
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TOOLTIP_DELAY, 1000));
2013
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TOOLTIP_HIDE_DELAY, 0));
2014
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_DISABLE_CTRL_TOOLTIP, 0));
2015
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CTRL_MODE, VAL_HOT));
2016
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_COLOR, VAL_BLACK));
2017
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
2018
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_ITALIC, 0));
2019
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_UNDERLINE, 0));
2020
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_STRIKEOUT, 0));
2021
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_POINT_SIZE, 11));
2022
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_BOLD, 0));
2023
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
2024
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_VISIBLE, 1));
2025
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
2026
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_ANGLE, 0));
2027
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_WIDTH, 73));
2028
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_HEIGHT, 15));
2029
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_RAISED, 0));
2030
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
2031
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_COLOR, VAL_BLACK));
2032
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
2033
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_ITALIC, 0));
2034
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_UNDERLINE, 0));
2035
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_STRIKEOUT, 0));
2036
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_POINT_SIZE, 11));
2037
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_BOLD, 0));
2038
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
2039
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_BGCOLOR, VAL_WHITE));
2040
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_DFLT_INDEX, 0));
2041
    errChk(DefaultCtrl (hPanel, P1_STAGETYPE));
2042
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CHECK_MODE, 0));
2043
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CHECK_STYLE, VAL_CHECK_MARK));
2044
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_TEXT_CLICK_TOGGLES_CHECK, 1));
2045
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_DRAGGABLE_MARKS, 0));
2046
//  errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_ALLOW_ROOM_FOR_IMAGES, 0));
2047
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_HEIGHT, 56));
2048
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_WIDTH, 109));
2049
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_TOP, 17));
2050
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_LEFT, 352));
2051
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_LABEL_SIZE_TO_TEXT, 1));
2052
 
2053
    // Build control: P1_COMLED
2054
    errChk(P1_COMLED = NewCtrl (hPanel, CTRL_ROUND_LED_LS, "", 11, 117));
2055
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_CONSTANT_NAME, "COMLED"));
2056
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_VISIBLE, 1));
2057
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_CALLBACK_FUNCTION_POINTER, 0));
2058
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_SHORTCUT_KEY, 0));
2059
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_DIMMED, 0));
2060
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_TOOLTIP_TEXT, ""));
2061
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_TOOLTIP_DELAY, 1000));
2062
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_TOOLTIP_HIDE_DELAY, 0));
2063
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_DISABLE_CTRL_TOOLTIP, 0));
2064
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_CTRL_MODE, VAL_INDICATOR));
2065
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_COLOR, VAL_BLACK));
2066
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_FONT, VAL_DIALOG_META_FONT));
2067
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_ITALIC, 0));
2068
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_UNDERLINE, 0));
2069
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_STRIKEOUT, 0));
2070
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_POINT_SIZE, 11));
2071
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_BOLD, 0));
2072
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_CHARACTER_SET, VAL_NATIVE_CHARSET));
2073
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_VISIBLE, 1));
2074
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_JUSTIFY, VAL_LEFT_JUSTIFIED));
2075
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_ANGLE, 0));
2076
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_WIDTH, 9));
2077
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_HEIGHT, 15));
2078
//  errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_RAISED, 0));
2079
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_BGCOLOR, VAL_LT_GRAY));
2080
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_DFLT_VALUE, 0));
2081
    errChk(DefaultCtrl (hPanel, P1_COMLED));
2082
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_ON_COLOR, 0X009900));
2083
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_OFF_COLOR, 0XCC0000));
2084
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_HEIGHT, 21));
2085
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_WIDTH, 21));
2086
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_TOP, -10));
2087
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_LEFT, 90));
2088
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_LABEL_SIZE_TO_TEXT, 1));
2089
 
2090
    // Build control: P1_TEXTMSG
2091
    errChk(P1_TEXTMSG = NewCtrl (hPanel, CTRL_TEXT_MSG, "", 358, 188));
2092
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_CONSTANT_NAME, "TEXTMSG"));
2093
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_VISIBLE, 1));
2094
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_CALLBACK_FUNCTION_POINTER, 0));
2095
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_SHORTCUT_KEY, 0));
2096
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_DIMMED, 0));
2097
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TOOLTIP_TEXT, ""));
2098
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TOOLTIP_DELAY, 1000));
2099
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TOOLTIP_HIDE_DELAY, 0));
2100
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_DISABLE_CTRL_TOOLTIP, 0));
2101
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_CTRL_MODE, VAL_INDICATOR));
2102
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_COLOR, VAL_BLACK));
2103
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_FONT, VAL_DIALOG_META_FONT));
2104
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_ITALIC, 0));
2105
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_UNDERLINE, 0));
2106
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_STRIKEOUT, 0));
2107
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_POINT_SIZE, 11));
2108
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_BOLD, 0));
2109
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_CHARACTER_SET, VAL_NATIVE_CHARSET));
2110
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_ANGLE, 0));
2111
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_BGCOLOR, VAL_LT_GRAY));
2112
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_DFLT_VALUE, "Absolute Position"));
2113
    errChk(DefaultCtrl (hPanel, P1_TEXTMSG));
2114
//  errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_RAISED, 0));
2115
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_HEIGHT, 15));
2116
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_WIDTH, 84));
2117
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_SIZE_TO_TEXT, 1));
2118
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_TEXT_JUSTIFY, VAL_LEFT_JUSTIFIED));
2119
//  errChk(DSBindCtrl (hPanel, P1_TEXTMSG, "", VAL_DS_READ, NULL, NULL));
2120
 
2121
    // Build control: P1_DECORATION
2122
    errChk(P1_DECORATION = NewCtrl (hPanel, CTRL_FLAT_BOX, "", 9, 257));
2123
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_CONSTANT_NAME, "DECORATION"));
2124
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_VISIBLE, 1));
2125
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_CALLBACK_FUNCTION_POINTER, 0));
2126
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_SHORTCUT_KEY, 0));
2127
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_DIMMED, 0));
2128
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_FRAME_COLOR, 0XEBE9ED));
2129
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_TOOLTIP_TEXT, ""));
2130
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_TOOLTIP_DELAY, 1000));
2131
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_TOOLTIP_HIDE_DELAY, 0));
2132
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_DISABLE_CTRL_TOOLTIP, 0));
2133
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_CTRL_MODE, VAL_INDICATOR));
2134
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_HEIGHT, 106));
2135
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_WIDTH, 212));
2136
 
2137
    // Build control: P1_DECORATION_2
2138
    errChk(P1_DECORATION_2 = NewCtrl (hPanel, CTRL_FLAT_BOX, "", 3, 479));
2139
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_CONSTANT_NAME, "DECORATION_2"));
2140
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_VISIBLE, 1));
2141
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_CALLBACK_FUNCTION_POINTER, 0));
2142
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_SHORTCUT_KEY, 0));
2143
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_DIMMED, 0));
2144
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_FRAME_COLOR, 0XEBE9ED));
2145
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_TOOLTIP_TEXT, ""));
2146
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_TOOLTIP_DELAY, 1000));
2147
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_TOOLTIP_HIDE_DELAY, 0));
2148
//  errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_DISABLE_CTRL_TOOLTIP, 0));
2149
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_CTRL_MODE, VAL_INDICATOR));
2150
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_HEIGHT, 356));
2151
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_WIDTH, 113));
2152
 
2153
    // Set up ZPLANE order if necessary
2154
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_ZPLANE_POSITION, 0));
2155
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_ZPLANE_POSITION, 1));
2156
    errChk(SetCtrlAttribute (hPanel, P1_TEXTMSG, ATTR_ZPLANE_POSITION, 2));
2157
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_ZPLANE_POSITION, 3));
2158
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_ZPLANE_POSITION, 4));
2159
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_ZPLANE_POSITION, 5));
2160
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_ZPLANE_POSITION, 6));
2161
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_ZPLANE_POSITION, 7));
2162
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_ZPLANE_POSITION, 8));
2163
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_ZPLANE_POSITION, 9));
2164
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_ZPLANE_POSITION, 10));
2165
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_ZPLANE_POSITION, 11));
2166
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_ZPLANE_POSITION, 12));
2167
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_ZPLANE_POSITION, 13));
2168
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_ZPLANE_POSITION, 14));
2169
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_ZPLANE_POSITION, 15));
2170
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_ZPLANE_POSITION, 16));
2171
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_ZPLANE_POSITION, 17));
2172
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_ZPLANE_POSITION, 18));
2173
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_ZPLANE_POSITION, 19));
2174
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_ZPLANE_POSITION, 20));
2175
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_ZPLANE_POSITION, 21));
2176
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_ZPLANE_POSITION, 22));
2177
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_ZPLANE_POSITION, 23));
2178
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_ZPLANE_POSITION, 24));
2179
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_ZPLANE_POSITION, 25));
2180
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_ZPLANE_POSITION, 26));
2181
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_ZPLANE_POSITION, 27));
2182
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_ZPLANE_POSITION, 28));
2183
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_ZPLANE_POSITION, 29));
2184
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_ZPLANE_POSITION, 30));
2185
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_ZPLANE_POSITION, 31));
2186
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_ZPLANE_POSITION, 32));
2187
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_ZPLANE_POSITION, 33));
2188
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_ZPLANE_POSITION, 34));
2189
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_ZPLANE_POSITION, 35));
2190
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_ZPLANE_POSITION, 36));
2191
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_ZPLANE_POSITION, 37));
2192
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_ZPLANE_POSITION, 38));
2193
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_ZPLANE_POSITION, 39));
2194
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_ZPLANE_POSITION, 40));
2195
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_ZPLANE_POSITION, 41));
2196
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_ZPLANE_POSITION, 42));
2197
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_ZPLANE_POSITION, 43));
2198
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_ZPLANE_POSITION, 44));
2199
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_ZPLANE_POSITION, 45));
2200
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_ZPLANE_POSITION, 46));
2201
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_ZPLANE_POSITION, 47));
2202
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_ZPLANE_POSITION, 48));
2203
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION, ATTR_ZPLANE_POSITION, 49));
2204
    errChk(SetCtrlAttribute (hPanel, P1_DECORATION_2, ATTR_ZPLANE_POSITION, 50));
2205
 
2206
    // Set up TAB order if necessary
2207
    errChk(SetCtrlAttribute (hPanel, P1_S2, ATTR_CTRL_TAB_POSITION, 0));
2208
    errChk(SetCtrlAttribute (hPanel, P1_S1, ATTR_CTRL_TAB_POSITION, 1));
2209
    errChk(SetCtrlAttribute (hPanel, P1_B1, ATTR_CTRL_TAB_POSITION, 2));
2210
    errChk(SetCtrlAttribute (hPanel, P1_B2, ATTR_CTRL_TAB_POSITION, 3));
2211
    errChk(SetCtrlAttribute (hPanel, P1_EN, ATTR_CTRL_TAB_POSITION, 4));
2212
    errChk(SetCtrlAttribute (hPanel, P1_HO, ATTR_CTRL_TAB_POSITION, 5));
2213
    errChk(SetCtrlAttribute (hPanel, P1_B3, ATTR_CTRL_TAB_POSITION, 6));
2214
    errChk(SetCtrlAttribute (hPanel, P1_N2, ATTR_CTRL_TAB_POSITION, 7));
2215
    errChk(SetCtrlAttribute (hPanel, P1_N1, ATTR_CTRL_TAB_POSITION, 8));
2216
    errChk(SetCtrlAttribute (hPanel, P1_L16, ATTR_CTRL_TAB_POSITION, 9));
2217
    errChk(SetCtrlAttribute (hPanel, P1_L15, ATTR_CTRL_TAB_POSITION, 10));
2218
    errChk(SetCtrlAttribute (hPanel, P1_L14, ATTR_CTRL_TAB_POSITION, 11));
2219
    errChk(SetCtrlAttribute (hPanel, P1_L13, ATTR_CTRL_TAB_POSITION, 12));
2220
    errChk(SetCtrlAttribute (hPanel, P1_L12, ATTR_CTRL_TAB_POSITION, 13));
2221
    errChk(SetCtrlAttribute (hPanel, P1_L11, ATTR_CTRL_TAB_POSITION, 14));
2222
    errChk(SetCtrlAttribute (hPanel, P1_L10, ATTR_CTRL_TAB_POSITION, 15));
2223
    errChk(SetCtrlAttribute (hPanel, P1_L9, ATTR_CTRL_TAB_POSITION, 16));
2224
    errChk(SetCtrlAttribute (hPanel, P1_L8, ATTR_CTRL_TAB_POSITION, 17));
2225
    errChk(SetCtrlAttribute (hPanel, P1_L7, ATTR_CTRL_TAB_POSITION, 18));
2226
    errChk(SetCtrlAttribute (hPanel, P1_L6, ATTR_CTRL_TAB_POSITION, 19));
2227
    errChk(SetCtrlAttribute (hPanel, P1_L5, ATTR_CTRL_TAB_POSITION, 20));
2228
    errChk(SetCtrlAttribute (hPanel, P1_L4, ATTR_CTRL_TAB_POSITION, 21));
2229
    errChk(SetCtrlAttribute (hPanel, P1_L3, ATTR_CTRL_TAB_POSITION, 22));
2230
    errChk(SetCtrlAttribute (hPanel, P1_L2, ATTR_CTRL_TAB_POSITION, 23));
2231
    errChk(SetCtrlAttribute (hPanel, P1_L1, ATTR_CTRL_TAB_POSITION, 24));
2232
    errChk(SetCtrlAttribute (hPanel, P1_B4, ATTR_CTRL_TAB_POSITION, 25));
2233
    errChk(SetCtrlAttribute (hPanel, P1_N3, ATTR_CTRL_TAB_POSITION, 26));
2234
    errChk(SetCtrlAttribute (hPanel, P1_T1, ATTR_CTRL_TAB_POSITION, 27));
2235
    errChk(SetCtrlAttribute (hPanel, P1_BF, ATTR_CTRL_TAB_POSITION, 28));
2236
    errChk(SetCtrlAttribute (hPanel, P1_BD, ATTR_CTRL_TAB_POSITION, 29));
2237
    errChk(SetCtrlAttribute (hPanel, P1_BB, ATTR_CTRL_TAB_POSITION, 30));
2238
    errChk(SetCtrlAttribute (hPanel, P1_BR, ATTR_CTRL_TAB_POSITION, 31));
2239
    errChk(SetCtrlAttribute (hPanel, P1_BU, ATTR_CTRL_TAB_POSITION, 32));
2240
    errChk(SetCtrlAttribute (hPanel, P1_BL, ATTR_CTRL_TAB_POSITION, 33));
2241
    errChk(SetCtrlAttribute (hPanel, P1_XG, ATTR_CTRL_TAB_POSITION, 34));
2242
    errChk(SetCtrlAttribute (hPanel, P1_ZG, ATTR_CTRL_TAB_POSITION, 35));
2243
    errChk(SetCtrlAttribute (hPanel, P1_ZP, ATTR_CTRL_TAB_POSITION, 36));
2244
    errChk(SetCtrlAttribute (hPanel, P1_YG, ATTR_CTRL_TAB_POSITION, 37));
2245
    errChk(SetCtrlAttribute (hPanel, P1_XP, ATTR_CTRL_TAB_POSITION, 38));
2246
    errChk(SetCtrlAttribute (hPanel, P1_YP, ATTR_CTRL_TAB_POSITION, 39));
2247
    errChk(SetCtrlAttribute (hPanel, P1_GZ, ATTR_CTRL_TAB_POSITION, 40));
2248
    errChk(SetCtrlAttribute (hPanel, P1_GY, ATTR_CTRL_TAB_POSITION, 41));
2249
    errChk(SetCtrlAttribute (hPanel, P1_GX, ATTR_CTRL_TAB_POSITION, 42));
2250
    errChk(SetCtrlAttribute (hPanel, P1_G, ATTR_CTRL_TAB_POSITION, 43));
2251
    errChk(SetCtrlAttribute (hPanel, P1_P, ATTR_CTRL_TAB_POSITION, 44));
2252
    errChk(SetCtrlAttribute (hPanel, P1_PORT, ATTR_CTRL_TAB_POSITION, 45));
2253
    errChk(SetCtrlAttribute (hPanel, P1_STAGETYPE, ATTR_CTRL_TAB_POSITION, 46));
2254
    errChk(SetCtrlAttribute (hPanel, P1_COMLED, ATTR_CTRL_TAB_POSITION, 47));
2255
 
2256
    // Set up splitter attachments if necessary
2257
 
2258
    // Finalize panel colors, positioning, and sizing
2259
    errChk(SetPanelAttribute (hPanel, ATTR_CONFORM_TO_SYSTEM, 0));
2260
    errChk(SetPanelAttribute (hPanel, ATTR_CONFORM_TO_SYSTEM_THEME, 0));
2261
    errChk(SetPanelAttribute (hPanel, ATTR_SCALE_CONTENTS_ON_RESIZE, 1));
2262
    errChk(GetSystemAttribute (ATTR_RESOLUTION_ADJUSTMENT, &resAdjustment));
2263
    if (resAdjustment == VAL_USE_PANEL_SETTING)
2264
        resAdjustment = 0;
2265
    if (resAdjustment)
2266
        {
2267
        errChk(GetMonitorFromPanel (hPanel, &monitorId));
2268
        errChk(GetMonitorAttribute (monitorId, ATTR_HEIGHT, &screenHeight));
2269
        errChk(GetMonitorAttribute (monitorId, ATTR_WIDTH, &screenWidth));
133 f9daq 2270
        SFv = (((float)screenHeight/1040)-1)*0.01*resAdjustment+1;
120 f9daq 2271
        errChk(SetPanelAttribute (hPanel, ATTR_HEIGHT, (int)(387*SFv)));
2272
        SFh = (((float)screenWidth/1920)-1)*0.01*resAdjustment+1;
2273
        errChk(SetPanelAttribute (hPanel, ATTR_WIDTH, (int)(606*SFh)));
2274
        errChk(SetPanelAttribute (hPanel, ATTR_TOP, (int)(28*SFv)));
2275
        errChk(SetPanelAttribute (hPanel, ATTR_LEFT, (int)(13*SFh)));
2276
        }
2277
    errChk(SetPanelAttribute (hPanel, ATTR_SCALE_CONTENTS_ON_RESIZE, 0));
2278
 
2279
    //We're done!
2280
    return hPanel;
2281
Error:
2282
    if (bitmapId)
2283
        DiscardBitmap (bitmapId);
2284
    return error;
2285
}