1 /*******************************************************************************/
2 /*  This file is auto-generated by Azure RTOS GUIX Studio. Do not edit this    */
3 /*  file by hand. Modifications to this file should only be made by running    */
4 /*  the Azure RTOS GUIX Studio application and re-generating the application   */
5 /*  specification file(s). For more information please refer to the Azure RTOS */
6 /*  GUIX Studio User Guide, or visit our web site at azure.com/rtos            */
7 /*                                                                             */
8 /*  GUIX Studio Revision 6.2.0.1                                               */
9 /*  Date (dd.mm.yyyy): 31.10.2022   Time (hh:mm): 14:09                        */
10 /*******************************************************************************/
11 
12 
13 #define GUIX_STUDIO_GENERATED_FILE
14 #include <stddef.h>
15 #include "folder_output_test_MAIN_DISPLAY_resources.h"
16 #include "folder_output_test_SECONDARY_resources.h"
17 #include "folder_output_test_specifications.h"
18 
19 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
20 MAIN_DISPLAY_POPUP_MODAL_DERIVED_DERIVED_1_CONTROL_BLOCK MAIN_DISPLAY_popup_modal_derived_derived_1;
21 MAIN_DISPLAY_BASE_DERIVED_1_CONTROL_BLOCK MAIN_DISPLAY_base_derived_1;
22 MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK MAIN_DISPLAY_window_screen;
23 MAIN_DISPLAY_CHILD_TEMPLATE_SCREEN_CONTROL_BLOCK MAIN_DISPLAY_child_template_screen;
24 MAIN_DISPLAY_ROTATE_SCREEN_CONTROL_BLOCK MAIN_DISPLAY_rotate_screen;
25 MAIN_DISPLAY_GAUGE_SCREEN_CONTROL_BLOCK MAIN_DISPLAY_gauge_screen;
26 MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK MAIN_DISPLAY_text_screen;
27 MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK MAIN_DISPLAY_button_screen;
28 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_scroll_wheel_screen_define;
29 SECONDARY_ROTATE_SCREEN_CONTROL_BLOCK SECONDARY_rotate_screen;
30 SECONDARY_GAUGE_SCREEN_CONTROL_BLOCK SECONDARY_gauge_screen;
31 SECONDARY_TEXT_SCREEN_CONTROL_BLOCK SECONDARY_text_screen;
32 SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK SECONDARY_window_screen;
33 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_define;
34 GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_derived_derived_define;
35 GX_CONST GX_STUDIO_WIDGET SECONDARY_scroll_wheel_screen_define;
36 GX_DISPLAY MAIN_DISPLAY_control_block;
37 GX_WINDOW_ROOT MAIN_DISPLAY_root_window;
38 GX_CANVAS  MAIN_DISPLAY_canvas_control_block;
39 ULONG      MAIN_DISPLAY_canvas_memory[307200];
40 
41 GX_DISPLAY SECONDARY_control_block;
42 GX_WINDOW_ROOT SECONDARY_root_window;
43 GX_CANVAS  SECONDARY_canvas_control_block;
44 ULONG      SECONDARY_canvas_memory[307200];
45 
46 extern GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_1_define;
47 extern MAIN_DISPLAY_POPUP_MODAL_DERIVED_1_CONTROL_BLOCK MAIN_DISPLAY_popup_modal_derived_1;
48 extern GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_menu_screen_define;
49 extern MAIN_DISPLAY_MENU_SCREEN_CONTROL_BLOCK MAIN_DISPLAY_menu_screen;
50 extern GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_sprite_screen_define;
51 extern MAIN_DISPLAY_SPRITE_SCREEN_CONTROL_BLOCK MAIN_DISPLAY_sprite_screen;
52 extern GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_indicator_screen_define;
53 extern GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_derived_define;
54 extern GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_define;
55 extern GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_derived_1_define;
56 extern SECONDARY_POPUP_MODAL_DERIVED_1_CONTROL_BLOCK SECONDARY_popup_modal_derived_1;
57 extern GX_CONST GX_STUDIO_WIDGET SECONDARY_sprite_screen_define;
58 extern SECONDARY_SPRITE_SCREEN_CONTROL_BLOCK SECONDARY_sprite_screen;
59 extern GX_CONST GX_STUDIO_WIDGET SECONDARY_menu_screen_define;
60 extern SECONDARY_MENU_SCREEN_CONTROL_BLOCK SECONDARY_menu_screen;
61 extern GX_CONST GX_STUDIO_WIDGET SECONDARY_button_screen_define;
62 extern SECONDARY_BUTTON_SCREEN_CONTROL_BLOCK SECONDARY_button_screen;
63 extern GX_CONST GX_THEME *MAIN_DISPLAY_theme_table[];
64 extern GX_CONST GX_STRING *MAIN_DISPLAY_language_table[];
65 extern GX_CONST GX_THEME *SECONDARY_theme_table[];
66 extern GX_CONST GX_STRING *SECONDARY_language_table[];
67 
68 GX_STUDIO_DISPLAY_INFO folder_output_test_display_table[2] =
69 {
70     {
71     "MAIN_DISPLAY",
72     "MAIN_DISPLAY_canvas",
73     MAIN_DISPLAY_theme_table,
74     MAIN_DISPLAY_language_table,
75     MAIN_DISPLAY_THEME_TABLE_SIZE,
76     MAIN_DISPLAY_LANGUAGE_TABLE_SIZE,
77     MAIN_DISPLAY_STRING_TABLE_SIZE,
78     640,                                     /* x resolution                   */
79     480,                                     /* y resolution                   */
80     &MAIN_DISPLAY_control_block,
81     &MAIN_DISPLAY_canvas_control_block,
82     &MAIN_DISPLAY_root_window,
83     MAIN_DISPLAY_canvas_memory,              /* canvas memory area             */
84     1228800,                                 /* canvas memory size in bytes    */
85     0                                        /* rotation angle                 */
86     },
87     {
88     "SECONDARY",
89     "SECONDARY_canvas",
90     SECONDARY_theme_table,
91     SECONDARY_language_table,
92     SECONDARY_THEME_TABLE_SIZE,
93     SECONDARY_LANGUAGE_TABLE_SIZE,
94     SECONDARY_STRING_TABLE_SIZE,
95     640,                                     /* x resolution                   */
96     480,                                     /* y resolution                   */
97     &SECONDARY_control_block,
98     &SECONDARY_canvas_control_block,
99     &SECONDARY_root_window,
100     SECONDARY_canvas_memory,                 /* canvas memory area             */
101     1228800,                                 /* canvas memory size in bytes    */
102     0                                        /* rotation angle                 */
103     }
104 };
105 
gx_studio_screen_toggle(GX_WIDGET * target1,GX_WIDGET * target2)106 static VOID gx_studio_screen_toggle(GX_WIDGET *target1, GX_WIDGET *target2)
107 {
108     GX_WIDGET *parent = target1->gx_widget_parent;
109     if (parent)
110     {
111         gx_widget_detach(target1);
112         gx_widget_attach(parent, target2);
113         if (target1->gx_widget_status & GX_STATUS_STUDIO_CREATED)
114         {
115             gx_widget_delete(target1);
116         }
117     }
118 }
119 
gx_studio_action_target_get(GX_WIDGET * current,GX_CONST GX_STUDIO_ACTION * action)120 static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
121 {
122     GX_WIDGET *parent = GX_NULL;
123     GX_WIDGET *target = GX_NULL;
124     INT        search_depth;
125     GX_STUDIO_WIDGET *widget_define;
126 
127     if (action->flags & GX_ACTION_FLAG_DYNAMIC_TARGET)
128     {
129                                              /* dynamically create the target widget */
130         widget_define = (GX_STUDIO_WIDGET *) action->target;
131         if(action->flags & GX_ACTION_FLAG_DYNAMIC_PARENT)
132         {
133             gx_window_root_find(current, (GX_WINDOW_ROOT **)&parent);
134             search_depth = GX_SEARCH_DEPTH_INFINITE;
135         }
136         else
137         {
138             parent = (GX_WIDGET *)action->parent;
139             search_depth = 1;
140         }
141         gx_widget_find(parent, widget_define->widget_id, search_depth, &target);
142         if (target == GX_NULL)
143         {
144             target = gx_studio_widget_create(GX_NULL, widget_define, GX_NULL);
145         }
146         if (target)
147         {
148             target->gx_widget_status |= GX_STATUS_STUDIO_CREATED;
149         }
150     }
151     else
152     {
153         target = (GX_WIDGET *) action->target;
154     }
155     return target;
156 }
157 
gx_studio_action_target_find(GX_WIDGET * current,GX_CONST GX_STUDIO_ACTION * action)158 static GX_WIDGET *gx_studio_action_target_find(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
159 {
160     GX_WIDGET *parent = GX_NULL;
161     GX_WIDGET *target = GX_NULL;
162     GX_STUDIO_WIDGET *widget_define;
163 
164     if (action->flags & GX_ACTION_FLAG_DYNAMIC_TARGET)
165     {
166                                              /* Find the dynamically created target */
167         widget_define = (GX_STUDIO_WIDGET *) action->target;
168         if(action->flags & GX_ACTION_FLAG_DYNAMIC_PARENT)
169         {
170             gx_window_root_find(current, (GX_WINDOW_ROOT **)&parent);
171         }
172         else
173         {
174             parent = (GX_WIDGET *)action->parent;
175         }
176         gx_widget_find(parent, widget_define->widget_id, GX_SEARCH_DEPTH_INFINITE, &target);
177     }
178     else
179     {
180         target = (GX_WIDGET *) action->target;
181     }
182     return target;
183 }
184 
gx_studio_action_parent_find(GX_WIDGET * current,GX_CONST GX_STUDIO_ACTION * action)185 static GX_WIDGET *gx_studio_action_parent_find(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
186 {
187 GX_WIDGET *parent = GX_NULL;
188 GX_STUDIO_WIDGET *widget_define;
189 
190     if (action->flags & GX_ACTION_FLAG_DYNAMIC_PARENT)
191     {
192                                              /* Find the dynamically created target */
193         widget_define = (GX_STUDIO_WIDGET *)action->parent;
194         gx_window_root_find(current, (GX_WINDOW_ROOT **)&parent);
195         gx_widget_find(parent, widget_define->widget_id, GX_SEARCH_DEPTH_INFINITE, &parent);
196     }
197     else
198     {
199         parent = (GX_WIDGET *)action->parent;
200     }
201     return parent;
202 }
203 
gx_studio_animation_execute(GX_WIDGET * current,GX_CONST GX_STUDIO_ACTION * action)204 static VOID gx_studio_animation_execute(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
205 {
206     GX_ANIMATION *animation;
207     GX_ANIMATION_INFO animation_info;
208     GX_WIDGET *parent = GX_NULL;
209     GX_WIDGET *target = GX_NULL;
210     gx_system_animation_get(&animation);
211     if (animation)
212     {
213         animation_info = *action->animation;
214 
215         if((action->flags & GX_ACTION_FLAG_POP_TARGET) ||
216            (action->flags & GX_ACTION_FLAG_POP_PARENT))
217         {
218             gx_system_screen_stack_get((GX_WIDGET **)&parent, &target);
219         }
220 
221         if(action->flags & GX_ACTION_FLAG_POP_TARGET)
222         {
223             animation_info.gx_animation_target = target;
224         }
225 
226         if(action->flags & GX_ACTION_FLAG_POP_PARENT)
227         {
228             animation_info.gx_animation_parent = (GX_WIDGET *)parent;
229         }
230 
231         if ((!animation_info.gx_animation_target) &&
232             (action->flags & GX_ACTION_FLAG_DYNAMIC_TARGET))
233         {
234             target = gx_studio_action_target_get(current, action);
235             animation_info.gx_animation_target = target;
236         }
237 
238         if (!animation_info.gx_animation_parent)
239         {
240             animation_info.gx_animation_parent = gx_studio_action_parent_find(current, action);
241         }
242 
243         if (animation_info.gx_animation_target &&
244             animation_info.gx_animation_parent)
245         {
246             gx_animation_start(animation, &animation_info);
247         }
248     }
249 }
250 
gx_studio_auto_event_handler(GX_WIDGET * widget,GX_EVENT * event_ptr,GX_CONST GX_STUDIO_EVENT_PROCESS * record)251 UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CONST GX_STUDIO_EVENT_PROCESS *record)
252 {
253     UINT status = GX_SUCCESS;
254     GX_CONST GX_STUDIO_ACTION *action;
255     GX_CONST GX_WIDGET *parent = GX_NULL;
256     GX_WIDGET *target = GX_NULL;
257     GX_CONST GX_STUDIO_EVENT_ENTRY *entry = record->event_table;
258 
259     while(entry->event_type)
260     {
261         if (entry->event_type == event_ptr->gx_event_type)
262         {
263             if((entry->event_type == GX_EVENT_ANIMATION_COMPLETE) &&
264                (entry->event_sender != event_ptr->gx_event_sender))
265             {
266                 entry++;
267                 continue;
268             }
269             action = entry->action_list;
270 
271             while(action->opcode)
272             {
273                 switch(action->opcode)
274                 {
275                 case GX_ACTION_TYPE_ATTACH:
276                     if((action->flags & GX_ACTION_FLAG_POP_TARGET) ||
277                        (action->flags & GX_ACTION_FLAG_POP_PARENT))
278                     {
279                         gx_system_screen_stack_get((GX_WIDGET **)&parent, &target);
280                     }
281 
282                     if(!(action->flags & GX_ACTION_FLAG_POP_PARENT))
283                     {
284                         parent = action->parent;
285                     }
286                     if(!(action->flags & GX_ACTION_FLAG_POP_TARGET))
287                     {
288                         target = gx_studio_action_target_get(widget, action);
289                     }
290                     if (parent && target)
291                     {
292                         gx_widget_attach(parent, target);
293                     }
294                     break;
295 
296                 case GX_ACTION_TYPE_DETACH:
297                     target = gx_studio_action_target_find(widget, action);
298                     if (target)
299                     {
300                         gx_widget_detach(target);
301                         if (target->gx_widget_status & GX_STATUS_STUDIO_CREATED)
302                         {
303                             gx_widget_delete(target);
304                         }
305                     }
306                     break;
307 
308                 case GX_ACTION_TYPE_TOGGLE:
309                     if(action->flags & GX_ACTION_FLAG_POP_TARGET)
310                     {
311                        gx_system_screen_stack_get(GX_NULL, &target);
312                     }
313                     else
314                     {
315                         target = gx_studio_action_target_get(widget, action);
316                     }
317                     gx_studio_screen_toggle(widget, target);
318                     break;
319 
320                 case GX_ACTION_TYPE_SHOW:
321                     target = gx_studio_action_target_get(widget, action);
322                     if(target)
323                     {
324                         gx_widget_show(target);
325                     }
326                     break;
327 
328                 case GX_ACTION_TYPE_HIDE:
329                     target = gx_studio_action_target_find(widget, action);
330                     if(target)
331                     {
332                         gx_widget_hide(target);
333                     }
334                     break;
335 
336                 case GX_ACTION_TYPE_ANIMATION:
337                     gx_studio_animation_execute(widget, action);
338                     break;
339 
340                 case GX_ACTION_TYPE_WINDOW_EXECUTE:
341                     if((action->flags & GX_ACTION_FLAG_POP_TARGET) ||
342                        (action->flags & GX_ACTION_FLAG_POP_PARENT))
343                     {
344                         gx_system_screen_stack_get((GX_WIDGET **)&parent, &target);
345                     }
346 
347                     if(!(action->flags & GX_ACTION_FLAG_POP_PARENT))
348                     {
349                         parent = widget->gx_widget_parent;
350                     }
351                     if(!(action->flags & GX_ACTION_FLAG_POP_TARGET))
352                     {
353                         target = gx_studio_action_target_get(widget, action);
354                     }
355                     if (parent && target)
356                     {
357                         gx_widget_attach(parent, target);
358                         gx_window_execute((GX_WINDOW *) target, GX_NULL);
359                     }
360                     break;
361 
362                 case GX_ACTION_TYPE_WINDOW_EXECUTE_STOP:
363                     return event_ptr->gx_event_sender;
364 
365                 case GX_ACTION_TYPE_SCREEN_STACK_PUSH:
366                     target = gx_studio_action_target_get(widget, action);
367                     if(target)
368                     {
369                         gx_system_screen_stack_push(target);
370                     }
371                     break;
372 
373                 case GX_ACTION_TYPE_SCREEN_STACK_POP:
374                     gx_system_screen_stack_pop();
375                     break;
376 
377                 case GX_ACTION_TYPE_SCREEN_STACK_RESET:
378                     gx_system_screen_stack_reset();
379                     break;
380 
381                 default:
382                     break;
383                 }
384                 action++;
385             }
386         }
387         entry++;
388     }
389 
390     if (record->chain_event_handler)
391     {
392         status = record->chain_event_handler(widget, event_ptr);
393     }
394     return status;
395 }
396 
397 
gx_studio_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)398 UINT gx_studio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
399 {
400     UINT status;
401     GX_BUTTON *button = (GX_BUTTON *) control_block;
402     status = gx_button_create(button, info->widget_name, parent, info->style, info->widget_id, &info->size);
403     return status;
404 }
405 
gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)406 UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
407 {
408     UINT status;
409     GX_TEXT_BUTTON *button = (GX_TEXT_BUTTON *) control_block;
410     GX_TEXT_BUTTON_PROPERTIES *props = (GX_TEXT_BUTTON_PROPERTIES *) info->properties;
411     status = gx_text_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
412     if (status == GX_SUCCESS)
413     {
414         gx_text_button_font_set(button, props->font_id);
415 #if defined(GUIX_5_4_0_COMPATIBILITY)
416         gx_text_button_text_color_set(button, props->normal_text_color_id, props->selected_text_color_id);
417 #else
418         gx_text_button_text_color_set(button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
419 #endif
420     }
421     return status;
422 }
423 
gx_studio_multi_line_text_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)424 UINT gx_studio_multi_line_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
425 {
426     UINT status;
427     GX_MULTI_LINE_TEXT_BUTTON *button = (GX_MULTI_LINE_TEXT_BUTTON *) control_block;
428     GX_ML_TEXT_BUTTON_PROPERTIES *props = (GX_ML_TEXT_BUTTON_PROPERTIES *) info->properties;
429     status = gx_multi_line_text_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
430     if (status == GX_SUCCESS)
431     {
432         gx_text_button_font_set((GX_TEXT_BUTTON *) button, props->font_id);
433 #if defined(GUIX_5_4_0_COMPATIBILITY)
434         gx_text_button_text_color_set((GX_TEXT_BUTTON *) button, props->normal_text_color_id, props->selected_text_color_id);
435 #else
436         gx_text_button_text_color_set((GX_TEXT_BUTTON *) button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
437 #endif
438     }
439     return status;
440 }
441 
gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)442 UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
443 {
444     UINT status;
445     GX_CHECKBOX *button = (GX_CHECKBOX *) control_block;
446     GX_TEXT_BUTTON *text_button = (GX_TEXT_BUTTON *) button;
447     GX_CHECKBOX_PROPERTIES *props = (GX_CHECKBOX_PROPERTIES *) info->properties;
448     status = gx_checkbox_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
449     if (status == GX_SUCCESS)
450     {
451         gx_text_button_font_set(text_button, props->font_id);
452 #if defined(GUIX_5_4_0_COMPATIBILITY)
453         gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id);
454  #else
455         gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
456 #endif
457 
458         if (props->unchecked_pixelmap_id ||
459             props->checked_pixelmap_id ||
460             props->unchecked_disabled_pixelmap_id ||
461             props->checked_disabled_pixelmap_id)
462         {
463             gx_checkbox_pixelmap_set(button,
464                                      props->unchecked_pixelmap_id,
465                                      props->checked_pixelmap_id,
466                                      props->unchecked_disabled_pixelmap_id,
467                                      props->checked_disabled_pixelmap_id);
468         }
469     }
470     return status;
471 }
472 
gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)473 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
474 {
475     UINT status;
476     GX_RADIO_BUTTON *button = (GX_RADIO_BUTTON *) control_block;
477     GX_TEXT_BUTTON *text_button = (GX_TEXT_BUTTON *) button;
478     GX_RADIO_BUTTON_PROPERTIES *props = (GX_RADIO_BUTTON_PROPERTIES *) info->properties;
479     status = gx_radio_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
480     if (status == GX_SUCCESS)
481     {
482         gx_text_button_font_set(text_button, props->font_id);
483 #if defined(GUIX_5_4_0_COMPATIBILITY)
484         gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id);
485 #else
486         gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
487 #endif
488 
489         if (props->off_pixelmap_id ||
490             props->on_pixelmap_id ||
491             props->off_disabled_pixelmap_id ||
492             props->on_disabled_pixelmap_id)
493         {
494             gx_radio_button_pixelmap_set(button,
495                                      props->off_pixelmap_id,
496                                      props->on_pixelmap_id,
497                                      props->off_disabled_pixelmap_id,
498                                      props->on_disabled_pixelmap_id);
499         }
500     }
501     return status;
502 }
503 
gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)504 UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
505 {
506     UINT status;
507     GX_ICON_BUTTON *button = (GX_ICON_BUTTON *) control_block;
508     GX_ICON_BUTTON_PROPERTIES *props = (GX_ICON_BUTTON_PROPERTIES *) info->properties;
509     status = gx_icon_button_create(button, info->widget_name, parent, props->pixelmap_id, info->style, info->widget_id, &info->size);
510     return status;
511 }
512 
gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)513 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
514 {
515     UINT status;
516     GX_PIXELMAP_BUTTON *button = (GX_PIXELMAP_BUTTON *) control_block;
517     GX_PIXELMAP_BUTTON_PROPERTIES *props = (GX_PIXELMAP_BUTTON_PROPERTIES *) info->properties;
518     status = gx_pixelmap_button_create(button, info->widget_name, parent,
519                props->normal_pixelmap_id,
520                props->selected_pixelmap_id,
521                props->disabled_pixelmap_id,
522                info->style, info->widget_id, &info->size);
523     return status;
524 }
525 
gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)526 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
527 {
528     UINT status;
529     GX_ICON *icon = (GX_ICON *) control_block;
530     GX_ICON_PROPERTIES *props = (GX_ICON_PROPERTIES *) info->properties;
531     status = gx_icon_create(icon, info->widget_name, parent, props->normal_pixelmap_id, info->style, info->widget_id, info->size.gx_rectangle_left, info->size.gx_rectangle_top);
532     if (props->selected_pixelmap_id)
533     {
534         gx_icon_pixelmap_set(icon, props->normal_pixelmap_id, props->selected_pixelmap_id);
535     }
536     else
537     {
538         gx_widget_resize((GX_WIDGET *)icon, (GX_RECTANGLE *)&info->size);
539     }
540     return status;
541 }
542 
gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)543 UINT gx_studio_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
544 {
545     UINT status;
546     GX_SLIDER *slider = (GX_SLIDER *) control_block;
547     GX_SLIDER_PROPERTIES *props = (GX_SLIDER_PROPERTIES *) info->properties;
548     GX_SLIDER_INFO slider_info;
549     slider_info.gx_slider_info_min_val = props->minval;
550     slider_info.gx_slider_info_max_val = props->maxval;
551     slider_info.gx_slider_info_current_val = props->current_val;
552     slider_info.gx_slider_info_increment = props->increment;
553     slider_info.gx_slider_info_min_travel = props->min_travel;
554     slider_info.gx_slider_info_max_travel = props->max_travel;
555     slider_info.gx_slider_info_needle_width = props->needle_width;
556     slider_info.gx_slider_info_needle_height = props->needle_height;
557     slider_info.gx_slider_info_needle_inset = props->needle_inset;
558     slider_info.gx_slider_info_needle_hotspot_offset = props->needle_hotspot;
559     status = gx_slider_create(slider,
560                     info->widget_name,
561                     parent,
562                     props->tickmark_count,
563                     &slider_info,
564                     info->style,
565                     info->widget_id,
566                     &info->size);
567     return status;
568 }
569 
gx_studio_pixelmap_slider_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)570 UINT gx_studio_pixelmap_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
571 {
572     UINT status;
573     GX_PIXELMAP_SLIDER *slider = (GX_PIXELMAP_SLIDER *) control_block;
574     GX_PIXELMAP_SLIDER_PROPERTIES *props = (GX_PIXELMAP_SLIDER_PROPERTIES *) info->properties;
575     GX_PIXELMAP_SLIDER_INFO pixelmap_info;
576     GX_SLIDER_INFO slider_info;
577     slider_info.gx_slider_info_min_val = props->min_val;
578     slider_info.gx_slider_info_max_val = props->max_val;
579     slider_info.gx_slider_info_current_val = props->current_val;
580     slider_info.gx_slider_info_increment = props->increment;
581     slider_info.gx_slider_info_min_travel = props->min_travel;
582     slider_info.gx_slider_info_max_travel = props->max_travel;
583     slider_info.gx_slider_info_needle_width = props->needle_width;
584     slider_info.gx_slider_info_needle_height = props->needle_height;
585     slider_info.gx_slider_info_needle_inset = props->needle_inset;
586     slider_info.gx_slider_info_needle_hotspot_offset = props->needle_hotspot;
587     pixelmap_info.gx_pixelmap_slider_info_lower_background_pixelmap = props->lower_pixelmap;
588     pixelmap_info.gx_pixelmap_slider_info_upper_background_pixelmap = props->upper_pixelmap;
589     pixelmap_info.gx_pixelmap_slider_info_needle_pixelmap = props->needle_pixelmap;
590     status = gx_pixelmap_slider_create(slider,
591                     info->widget_name,
592                     parent,
593                     &slider_info,
594                     &pixelmap_info,
595                     info->style,
596                     info->widget_id,
597                     &info->size);
598     return status;
599 }
600 
gx_studio_progress_bar_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)601 UINT gx_studio_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
602 {
603     UINT status;
604     GX_PROGRESS_BAR *bar = (GX_PROGRESS_BAR *) control_block;
605     GX_PROGRESS_BAR_INFO *bar_info = (GX_PROGRESS_BAR_INFO *) info->properties;
606     status = gx_progress_bar_create(bar,
607                     info->widget_name,
608                     parent,
609                     bar_info,
610                     info->style,
611                     info->widget_id,
612                     &info->size);
613     return status;
614 }
615 
gx_studio_radial_progress_bar_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)616 UINT gx_studio_radial_progress_bar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
617 {
618     UINT status;
619     GX_RADIAL_PROGRESS_BAR *bar = (GX_RADIAL_PROGRESS_BAR *) control_block;
620     GX_RADIAL_PROGRESS_BAR_INFO *bar_info = (GX_RADIAL_PROGRESS_BAR_INFO *) info->properties;
621     status = gx_radial_progress_bar_create(bar,
622                     info->widget_name,
623                     parent,
624                     bar_info,
625                     info->style,
626                     info->widget_id);
627     return status;
628 }
629 
gx_studio_sprite_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)630 UINT gx_studio_sprite_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
631 {
632     UINT status;
633     GX_SPRITE *sprite = (GX_SPRITE *) control_block;
634     GX_SPRITE_PROPERTIES *props = (GX_SPRITE_PROPERTIES *) info->properties;
635     status = gx_sprite_create(sprite, info->widget_name, parent,
636                props->frame_list, props->frame_count,
637                info->style, info->widget_id, &info->size);
638     return status;
639 }
640 
gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)641 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
642 {
643     UINT status;
644     GX_PROMPT *prompt = (GX_PROMPT *) control_block;
645     GX_PROMPT_PROPERTIES *props = (GX_PROMPT_PROPERTIES *) info->properties;
646     status = gx_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
647     if (status == GX_SUCCESS)
648     {
649         gx_prompt_font_set(prompt, props->font_id);
650 #if defined(GUIX_5_4_0_COMPATIBILITY)
651         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
652 #else
653         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
654 #endif
655     }
656     return status;
657 }
658 
gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)659 UINT gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
660 {
661     UINT status;
662     GX_NUMERIC_PROMPT *prompt = (GX_NUMERIC_PROMPT *) control_block;
663     GX_NUMERIC_PROMPT_PROPERTIES *props = (GX_NUMERIC_PROMPT_PROPERTIES *) info->properties;
664     status = gx_numeric_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
665     if (status == GX_SUCCESS)
666     {
667         gx_prompt_font_set((GX_PROMPT *)prompt, props->font_id);
668 #if defined(GUIX_5_4_0_COMPATIBILITY)
669         gx_prompt_text_color_set((GX_PROMPT *)prompt, props->normal_text_color_id, props->selected_text_color_id);
670 #else
671         gx_prompt_text_color_set((GX_PROMPT *)prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
672 #endif
673         if(!props->string_id)
674         {
675             gx_numeric_prompt_value_set(prompt, props->numeric_prompt_value);
676         }
677         if(props->format_func)
678         {
679             gx_numeric_prompt_format_function_set(prompt, props->format_func);
680         }
681     }
682     return status;
683 }
684 
gx_studio_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)685 UINT gx_studio_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
686 {
687     UINT status;
688     GX_PIXELMAP_PROMPT *pix_prompt = (GX_PIXELMAP_PROMPT *) control_block;
689     GX_PROMPT *prompt = (GX_PROMPT *) pix_prompt;
690     GX_PIXELMAP_PROMPT_PROPERTIES *props = (GX_PIXELMAP_PROMPT_PROPERTIES *) info->properties;
691     status = gx_pixelmap_prompt_create(pix_prompt, info->widget_name, parent,
692                props->string_id,
693                props->fill_map_id,
694                info->style, info->widget_id, &info->size);
695 
696     if (status == GX_SUCCESS)
697     {
698         gx_pixelmap_prompt_pixelmap_set(pix_prompt,
699                                         props->left_map_id,
700                                         props->fill_map_id,
701                                         props->right_map_id,
702                                         props->selected_left_map_id,
703                                         props->selected_fill_map_id,
704                                         props->selected_right_map_id);
705         gx_prompt_font_set(prompt, props->font_id);
706 #if defined(GUIX_5_4_0_COMPATIBILITY)
707         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
708 #else
709         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
710 #endif
711     }
712     return status;
713 }
714 
gx_studio_numeric_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)715 UINT gx_studio_numeric_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
716 {
717     UINT status;
718     GX_NUMERIC_PIXELMAP_PROMPT *pix_prompt = (GX_NUMERIC_PIXELMAP_PROMPT *) control_block;
719     GX_PROMPT *prompt = (GX_PROMPT *) pix_prompt;
720     GX_NUMERIC_PIXELMAP_PROMPT_PROPERTIES *props = (GX_NUMERIC_PIXELMAP_PROMPT_PROPERTIES *) info->properties;
721     status = gx_numeric_pixelmap_prompt_create(pix_prompt, info->widget_name, parent,
722                props->string_id,
723                props->fill_map_id,
724                info->style, info->widget_id, &info->size);
725 
726     if (status == GX_SUCCESS)
727     {
728         if(!props->string_id)
729         {
730             gx_numeric_pixelmap_prompt_value_set(pix_prompt, props->numeric_prompt_value);
731         }
732         if(props->format_func)
733         {
734             gx_numeric_pixelmap_prompt_format_function_set(pix_prompt, props->format_func);
735         }
736         gx_pixelmap_prompt_pixelmap_set((GX_PIXELMAP_PROMPT *)pix_prompt,
737                                         props->left_map_id,
738                                         props->fill_map_id,
739                                         props->right_map_id,
740                                         props->selected_left_map_id,
741                                         props->selected_fill_map_id,
742                                         props->selected_right_map_id);
743         gx_prompt_font_set(prompt, props->font_id);
744 #if defined(GUIX_5_4_0_COMPATIBILITY)
745         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
746 #else
747         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
748 #endif
749     }
750     return status;
751 }
752 
gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)753 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
754 {
755     UINT status;
756     GX_WINDOW *window = (GX_WINDOW *) control_block;
757     GX_WINDOW_PROPERTIES *props = (GX_WINDOW_PROPERTIES *) info->properties;
758     status = gx_window_create(window, info->widget_name, parent, info->style, info->widget_id, &info->size);
759     if (status == GX_SUCCESS)
760     {
761         if (props->wallpaper_id)
762         {
763             gx_window_wallpaper_set(window, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
764         }
765     }
766     return status;
767 }
768 
gx_studio_vertical_list_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)769 UINT gx_studio_vertical_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
770 {
771     UINT status;
772     GX_VERTICAL_LIST *list = (GX_VERTICAL_LIST *) control_block;
773     GX_VERTICAL_LIST_PROPERTIES *props = (GX_VERTICAL_LIST_PROPERTIES *) info->properties;
774     status = gx_vertical_list_create(list, info->widget_name, parent, props->total_rows,
775                                      props->callback, info->style, info->widget_id, &info->size);
776     if (status == GX_SUCCESS)
777     {
778         if (props->wallpaper_id)
779         {
780             gx_window_wallpaper_set((GX_WINDOW *) list, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
781         }
782     }
783     return status;
784 }
785 
gx_studio_horizontal_list_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)786 UINT gx_studio_horizontal_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
787 {
788     UINT status;
789     GX_HORIZONTAL_LIST *list = (GX_HORIZONTAL_LIST *) control_block;
790     GX_HORIZONTAL_LIST_PROPERTIES *props = (GX_HORIZONTAL_LIST_PROPERTIES *) info->properties;
791     status = gx_horizontal_list_create(list, info->widget_name, parent, props->total_rows,
792                                      props->callback, info->style, info->widget_id, &info->size);
793     if (status == GX_SUCCESS)
794     {
795         if (props->wallpaper_id)
796         {
797             gx_window_wallpaper_set((GX_WINDOW *) list, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
798         }
799     }
800     return status;
801 }
802 
gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)803 UINT gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
804 {
805     UINT status;
806     GX_DROP_LIST *list = (GX_DROP_LIST *) control_block;
807     GX_DROP_LIST_PROPERTIES *props = (GX_DROP_LIST_PROPERTIES *) info->properties;
808     status = gx_drop_list_create(list, info->widget_name, parent,
809                                  props->total_rows, props->open_height,
810                                  props->callback, info->style, info->widget_id, &info->size);
811     if (status == GX_SUCCESS)
812     {
813         if (props->pixelmap_id)
814         {
815             gx_drop_list_pixelmap_set(list, props->pixelmap_id);
816         }
817         if (props->wallpaper_id)
818         {
819             gx_window_wallpaper_set((GX_WINDOW *)&list->gx_drop_list_popup.gx_popup_list_list, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
820         }
821     }
822     return status;
823 }
824 
gx_studio_string_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)825 UINT gx_studio_string_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
826 {
827     UINT status;
828     GX_STRING_SCROLL_WHEEL *wheel = (GX_STRING_SCROLL_WHEEL *) control_block;
829     GX_STRING_SCROLL_WHEEL_PROPERTIES *props = (GX_STRING_SCROLL_WHEEL_PROPERTIES *) info->properties;
830     status = gx_string_scroll_wheel_create_ext(wheel, info->widget_name, parent, props->total_rows, GX_NULL,
831                                                info->style, info->widget_id, &info->size);
832     if (status == GX_SUCCESS)
833     {
834         if(props->string_id_list)
835         {
836             gx_string_scroll_wheel_string_id_list_set(wheel, props->string_id_list, props->total_rows);
837         }
838         if (props->wallpaper_id)
839         {
840             gx_window_wallpaper_set((GX_WINDOW *) wheel, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
841         }
842         if(props->selected_background)
843         {
844             gx_scroll_wheel_selected_background_set((GX_SCROLL_WHEEL *)wheel, props->selected_background);
845         }
846         gx_scroll_wheel_selected_set((GX_SCROLL_WHEEL *)wheel, props->selected_row);
847         gx_scroll_wheel_gradient_alpha_set((GX_SCROLL_WHEEL *)wheel, props->start_alpha, props->end_alpha);
848         gx_scroll_wheel_row_height_set((GX_SCROLL_WHEEL *)wheel, props->row_height);
849         gx_text_scroll_wheel_font_set((GX_TEXT_SCROLL_WHEEL *)wheel, props->normal_font, props->selected_font);
850 #if defined(GUIX_5_4_0_COMPATIBILITY)
851         gx_text_scroll_wheel_text_color_set((GX_TEXT_SCROLL_WHEEL *)wheel, props->normal_text_color, props->selected_text_color);
852 #else
853         gx_text_scroll_wheel_text_color_set((GX_TEXT_SCROLL_WHEEL *)wheel, props->normal_text_color, props->selected_text_color, props->disabled_text_color);
854 #endif
855         if(props->callback)
856         {
857             gx_text_scroll_wheel_callback_set_ext((GX_TEXT_SCROLL_WHEEL *)wheel, (UINT (*)(GX_TEXT_SCROLL_WHEEL*, INT, GX_STRING *))props->callback);
858         }
859     }
860     return status;
861 }
862 
gx_studio_numeric_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)863 UINT gx_studio_numeric_scroll_wheel_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
864 {
865     UINT status;
866     GX_NUMERIC_SCROLL_WHEEL *wheel = (GX_NUMERIC_SCROLL_WHEEL *) control_block;
867     GX_NUMERIC_SCROLL_WHEEL_PROPERTIES *props = (GX_NUMERIC_SCROLL_WHEEL_PROPERTIES *) info->properties;
868     status = gx_numeric_scroll_wheel_create(wheel, info->widget_name, parent, props->start_val, props->end_val,
869                                     info->style, info->widget_id, &info->size);
870     if (status == GX_SUCCESS)
871     {
872         if (props->wallpaper_id)
873         {
874             gx_window_wallpaper_set((GX_WINDOW *) wheel, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
875         }
876         if(props->selected_background)
877         {
878             gx_scroll_wheel_selected_background_set((GX_SCROLL_WHEEL *)wheel, props->selected_background);
879         }
880 
881         if (props->total_rows)
882         {
883             gx_scroll_wheel_total_rows_set((GX_SCROLL_WHEEL *)wheel, props->total_rows);
884         }
885 
886         gx_scroll_wheel_selected_set((GX_SCROLL_WHEEL *)wheel, props->selected_row);
887         gx_scroll_wheel_gradient_alpha_set((GX_SCROLL_WHEEL *)wheel, props->start_alpha, props->end_alpha);
888         gx_scroll_wheel_row_height_set((GX_SCROLL_WHEEL *)wheel, props->row_height);
889         gx_text_scroll_wheel_font_set((GX_TEXT_SCROLL_WHEEL *)wheel, props->normal_font, props->selected_font);
890 #if defined(GUIX_5_4_0_COMPATIBILITY)
891         gx_text_scroll_wheel_text_color_set((GX_TEXT_SCROLL_WHEEL *)wheel, props->normal_text_color, props->selected_text_color);
892 #else
893         gx_text_scroll_wheel_text_color_set((GX_TEXT_SCROLL_WHEEL *)wheel, props->normal_text_color, props->selected_text_color, props->disabled_text_color);
894 #endif
895         if(props->callback)
896         {
897             gx_text_scroll_wheel_callback_set_ext((GX_TEXT_SCROLL_WHEEL *)wheel, (UINT (*)(GX_TEXT_SCROLL_WHEEL*, INT, GX_STRING *))props->callback);
898         }
899     }
900     return status;
901 }
902 
gx_studio_text_input_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)903 UINT gx_studio_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
904 {
905     UINT status;
906     GX_STRING text;
907     GX_SINGLE_LINE_TEXT_INPUT *input = (GX_SINGLE_LINE_TEXT_INPUT *) control_block;
908     GX_PROMPT *prompt = (GX_PROMPT *) input;
909     GX_SINGLE_LINE_TEXT_INPUT_PROPERTIES *props = (GX_SINGLE_LINE_TEXT_INPUT_PROPERTIES *) info->properties;
910     status = gx_single_line_text_input_create(input, info->widget_name, parent, props->buffer, props->buffer_size, info->style, info->widget_id, &info->size);
911     if (status == GX_SUCCESS)
912     {
913         gx_prompt_font_set(prompt, props->font_id);
914         gx_single_line_text_input_text_color_set(input, props->normal_text_color_id, props->selected_text_color_id,
915                                                  props->disabled_text_color_id, props->readonly_text_color_id);
916         gx_single_line_text_input_fill_color_set(input, input->gx_widget_normal_fill_color, input->gx_widget_selected_fill_color,
917                                                  input->gx_widget_disabled_fill_color, props->readonly_fill_color_id);
918         if (props->buffer && props->buffer_size > 0 && props->string_id)
919         {
920              gx_display_string_get_ext(folder_output_test_display_table[0].display, props->string_id, &text);
921 
922              if (text.gx_string_ptr)
923              {
924                  gx_single_line_text_input_text_set_ext(input, &text);
925              }
926         }
927     }
928     return status;
929 }
930 
gx_studio_multi_line_text_view_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)931 UINT gx_studio_multi_line_text_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
932 {
933     UINT status;
934     GX_MULTI_LINE_TEXT_VIEW *view = (GX_MULTI_LINE_TEXT_VIEW *) control_block;
935     GX_ML_TEXT_VIEW_PROPERTIES *props = (GX_ML_TEXT_VIEW_PROPERTIES *) info->properties;
936     status = gx_multi_line_text_view_create(view, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
937     if (status == GX_SUCCESS)
938     {
939         gx_multi_line_text_view_font_set(view, props->font_id);
940 #if defined(GUIX_5_4_0_COMPATIBILITY)
941         gx_multi_line_text_view_text_color_set(view, props->normal_text_color_id, props->selected_text_color_id);
942 #else
943         gx_multi_line_text_view_text_color_set(view, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
944 #endif
945         gx_multi_line_text_view_whitespace_set(view, props->whitespace);
946         gx_multi_line_text_view_line_space_set(view, props->line_space);
947     }
948     return status;
949 }
950 
gx_studio_multi_line_text_input_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)951 UINT gx_studio_multi_line_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
952 {
953     UINT status;
954     GX_STRING text;
955     GX_MULTI_LINE_TEXT_INPUT *input = (GX_MULTI_LINE_TEXT_INPUT *) control_block;
956     GX_MULTI_LINE_TEXT_INPUT_PROPERTIES *props = (GX_MULTI_LINE_TEXT_INPUT_PROPERTIES *) info->properties;
957     status = gx_multi_line_text_input_create(input, info->widget_name, parent, props->buffer, props->buffer_size, info->style, info->widget_id, &info->size);
958     if (status == GX_SUCCESS)
959     {
960         gx_multi_line_text_view_font_set((GX_MULTI_LINE_TEXT_VIEW *) input, props->font_id);
961         gx_multi_line_text_input_fill_color_set(input, info->normal_fill_color_id, info->selected_fill_color_id,
962                                                 info->disabled_fill_color_id, props->readonly_fill_color_id);
963         gx_multi_line_text_input_text_color_set(input, props->normal_text_color_id, props->selected_text_color_id,
964                                                 props->disabled_text_color_id, props->readonly_text_color_id);
965         gx_multi_line_text_view_whitespace_set((GX_MULTI_LINE_TEXT_VIEW *) input, props->whitespace);
966         gx_multi_line_text_view_line_space_set((GX_MULTI_LINE_TEXT_VIEW *) input, props->line_space);
967         if(props->buffer && (props->buffer_size > 0) && props->string_id)
968         {
969             gx_display_string_get_ext(folder_output_test_display_table[0].display, props->string_id, &text);
970             if(text.gx_string_ptr)
971             {
972                 gx_multi_line_text_input_text_set_ext(input, &text);
973             }
974         }
975     }
976     return status;
977 }
978 
gx_studio_horizontal_scrollbar_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)979 UINT gx_studio_horizontal_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
980 {
981     UINT status;
982     GX_SCROLLBAR *scroll = (GX_SCROLLBAR *) control_block;
983     GX_SCROLLBAR_APPEARANCE *appearance = (GX_SCROLLBAR_APPEARANCE *) info->properties;
984     status = gx_horizontal_scrollbar_create(scroll, info->widget_name, parent, appearance, info->style);
985     return status;
986 }
987 
gx_studio_vertical_scrollbar_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)988 UINT gx_studio_vertical_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
989 {
990     UINT status;
991     GX_SCROLLBAR *scroll = (GX_SCROLLBAR *) control_block;
992     GX_SCROLLBAR_APPEARANCE *appearance = (GX_SCROLLBAR_APPEARANCE *) info->properties;
993     status = gx_vertical_scrollbar_create(scroll, info->widget_name, parent, appearance, info->style);
994     return status;
995 }
996 
gx_studio_circular_gauge_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)997 UINT gx_studio_circular_gauge_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
998 {
999     UINT status;
1000     GX_CIRCULAR_GAUGE *gauge = (GX_CIRCULAR_GAUGE *) control_block;
1001     GX_CIRCULAR_GAUGE_PROPERTIES *props = (GX_CIRCULAR_GAUGE_PROPERTIES *) info->properties;
1002     GX_CIRCULAR_GAUGE_INFO gauge_info;
1003     gauge_info.gx_circular_gauge_info_needle_pixelmap = props->needle_pixelmap_id;
1004     gauge_info.gx_circular_gauge_info_needle_xpos = props->needle_xpos;
1005     gauge_info.gx_circular_gauge_info_needle_ypos = props->needle_ypos;
1006     gauge_info.gx_circular_gauge_info_needle_xcor = props->needle_xcor;
1007     gauge_info.gx_circular_gauge_info_needle_ycor = props->needle_ycor;
1008     gauge_info.gx_circular_gauge_info_animation_steps = props->animation_steps;
1009     gauge_info.gx_circular_gauge_info_animation_delay = props->animation_delay;
1010     gauge->gx_icon_normal_pixelmap = props->normal_pixelmap_id;
1011     gauge->gx_icon_selected_pixelmap = props->selected_pixelmap_id;
1012     status = gx_circular_gauge_create(gauge,
1013                     info->widget_name,
1014                     parent,
1015                     &gauge_info,
1016                     props->normal_pixelmap_id,
1017                     info->style,
1018                     info->widget_id,
1019                     info->size.gx_rectangle_left,
1020                     info->size.gx_rectangle_top);
1021     return status;
1022 }
1023 
gx_studio_line_chart_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)1024 UINT gx_studio_line_chart_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
1025 {
1026     UINT status;
1027     GX_LINE_CHART *chart = (GX_LINE_CHART *) control_block;
1028     GX_LINE_CHART_INFO *chart_info = (GX_LINE_CHART_INFO *) info->properties;
1029 
1030     status = gx_line_chart_create(chart, info->widget_name, parent, chart_info, info->style, info->widget_id, &info->size);
1031     return status;
1032 }
1033 
gx_studio_template_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)1034 UINT gx_studio_template_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
1035 {
1036     UINT status = GX_SUCCESS;
1037     GX_STUDIO_WIDGET derived;
1038     GX_TEMPLATE_PROPERTIES *props = (GX_TEMPLATE_PROPERTIES *) info->properties;
1039 
1040                                              /* create base widget and children */
1041     derived =            *props->base_info;
1042     derived.widget_id =   info->widget_id;
1043     derived.widget_name = info->widget_name;
1044 
1045     if (info->style & GX_STYLE_ENABLED)
1046     {
1047         derived.style |= GX_STYLE_ENABLED;
1048     }
1049     else
1050     {
1051         derived.style &= ~GX_STYLE_ENABLED;
1052     }
1053     if (info->status & GX_STATUS_ACCEPTS_FOCUS)
1054     {
1055         derived.status |= GX_STATUS_ACCEPTS_FOCUS;
1056     }
1057     else
1058     {
1059         derived.status &= ~GX_STATUS_ACCEPTS_FOCUS;
1060     }
1061 
1062     #if defined(GX_WIDGET_USER_DATA)
1063     derived.user_data =   info->user_data;
1064     #endif
1065 
1066     control_block = gx_studio_widget_create((GX_BYTE *) control_block, &derived, parent);
1067     if (control_block)
1068     {
1069         if (info->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
1070         {
1071             control_block->gx_widget_status |= GX_STATUS_DYNAMICALLY_ALLOCATED;
1072         }
1073         if (derived.size.gx_rectangle_left != info->size.gx_rectangle_left ||
1074             derived.size.gx_rectangle_top != info->size.gx_rectangle_top)
1075         {
1076             gx_widget_shift(control_block,
1077                 info->size.gx_rectangle_left - derived.size.gx_rectangle_left,
1078                 info->size.gx_rectangle_top - derived.size.gx_rectangle_top, GX_FALSE);
1079         }
1080     }
1081     else
1082     {
1083         status = GX_FAILURE;
1084     }
1085     return status;
1086 }
1087 
gx_studio_menu_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)1088 UINT gx_studio_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
1089 {
1090     UINT status;
1091     GX_MENU *menu = (GX_MENU *) control_block;
1092     GX_MENU_PROPERTIES *props = (GX_MENU_PROPERTIES *) info->properties;
1093     status = gx_menu_create(menu, info->widget_name, parent,
1094                props->string_id,
1095                props->fill_map_id,
1096                info->style, info->widget_id, &info->size);
1097 
1098     if (status == GX_SUCCESS)
1099     {
1100         menu->gx_menu_list_total_count = props->list_total_count;
1101         gx_menu_text_offset_set(menu, props->text_x_offset, props->text_y_offset);
1102         gx_pixelmap_prompt_pixelmap_set((GX_PIXELMAP_PROMPT *)menu,
1103                                         props->left_map_id,
1104                                         props->fill_map_id,
1105                                         props->right_map_id,
1106                                         props->selected_left_map_id,
1107                                         props->selected_fill_map_id,
1108                                         props->selected_right_map_id);
1109         gx_prompt_font_set((GX_PROMPT *)menu, props->font_id);
1110 #if defined(GUIX_5_4_0_COMPATIBILITY)
1111         gx_prompt_text_color_set((GX_PROMPT *)menu, props->normal_text_color_id, props->selected_text_color_id);
1112 #else
1113         gx_prompt_text_color_set((GX_PROMPT *)menu, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
1114 #endif
1115     }
1116     return status;
1117 }
1118 
gx_studio_accordion_menu_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)1119 UINT gx_studio_accordion_menu_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
1120 {
1121     UINT status;
1122     GX_ACCORDION_MENU *accordion = (GX_ACCORDION_MENU *) control_block;
1123     status = gx_accordion_menu_create(accordion, info->widget_name,
1124                                       parent, info->style, info->widget_id, &info->size);
1125     return status;
1126 }
1127 
gx_studio_tree_view_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)1128 UINT gx_studio_tree_view_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
1129 {
1130     UINT status;
1131     GX_TREE_VIEW *tree = (GX_TREE_VIEW *) control_block;
1132     GX_TREE_VIEW_PROPERTIES *props = (GX_TREE_VIEW_PROPERTIES *) info->properties;
1133     status = gx_tree_view_create(tree, info->widget_name, parent,
1134                                  info->style, info->widget_id, &info->size);
1135     if (status == GX_SUCCESS)
1136     {
1137         if (props->expand_map_id || props->collapse_map_id)
1138         {
1139             gx_tree_view_root_pixelmap_set(tree, props->expand_map_id, props->collapse_map_id);
1140         }
1141         gx_tree_view_indentation_set(tree, props->indentation);
1142         gx_tree_view_root_line_color_set(tree, props->root_line_color_id);
1143     }
1144     return status;
1145 }
1146 GX_WINDOW_PROPERTIES MAIN_DISPLAY_window_screen_properties =
1147 {
1148     0                                        /* wallpaper pixelmap id          */
1149 };
1150 GX_WINDOW_PROPERTIES MAIN_DISPLAY_window_screen_window_5_properties =
1151 {
1152     0                                        /* wallpaper pixelmap id          */
1153 };
1154 GX_WINDOW_PROPERTIES MAIN_DISPLAY_window_screen_window_6_properties =
1155 {
1156     0                                        /* wallpaper pixelmap id          */
1157 };
1158 GX_WINDOW_PROPERTIES MAIN_DISPLAY_window_screen_window_8_properties =
1159 {
1160     0                                        /* wallpaper pixelmap id          */
1161 };
1162 GX_WINDOW_PROPERTIES MAIN_DISPLAY_window_screen_scroll_frame_1_properties =
1163 {
1164     0                                        /* wallpaper pixelmap id          */
1165 };
1166 GX_WINDOW_PROPERTIES MAIN_DISPLAY_window_screen_window_4_properties =
1167 {
1168     GX_PIXELMAP_ID_MAIN_DISPLAY_FISH         /* wallpaper pixelmap id          */
1169 };
1170 GX_SCROLLBAR_APPEARANCE  MAIN_DISPLAY_window_screen_hscroll_1_properties =
1171 {
1172     20,                                      /* scroll width                   */
1173     10,                                      /* thumb width                    */
1174     2,                                       /* thumb travel min               */
1175     2,                                       /* thumb travel max               */
1176     4,                                       /* thumb border style             */
1177     GX_PIXELMAP_ID_MAIN_DISPLAY_I_ORANGEFILL_MIDDLE_HORIZONTAL, /* scroll fill pixelmap */
1178     0,                                       /* scroll thumb pixelmap          */
1179     0,                                       /* scroll up pixelmap             */
1180     0,                                       /* scroll down pixelmap           */
1181     GX_COLOR_ID_SCROLL_BUTTON,               /* scroll thumb color             */
1182     GX_COLOR_ID_SCROLL_BUTTON,               /* scroll thumb border color      */
1183     GX_COLOR_ID_BTN_UPPER,                   /* scroll button color            */
1184 };
1185 GX_SCROLLBAR_APPEARANCE  MAIN_DISPLAY_window_screen_vertical_scroll_1_properties =
1186 {
1187     20,                                      /* scroll width                   */
1188     12,                                      /* thumb width                    */
1189     20,                                      /* thumb travel min               */
1190     20,                                      /* thumb travel max               */
1191     4,                                       /* thumb border style             */
1192     0,                                       /* scroll fill pixelmap           */
1193     0,                                       /* scroll thumb pixelmap          */
1194     0,                                       /* scroll up pixelmap             */
1195     0,                                       /* scroll down pixelmap           */
1196     GX_COLOR_ID_SCROLL_BUTTON,               /* scroll thumb color             */
1197     GX_COLOR_ID_SCROLL_BUTTON,               /* scroll thumb border color      */
1198     GX_COLOR_ID_MAIN_DISPLAY_ORANGE,         /* scroll button color            */
1199 };
1200 GX_VERTICAL_LIST_PROPERTIES MAIN_DISPLAY_window_screen_vertical_list_properties =
1201 {
1202     0,                                       /* wallpaper id                   */
1203     GX_NULL,                                 /* callback function              */
1204     4                                        /* total rows                     */
1205 };
1206 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_window_screen_button_1_properties =
1207 {
1208     GX_STRING_ID_MAIN_DISPLAY_STRING_19,     /* string id                      */
1209     GX_FONT_ID_BUTTON,                       /* font id                        */
1210     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1211     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1212     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1213 };
1214 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_window_screen_button_2_properties =
1215 {
1216     GX_STRING_ID_MAIN_DISPLAY_STRING_20,     /* string id                      */
1217     GX_FONT_ID_BUTTON,                       /* font id                        */
1218     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1219     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1220     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1221 };
1222 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_window_screen_button_3_properties =
1223 {
1224     GX_STRING_ID_MAIN_DISPLAY_STRING_21,     /* string id                      */
1225     GX_FONT_ID_BUTTON,                       /* font id                        */
1226     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1227     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1228     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1229 };
1230 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_window_screen_button_4_properties =
1231 {
1232     GX_STRING_ID_MAIN_DISPLAY_STRING_22,     /* string id                      */
1233     GX_FONT_ID_BUTTON,                       /* font id                        */
1234     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1235     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1236     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1237 };
1238 GX_PROMPT_PROPERTIES MAIN_DISPLAY_window_screen_nested_label_1_properties =
1239 {
1240     GX_STRING_ID_MAIN_DISPLAY_STRING_16,     /* string id                      */
1241     GX_FONT_ID_PROMPT,                       /* font id                        */
1242     GX_COLOR_ID_TEXT,                        /* normal text color              */
1243     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1244     GX_COLOR_ID_TEXT                         /* disabled text color            */
1245 };
1246 GX_PROMPT_PROPERTIES MAIN_DISPLAY_window_screen_frame_label_1_properties =
1247 {
1248     GX_STRING_ID_MAIN_DISPLAY_STRING_17,     /* string id                      */
1249     GX_FONT_ID_PROMPT,                       /* font id                        */
1250     GX_COLOR_ID_TEXT,                        /* normal text color              */
1251     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1252     GX_COLOR_ID_TEXT                         /* disabled text color            */
1253 };
1254 GX_PROMPT_PROPERTIES MAIN_DISPLAY_window_screen_vlist_label_1_properties =
1255 {
1256     GX_STRING_ID_MAIN_DISPLAY_STRING_18,     /* string id                      */
1257     GX_FONT_ID_PROMPT,                       /* font id                        */
1258     GX_COLOR_ID_TEXT,                        /* normal text color              */
1259     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1260     GX_COLOR_ID_TEXT                         /* disabled text color            */
1261 };
1262 GX_HORIZONTAL_LIST_PROPERTIES MAIN_DISPLAY_window_screen_horizontal_list_1_properties =
1263 {
1264     0,                                       /* wallpaper id                   */
1265     GX_NULL,                                 /* callback function              */
1266     5                                        /* total columns                  */
1267 };
1268 GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_window_screen_icon_button_1_properties =
1269 {
1270     GX_PIXELMAP_ID_MAIN_DISPLAY_I_HISTORY_LG  /* pixelmap id                   */
1271 };
1272 GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_window_screen_icon_button_2_properties =
1273 {
1274     GX_PIXELMAP_ID_MAIN_DISPLAY_I_MEDICATIONSGREEN_LG  /* pixelmap id          */
1275 };
1276 GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_window_screen_icon_button_3_properties =
1277 {
1278     GX_PIXELMAP_ID_MAIN_DISPLAY_I_PATIENTLIST_LG  /* pixelmap id               */
1279 };
1280 GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_window_screen_icon_button_4_properties =
1281 {
1282     GX_PIXELMAP_ID_MAIN_DISPLAY_I_MEDICATIONSRED_LG  /* pixelmap id            */
1283 };
1284 GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_window_screen_icon_button_5_properties =
1285 {
1286     GX_PIXELMAP_ID_MAIN_DISPLAY_BLACK_PAUSE  /* pixelmap id                    */
1287 };
1288 GX_PROMPT_PROPERTIES MAIN_DISPLAY_window_screen_hlist_label_1_properties =
1289 {
1290     GX_STRING_ID_MAIN_DISPLAY_STRING_23,     /* string id                      */
1291     GX_FONT_ID_PROMPT,                       /* font id                        */
1292     GX_COLOR_ID_TEXT,                        /* normal text color              */
1293     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1294     GX_COLOR_ID_TEXT                         /* disabled text color            */
1295 };
1296 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_window_screen_next_button_1_properties =
1297 {
1298     GX_STRING_ID_MAIN_DISPLAY_STRING_36,     /* string id                      */
1299     GX_FONT_ID_BUTTON,                       /* font id                        */
1300     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
1301     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* selected text color            */
1302     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
1303 };
1304 GX_DROP_LIST_PROPERTIES MAIN_DISPLAY_window_screen_drop_list_properties =
1305 {
1306     GX_PIXELMAP_ID_MAIN_DISPLAY_TOP_BAR_BACKGROUND, /* widget pixelmap id      */
1307     GX_PIXELMAP_ID_MAIN_DISPLAY_DROP_LIST_BG, /* popup list wallpaper pixelmap id */
1308     drop_list_row_create,                    /* callback function              */
1309     100,                                     /* total rows                     */
1310     100                                      /* open height                    */
1311 };
1312 GX_PIXELMAP_BUTTON_PROPERTIES MAIN_DISPLAY_window_screen_pixelmap_button_properties =
1313 {
1314     GX_PIXELMAP_ID_MAIN_DISPLAY_DROP_LIST_BUTTON, /* normal pixelmap id        */
1315     0,                                       /* selected pixelmap id           */
1316     0                                        /* disabled pixelmap id           */
1317 };
1318 GX_PROMPT_PROPERTIES MAIN_DISPLAY_window_screen_hlist_label_properties =
1319 {
1320     GX_STRING_ID_MAIN_DISPLAY_STRING_37,     /* string id                      */
1321     GX_FONT_ID_PROMPT,                       /* font id                        */
1322     GX_COLOR_ID_TEXT,                        /* normal text color              */
1323     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1324     GX_COLOR_ID_TEXT                         /* disabled text color            */
1325 };
1326 GX_LINE_CHART_INFO MAIN_DISPLAY_window_screen_line_chart_properties =
1327 {
1328     0,                                       /* min data value                 */
1329     100,                                     /* max data value                 */
1330     GX_NULL,                                 /* data pointer                   */
1331     0,                                       /* left margin                    */
1332     0,                                       /* top margin                     */
1333     0,                                       /* right margin                   */
1334     0,                                       /* bottom margin                  */
1335     100,                                     /* max data items                 */
1336     0,                                       /* active data items              */
1337     3,                                       /* axis line width                */
1338     2,                                       /* data line width                */
1339     GX_COLOR_ID_DEFAULT_BORDER,              /* axis line color                */
1340     GX_COLOR_ID_SHINE                        /* data line color                */
1341 };
1342 
1343 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_window_8_define =
1344 {
1345     "window_8",
1346     GX_TYPE_WINDOW,                          /* widget type                    */
1347     GX_ID_NONE,                              /* widget id                      */
1348     #if defined(GX_WIDGET_USER_DATA)
1349     0,                                       /* user data                      */
1350     #endif
1351     GX_STYLE_BORDER_THIN,                    /* style flags                    */
1352     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1353     sizeof(GX_WINDOW),                       /* control block size             */
1354     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1355     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
1356     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1357     gx_studio_window_create,                 /* create function                */
1358     GX_NULL,                                 /* drawing function override      */
1359     GX_NULL,                                 /* event function override        */
1360     {211, 88, 304, 160},                     /* widget size                    */
1361     GX_NULL,                                 /* no next widget                 */
1362     GX_NULL,                                 /* no child widgets               */
1363     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_window_8), /* control block */
1364     (void *) &MAIN_DISPLAY_window_screen_window_8_properties /* extended properties */
1365 };
1366 
1367 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_window_6_define =
1368 {
1369     "window_6",
1370     GX_TYPE_WINDOW,                          /* widget type                    */
1371     GX_ID_NONE,                              /* widget id                      */
1372     #if defined(GX_WIDGET_USER_DATA)
1373     0,                                       /* user data                      */
1374     #endif
1375     GX_STYLE_BORDER_THIN,                    /* style flags                    */
1376     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1377     sizeof(GX_WINDOW),                       /* control block size             */
1378     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* normal color id                */
1379     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* selected color id              */
1380     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* disabled color id              */
1381     gx_studio_window_create,                 /* create function                */
1382     GX_NULL,                                 /* drawing function override      */
1383     GX_NULL,                                 /* event function override        */
1384     {73, 56, 319, 170},                      /* widget size                    */
1385     GX_NULL,                                 /* no next widget                 */
1386     &MAIN_DISPLAY_window_screen_window_8_define, /* child widget definition    */
1387     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_window_6), /* control block */
1388     (void *) &MAIN_DISPLAY_window_screen_window_6_properties /* extended properties */
1389 };
1390 
1391 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_vertical_scroll_1_define =
1392 {
1393     "vertical_scroll_1",
1394     GX_TYPE_VERTICAL_SCROLL,                 /* widget type                    */
1395     ID_VERTICAL_SCROLLBAR,                   /* widget id                      */
1396     #if defined(GX_WIDGET_USER_DATA)
1397     0,                                       /* user data                      */
1398     #endif
1399     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_SCROLLBAR_RELATIVE_THUMB|GX_SCROLLBAR_END_BUTTONS|GX_SCROLLBAR_VERTICAL,   /* style flags */
1400     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1401     sizeof(GX_SCROLLBAR),                    /* control block size             */
1402     GX_COLOR_ID_SCROLL_FILL,                 /* normal color id                */
1403     GX_COLOR_ID_SCROLL_FILL,                 /* selected color id              */
1404     GX_COLOR_ID_SCROLL_FILL,                 /* disabled color id              */
1405     gx_studio_vertical_scrollbar_create,     /* create function                */
1406     GX_NULL,                                 /* drawing function override      */
1407     GX_NULL,                                 /* event function override        */
1408     {542, 46, 561, 159},                     /* widget size                    */
1409     GX_NULL,                                 /* no next widget                 */
1410     GX_NULL,                                 /* no child widgets               */
1411     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_vertical_scroll_1), /* control block */
1412     (void *) &MAIN_DISPLAY_window_screen_vertical_scroll_1_properties /* extended properties */
1413 };
1414 
1415 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_hscroll_1_define =
1416 {
1417     "hscroll_1",
1418     GX_TYPE_HORIZONTAL_SCROLL,               /* widget type                    */
1419     ID_HORIZONTAL_SCROLLBAR,                 /* widget id                      */
1420     #if defined(GX_WIDGET_USER_DATA)
1421     0,                                       /* user data                      */
1422     #endif
1423     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TILE_BACKGROUND|GX_SCROLLBAR_RELATIVE_THUMB|GX_SCROLLBAR_HORIZONTAL,   /* style flags */
1424     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1425     sizeof(GX_SCROLLBAR),                    /* control block size             */
1426     GX_COLOR_ID_MAIN_DISPLAY_ORANGE,         /* normal color id                */
1427     GX_COLOR_ID_SCROLL_FILL,                 /* selected color id              */
1428     GX_COLOR_ID_MAIN_DISPLAY_ORANGE,         /* disabled color id              */
1429     gx_studio_horizontal_scrollbar_create,     /* create function              */
1430     GX_NULL,                                 /* drawing function override      */
1431     GX_NULL,                                 /* event function override        */
1432     {352, 160, 541, 179},                    /* widget size                    */
1433     &MAIN_DISPLAY_window_screen_vertical_scroll_1_define, /* next widget definition */
1434     GX_NULL,                                 /* no child widgets               */
1435     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_hscroll_1), /* control block */
1436     (void *) &MAIN_DISPLAY_window_screen_hscroll_1_properties /* extended properties */
1437 };
1438 
1439 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_window_4_define =
1440 {
1441     "window_4",
1442     GX_TYPE_WINDOW,                          /* widget type                    */
1443     GX_ID_NONE,                              /* widget id                      */
1444     #if defined(GX_WIDGET_USER_DATA)
1445     0,                                       /* user data                      */
1446     #endif
1447     GX_STYLE_BORDER_THIN,                    /* style flags                    */
1448     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1449     sizeof(GX_WINDOW),                       /* control block size             */
1450     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1451     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
1452     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1453     gx_studio_window_create,                 /* create function                */
1454     GX_NULL,                                 /* drawing function override      */
1455     GX_NULL,                                 /* event function override        */
1456     {351, 45, 750, 444},                     /* widget size                    */
1457     &MAIN_DISPLAY_window_screen_hscroll_1_define, /* next widget definition    */
1458     GX_NULL,                                 /* no child widgets               */
1459     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_window_4), /* control block */
1460     (void *) &MAIN_DISPLAY_window_screen_window_4_properties /* extended properties */
1461 };
1462 
1463 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_button_4_define =
1464 {
1465     "button_4",
1466     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1467     GX_ID_NONE,                              /* widget id                      */
1468     #if defined(GX_WIDGET_USER_DATA)
1469     0,                                       /* user data                      */
1470     #endif
1471     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
1472     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1473     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1474     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1475     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1476     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1477     gx_studio_text_button_create,            /* create function                */
1478     GX_NULL,                                 /* drawing function override      */
1479     GX_NULL,                                 /* event function override        */
1480     {59, 324, 156, 358},                     /* widget size                    */
1481     GX_NULL,                                 /* no next widget                 */
1482     GX_NULL,                                 /* no child widgets               */
1483     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_button_4), /* control block */
1484     (void *) &MAIN_DISPLAY_window_screen_button_4_properties /* extended properties */
1485 };
1486 
1487 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_button_3_define =
1488 {
1489     "button_3",
1490     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1491     GX_ID_NONE,                              /* widget id                      */
1492     #if defined(GX_WIDGET_USER_DATA)
1493     0,                                       /* user data                      */
1494     #endif
1495     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
1496     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1497     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1498     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1499     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1500     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1501     gx_studio_text_button_create,            /* create function                */
1502     GX_NULL,                                 /* drawing function override      */
1503     GX_NULL,                                 /* event function override        */
1504     {59, 289, 156, 323},                     /* widget size                    */
1505     &MAIN_DISPLAY_window_screen_button_4_define, /* next widget definition     */
1506     GX_NULL,                                 /* no child widgets               */
1507     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_button_3), /* control block */
1508     (void *) &MAIN_DISPLAY_window_screen_button_3_properties /* extended properties */
1509 };
1510 
1511 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_button_2_define =
1512 {
1513     "button_2",
1514     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1515     GX_ID_NONE,                              /* widget id                      */
1516     #if defined(GX_WIDGET_USER_DATA)
1517     0,                                       /* user data                      */
1518     #endif
1519     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
1520     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1521     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1522     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1523     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1524     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1525     gx_studio_text_button_create,            /* create function                */
1526     GX_NULL,                                 /* drawing function override      */
1527     GX_NULL,                                 /* event function override        */
1528     {59, 254, 156, 288},                     /* widget size                    */
1529     &MAIN_DISPLAY_window_screen_button_3_define, /* next widget definition     */
1530     GX_NULL,                                 /* no child widgets               */
1531     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_button_2), /* control block */
1532     (void *) &MAIN_DISPLAY_window_screen_button_2_properties /* extended properties */
1533 };
1534 
1535 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_button_1_define =
1536 {
1537     "button_1",
1538     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1539     GX_ID_NONE,                              /* widget id                      */
1540     #if defined(GX_WIDGET_USER_DATA)
1541     0,                                       /* user data                      */
1542     #endif
1543     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
1544     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1545     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1546     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1547     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1548     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1549     gx_studio_text_button_create,            /* create function                */
1550     GX_NULL,                                 /* drawing function override      */
1551     GX_NULL,                                 /* event function override        */
1552     {59, 219, 156, 253},                     /* widget size                    */
1553     &MAIN_DISPLAY_window_screen_button_2_define, /* next widget definition     */
1554     GX_NULL,                                 /* no child widgets               */
1555     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_button_1), /* control block */
1556     (void *) &MAIN_DISPLAY_window_screen_button_1_properties /* extended properties */
1557 };
1558 
1559 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_icon_button_5_define =
1560 {
1561     "icon_button_5",
1562     GX_TYPE_ICON_BUTTON,                     /* widget type                    */
1563     GX_ID_NONE,                              /* widget id                      */
1564     #if defined(GX_WIDGET_USER_DATA)
1565     0,                                       /* user data                      */
1566     #endif
1567     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
1568     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1569     sizeof(GX_ICON_BUTTON),                  /* control block size             */
1570     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1571     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1572     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1573     gx_studio_icon_button_create,            /* create function                */
1574     GX_NULL,                                 /* drawing function override      */
1575     GX_NULL,                                 /* event function override        */
1576     {385, 218, 435, 279},                    /* widget size                    */
1577     GX_NULL,                                 /* no next widget                 */
1578     GX_NULL,                                 /* no child widgets               */
1579     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_icon_button_5), /* control block */
1580     (void *) &MAIN_DISPLAY_window_screen_icon_button_5_properties /* extended properties */
1581 };
1582 
1583 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_icon_button_4_define =
1584 {
1585     "icon_button_4",
1586     GX_TYPE_ICON_BUTTON,                     /* widget type                    */
1587     GX_ID_NONE,                              /* widget id                      */
1588     #if defined(GX_WIDGET_USER_DATA)
1589     0,                                       /* user data                      */
1590     #endif
1591     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
1592     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1593     sizeof(GX_ICON_BUTTON),                  /* control block size             */
1594     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1595     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1596     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1597     gx_studio_icon_button_create,            /* create function                */
1598     GX_NULL,                                 /* drawing function override      */
1599     GX_NULL,                                 /* event function override        */
1600     {334, 218, 384, 279},                    /* widget size                    */
1601     &MAIN_DISPLAY_window_screen_icon_button_5_define, /* next widget definition */
1602     GX_NULL,                                 /* no child widgets               */
1603     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_icon_button_4), /* control block */
1604     (void *) &MAIN_DISPLAY_window_screen_icon_button_4_properties /* extended properties */
1605 };
1606 
1607 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_icon_button_3_define =
1608 {
1609     "icon_button_3",
1610     GX_TYPE_ICON_BUTTON,                     /* widget type                    */
1611     GX_ID_NONE,                              /* widget id                      */
1612     #if defined(GX_WIDGET_USER_DATA)
1613     0,                                       /* user data                      */
1614     #endif
1615     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
1616     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1617     sizeof(GX_ICON_BUTTON),                  /* control block size             */
1618     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1619     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1620     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1621     gx_studio_icon_button_create,            /* create function                */
1622     GX_NULL,                                 /* drawing function override      */
1623     GX_NULL,                                 /* event function override        */
1624     {283, 218, 333, 279},                    /* widget size                    */
1625     &MAIN_DISPLAY_window_screen_icon_button_4_define, /* next widget definition */
1626     GX_NULL,                                 /* no child widgets               */
1627     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_icon_button_3), /* control block */
1628     (void *) &MAIN_DISPLAY_window_screen_icon_button_3_properties /* extended properties */
1629 };
1630 
1631 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_icon_button_2_define =
1632 {
1633     "icon_button_2",
1634     GX_TYPE_ICON_BUTTON,                     /* widget type                    */
1635     GX_ID_NONE,                              /* widget id                      */
1636     #if defined(GX_WIDGET_USER_DATA)
1637     0,                                       /* user data                      */
1638     #endif
1639     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
1640     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1641     sizeof(GX_ICON_BUTTON),                  /* control block size             */
1642     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1643     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1644     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1645     gx_studio_icon_button_create,            /* create function                */
1646     GX_NULL,                                 /* drawing function override      */
1647     GX_NULL,                                 /* event function override        */
1648     {232, 218, 282, 279},                    /* widget size                    */
1649     &MAIN_DISPLAY_window_screen_icon_button_3_define, /* next widget definition */
1650     GX_NULL,                                 /* no child widgets               */
1651     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_icon_button_2), /* control block */
1652     (void *) &MAIN_DISPLAY_window_screen_icon_button_2_properties /* extended properties */
1653 };
1654 
1655 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_icon_button_1_define =
1656 {
1657     "icon_button_1",
1658     GX_TYPE_ICON_BUTTON,                     /* widget type                    */
1659     GX_ID_NONE,                              /* widget id                      */
1660     #if defined(GX_WIDGET_USER_DATA)
1661     0,                                       /* user data                      */
1662     #endif
1663     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
1664     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1665     sizeof(GX_ICON_BUTTON),                  /* control block size             */
1666     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1667     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1668     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1669     gx_studio_icon_button_create,            /* create function                */
1670     GX_NULL,                                 /* drawing function override      */
1671     GX_NULL,                                 /* event function override        */
1672     {181, 218, 231, 279},                    /* widget size                    */
1673     &MAIN_DISPLAY_window_screen_icon_button_2_define, /* next widget definition */
1674     GX_NULL,                                 /* no child widgets               */
1675     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_icon_button_1), /* control block */
1676     (void *) &MAIN_DISPLAY_window_screen_icon_button_1_properties /* extended properties */
1677 };
1678 
1679 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_pixelmap_button_define =
1680 {
1681     "pixelmap_button",
1682     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
1683     ID_DROP_LIST_BUTTON,                     /* widget id                      */
1684     #if defined(GX_WIDGET_USER_DATA)
1685     0,                                       /* user data                      */
1686     #endif
1687     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
1688     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1689     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
1690     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1691     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1692     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1693     gx_studio_pixelmap_button_create,        /* create function                */
1694     GX_NULL,                                 /* drawing function override      */
1695     GX_NULL,                                 /* event function override        */
1696     {393, 319, 434, 360},                    /* widget size                    */
1697     GX_NULL,                                 /* no next widget                 */
1698     GX_NULL,                                 /* no child widgets               */
1699     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_pixelmap_button), /* control block */
1700     (void *) &MAIN_DISPLAY_window_screen_pixelmap_button_properties /* extended properties */
1701 };
1702 
1703 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_line_chart_define =
1704 {
1705     "line_chart",
1706     GX_TYPE_LINE_CHART,                      /* widget type                    */
1707     GX_ID_NONE,                              /* widget id                      */
1708     #if defined(GX_WIDGET_USER_DATA)
1709     0,                                       /* user data                      */
1710     #endif
1711     GX_STYLE_BORDER_NONE,                    /* style flags                    */
1712     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1713     sizeof(GX_LINE_CHART),                   /* control block size             */
1714     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1715     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
1716     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1717     gx_studio_line_chart_create,             /* create function                */
1718     GX_NULL,                                 /* drawing function override      */
1719     GX_NULL,                                 /* event function override        */
1720     {53, 387, 144, 445},                     /* widget size                    */
1721     GX_NULL,                                 /* no next widget                 */
1722     GX_NULL,                                 /* no child widgets               */
1723     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_line_chart), /* control block */
1724     (void *) &MAIN_DISPLAY_window_screen_line_chart_properties /* extended properties */
1725 };
1726 
1727 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_hlist_label_define =
1728 {
1729     "hlist_label",
1730     GX_TYPE_PROMPT,                          /* widget type                    */
1731     GX_ID_NONE,                              /* widget id                      */
1732     #if defined(GX_WIDGET_USER_DATA)
1733     0,                                       /* user data                      */
1734     #endif
1735     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1736     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1737     sizeof(GX_PROMPT),                       /* control block size             */
1738     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1739     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1740     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1741     gx_studio_prompt_create,                 /* create function                */
1742     GX_NULL,                                 /* drawing function override      */
1743     GX_NULL,                                 /* event function override        */
1744     {253, 296, 341, 319},                    /* widget size                    */
1745     &MAIN_DISPLAY_window_screen_line_chart_define, /* next widget definition   */
1746     GX_NULL,                                 /* no child widgets               */
1747     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_hlist_label), /* control block */
1748     (void *) &MAIN_DISPLAY_window_screen_hlist_label_properties /* extended properties */
1749 };
1750 
1751 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_drop_list_define =
1752 {
1753     "drop_list",
1754     GX_TYPE_DROP_LIST,                       /* widget type                    */
1755     ID_DROP_LIST,                            /* widget id                      */
1756     #if defined(GX_WIDGET_USER_DATA)
1757     0,                                       /* user data                      */
1758     #endif
1759     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_TILE_BACKGROUND,   /* style flags */
1760     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1761     sizeof(GX_DROP_LIST),                    /* control block size             */
1762     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1763     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
1764     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1765     gx_studio_drop_list_create,              /* create function                */
1766     GX_NULL,                                 /* drawing function override      */
1767     GX_NULL,                                 /* event function override        */
1768     {183, 319, 430, 356},                    /* widget size                    */
1769     &MAIN_DISPLAY_window_screen_hlist_label_define, /* next widget definition  */
1770     &MAIN_DISPLAY_window_screen_pixelmap_button_define, /* child widget definition */
1771     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_drop_list), /* control block */
1772     (void *) &MAIN_DISPLAY_window_screen_drop_list_properties /* extended properties */
1773 };
1774 
1775 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_next_button_1_define =
1776 {
1777     "next_button_1",
1778     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1779     IDB_NEXT,                                /* widget id                      */
1780     #if defined(GX_WIDGET_USER_DATA)
1781     0,                                       /* user data                      */
1782     #endif
1783     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
1784     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1785     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1786     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* normal color id         */
1787     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* selected color id       */
1788     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* disabled color id       */
1789     gx_studio_text_button_create,            /* create function                */
1790     GX_NULL,                                 /* drawing function override      */
1791     GX_NULL,                                 /* event function override        */
1792     {491, 432, 570, 456},                    /* widget size                    */
1793     &MAIN_DISPLAY_window_screen_drop_list_define, /* next widget definition    */
1794     GX_NULL,                                 /* no child widgets               */
1795     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_next_button_1), /* control block */
1796     (void *) &MAIN_DISPLAY_window_screen_next_button_1_properties /* extended properties */
1797 };
1798 
1799 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_hlist_label_1_define =
1800 {
1801     "hlist_label_1",
1802     GX_TYPE_PROMPT,                          /* widget type                    */
1803     GX_ID_NONE,                              /* widget id                      */
1804     #if defined(GX_WIDGET_USER_DATA)
1805     0,                                       /* user data                      */
1806     #endif
1807     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1808     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1809     sizeof(GX_PROMPT),                       /* control block size             */
1810     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1811     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1812     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1813     gx_studio_prompt_create,                 /* create function                */
1814     GX_NULL,                                 /* drawing function override      */
1815     GX_NULL,                                 /* event function override        */
1816     {242, 191, 373, 214},                    /* widget size                    */
1817     &MAIN_DISPLAY_window_screen_next_button_1_define, /* next widget definition */
1818     GX_NULL,                                 /* no child widgets               */
1819     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_hlist_label_1), /* control block */
1820     (void *) &MAIN_DISPLAY_window_screen_hlist_label_1_properties /* extended properties */
1821 };
1822 
1823 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_horizontal_list_1_define =
1824 {
1825     "horizontal_list_1",
1826     GX_TYPE_HORIZONTAL_LIST,                 /* widget type                    */
1827     GX_ID_NONE,                              /* widget id                      */
1828     #if defined(GX_WIDGET_USER_DATA)
1829     0,                                       /* user data                      */
1830     #endif
1831     GX_STYLE_BORDER_THIN,                    /* style flags                    */
1832     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1833     sizeof(GX_HORIZONTAL_LIST),              /* control block size             */
1834     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1835     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
1836     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1837     gx_studio_horizontal_list_create,        /* create function                */
1838     GX_NULL,                                 /* drawing function override      */
1839     GX_NULL,                                 /* event function override        */
1840     {180, 217, 437, 280},                    /* widget size                    */
1841     &MAIN_DISPLAY_window_screen_hlist_label_1_define, /* next widget definition */
1842     &MAIN_DISPLAY_window_screen_icon_button_1_define, /* child widget definition */
1843     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_horizontal_list_1), /* control block */
1844     (void *) &MAIN_DISPLAY_window_screen_horizontal_list_1_properties /* extended properties */
1845 };
1846 
1847 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_vlist_label_1_define =
1848 {
1849     "vlist_label_1",
1850     GX_TYPE_PROMPT,                          /* widget type                    */
1851     GX_ID_NONE,                              /* widget id                      */
1852     #if defined(GX_WIDGET_USER_DATA)
1853     0,                                       /* user data                      */
1854     #endif
1855     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1856     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1857     sizeof(GX_PROMPT),                       /* control block size             */
1858     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1859     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1860     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1861     gx_studio_prompt_create,                 /* create function                */
1862     GX_NULL,                                 /* drawing function override      */
1863     GX_NULL,                                 /* event function override        */
1864     {45, 191, 176, 214},                     /* widget size                    */
1865     &MAIN_DISPLAY_window_screen_horizontal_list_1_define, /* next widget definition */
1866     GX_NULL,                                 /* no child widgets               */
1867     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_vlist_label_1), /* control block */
1868     (void *) &MAIN_DISPLAY_window_screen_vlist_label_1_properties /* extended properties */
1869 };
1870 
1871 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_frame_label_1_define =
1872 {
1873     "frame_label_1",
1874     GX_TYPE_PROMPT,                          /* widget type                    */
1875     GX_ID_NONE,                              /* widget id                      */
1876     #if defined(GX_WIDGET_USER_DATA)
1877     0,                                       /* user data                      */
1878     #endif
1879     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1880     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1881     sizeof(GX_PROMPT),                       /* control block size             */
1882     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1883     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1884     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1885     gx_studio_prompt_create,                 /* create function                */
1886     GX_NULL,                                 /* drawing function override      */
1887     GX_NULL,                                 /* event function override        */
1888     {389, 19, 520, 42},                      /* widget size                    */
1889     &MAIN_DISPLAY_window_screen_vlist_label_1_define, /* next widget definition */
1890     GX_NULL,                                 /* no child widgets               */
1891     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_frame_label_1), /* control block */
1892     (void *) &MAIN_DISPLAY_window_screen_frame_label_1_properties /* extended properties */
1893 };
1894 
1895 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_nested_label_1_define =
1896 {
1897     "nested_label_1",
1898     GX_TYPE_PROMPT,                          /* widget type                    */
1899     GX_ID_NONE,                              /* widget id                      */
1900     #if defined(GX_WIDGET_USER_DATA)
1901     0,                                       /* user data                      */
1902     #endif
1903     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1904     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1905     sizeof(GX_PROMPT),                       /* control block size             */
1906     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1907     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1908     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1909     gx_studio_prompt_create,                 /* create function                */
1910     GX_NULL,                                 /* drawing function override      */
1911     GX_NULL,                                 /* event function override        */
1912     {118, 19, 249, 42},                      /* widget size                    */
1913     &MAIN_DISPLAY_window_screen_frame_label_1_define, /* next widget definition */
1914     GX_NULL,                                 /* no child widgets               */
1915     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_nested_label_1), /* control block */
1916     (void *) &MAIN_DISPLAY_window_screen_nested_label_1_properties /* extended properties */
1917 };
1918 
1919 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_vertical_list_define =
1920 {
1921     "vertical_list",
1922     GX_TYPE_VERTICAL_LIST,                   /* widget type                    */
1923     ID_VERTICAL_LIST,                        /* widget id                      */
1924     #if defined(GX_WIDGET_USER_DATA)
1925     0,                                       /* user data                      */
1926     #endif
1927     GX_STYLE_BORDER_RAISED,                  /* style flags                    */
1928     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1929     sizeof(GX_VERTICAL_LIST),                /* control block size             */
1930     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1931     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
1932     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1933     gx_studio_vertical_list_create,          /* create function                */
1934     GX_NULL,                                 /* drawing function override      */
1935     GX_NULL,                                 /* event function override        */
1936     {57, 217, 158, 360},                     /* widget size                    */
1937     &MAIN_DISPLAY_window_screen_nested_label_1_define, /* next widget definition */
1938     &MAIN_DISPLAY_window_screen_button_1_define, /* child widget definition    */
1939     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_vertical_list), /* control block */
1940     (void *) &MAIN_DISPLAY_window_screen_vertical_list_properties /* extended properties */
1941 };
1942 
1943 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_scroll_frame_1_define =
1944 {
1945     "scroll_frame_1",
1946     GX_TYPE_WINDOW,                          /* widget type                    */
1947     GX_ID_NONE,                              /* widget id                      */
1948     #if defined(GX_WIDGET_USER_DATA)
1949     0,                                       /* user data                      */
1950     #endif
1951     GX_STYLE_BORDER_THIN,                    /* style flags                    */
1952     0,                                       /* status flags                   */
1953     sizeof(GX_WINDOW),                       /* control block size             */
1954     GX_COLOR_ID_SCROLL_FILL,                 /* normal color id                */
1955     GX_COLOR_ID_SCROLL_FILL,                 /* selected color id              */
1956     GX_COLOR_ID_SCROLL_FILL,                 /* disabled color id              */
1957     gx_studio_window_create,                 /* create function                */
1958     GX_NULL,                                 /* drawing function override      */
1959     GX_NULL,                                 /* event function override        */
1960     {351, 45, 562, 180},                     /* widget size                    */
1961     &MAIN_DISPLAY_window_screen_vertical_list_define, /* next widget definition */
1962     &MAIN_DISPLAY_window_screen_window_4_define, /* child widget definition    */
1963     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_scroll_frame_1), /* control block */
1964     (void *) &MAIN_DISPLAY_window_screen_scroll_frame_1_properties /* extended properties */
1965 };
1966 
1967 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_window_5_define =
1968 {
1969     "window_5",
1970     GX_TYPE_WINDOW,                          /* widget type                    */
1971     GX_ID_NONE,                              /* widget id                      */
1972     #if defined(GX_WIDGET_USER_DATA)
1973     0,                                       /* user data                      */
1974     #endif
1975     GX_STYLE_BORDER_THICK,                   /* style flags                    */
1976     0,                                       /* status flags                   */
1977     sizeof(GX_WINDOW),                       /* control block size             */
1978     GX_COLOR_ID_MAIN_DISPLAY_ORANGE,         /* normal color id                */
1979     GX_COLOR_ID_MAIN_DISPLAY_ORANGE,         /* selected color id              */
1980     GX_COLOR_ID_MAIN_DISPLAY_ORANGE,         /* disabled color id              */
1981     gx_studio_window_create,                 /* create function                */
1982     GX_NULL,                                 /* drawing function override      */
1983     GX_NULL,                                 /* event function override        */
1984     {56, 44, 341, 182},                      /* widget size                    */
1985     &MAIN_DISPLAY_window_screen_scroll_frame_1_define, /* next widget definition */
1986     &MAIN_DISPLAY_window_screen_window_6_define, /* child widget definition    */
1987     offsetof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_window_screen_window_5), /* control block */
1988     (void *) &MAIN_DISPLAY_window_screen_window_5_properties /* extended properties */
1989 };
1990 
1991 GX_STUDIO_ACTION MAIN_DISPLAY_window_screen__idb_next_gx_event_clicked_actions[2] = {
1992     {GX_ACTION_TYPE_TOGGLE, GX_ACTION_FLAG_DYNAMIC_TARGET, &MAIN_DISPLAY_root_window,  &MAIN_DISPLAY_indicator_screen_define, GX_NULL},
1993     {0, 0, GX_NULL, GX_NULL, GX_NULL}
1994 };
1995 
1996 static GX_STUDIO_EVENT_ENTRY gx_studio_MAIN_DISPLAY_window_screen_event_table[] = {
1997     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_window_screen__idb_next_gx_event_clicked_actions},
1998     {0, 0, GX_NULL}
1999 };
2000 
2001 GX_STUDIO_EVENT_PROCESS MAIN_DISPLAY_window_screen_event_chain = {gx_studio_MAIN_DISPLAY_window_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))window_screen_event_handler};
gx_studio_MAIN_DISPLAY_window_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)2002 static UINT gx_studio_MAIN_DISPLAY_window_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
2003 {
2004     return (gx_studio_auto_event_handler(target, event_ptr, &MAIN_DISPLAY_window_screen_event_chain));
2005 }
2006 
2007 
2008 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_window_screen_define =
2009 {
2010     "MAIN_DISPLAY_window_screen",
2011     GX_TYPE_WINDOW,                          /* widget type                    */
2012     ID_WINDOW_SCREEN,                        /* widget id                      */
2013     #if defined(GX_WIDGET_USER_DATA)
2014     0,                                       /* user data                      */
2015     #endif
2016     GX_STYLE_BORDER_THIN,                    /* style flags                    */
2017     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2018     sizeof(MAIN_DISPLAY_WINDOW_SCREEN_CONTROL_BLOCK), /* control block size    */
2019     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2020     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2021     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2022     gx_studio_window_create,                 /* create function                */
2023     GX_NULL,                                 /* drawing function override      */
2024     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_MAIN_DISPLAY_window_screen_event_process, /* event function override */
2025     {24, 10, 578, 464},                      /* widget size                    */
2026     GX_NULL,                                 /* next widget                    */
2027     &MAIN_DISPLAY_window_screen_window_5_define, /* child widget               */
2028     0,                                       /* control block                  */
2029     (void *) &MAIN_DISPLAY_window_screen_properties /* extended properties     */
2030 };
2031 GX_WINDOW_PROPERTIES MAIN_DISPLAY_base_properties =
2032 {
2033     0                                        /* wallpaper pixelmap id          */
2034 };
2035 GX_PROMPT_PROPERTIES MAIN_DISPLAY_base_prompt_14_properties =
2036 {
2037     GX_STRING_ID_MAIN_DISPLAY_STRING_100,    /* string id                      */
2038     GX_FONT_ID_PROMPT,                       /* font id                        */
2039     GX_COLOR_ID_TEXT,                        /* normal text color              */
2040     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
2041     GX_COLOR_ID_MAIN_DISPLAY_ORANGE          /* disabled text color            */
2042 };
2043 
2044 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_base_prompt_14_define =
2045 {
2046     "prompt_14",
2047     GX_TYPE_PROMPT,                          /* widget type                    */
2048     GX_ID_NONE,                              /* widget id                      */
2049     #if defined(GX_WIDGET_USER_DATA)
2050     0,                                       /* user data                      */
2051     #endif
2052     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2053     0,                                       /* status flags                   */
2054     sizeof(GX_PROMPT),                       /* control block size             */
2055     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2056     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2057     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2058     gx_studio_prompt_create,                 /* create function                */
2059     GX_NULL,                                 /* drawing function override      */
2060     GX_NULL,                                 /* event function override        */
2061     {114, 129, 327, 146},                    /* widget size                    */
2062     GX_NULL,                                 /* no next widget                 */
2063     GX_NULL,                                 /* no child widgets               */
2064     offsetof(MAIN_DISPLAY_BASE_CONTROL_BLOCK, MAIN_DISPLAY_base_prompt_14), /* control block */
2065     (void *) &MAIN_DISPLAY_base_prompt_14_properties /* extended properties    */
2066 };
2067 
2068 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_base_define =
2069 {
2070     "MAIN_DISPLAY_base",
2071     GX_TYPE_WINDOW,                          /* widget type                    */
2072     GX_ID_NONE,                              /* widget id                      */
2073     #if defined(GX_WIDGET_USER_DATA)
2074     0,                                       /* user data                      */
2075     #endif
2076     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED,   /* style flags                    */
2077     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2078     sizeof(MAIN_DISPLAY_BASE_CONTROL_BLOCK), /* control block size             */
2079     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2080     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2081     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2082     gx_studio_window_create,                 /* create function                */
2083     GX_NULL,                                 /* drawing function override      */
2084     GX_NULL,                                 /* event function override        */
2085     {107, 120, 560, 307},                    /* widget size                    */
2086     GX_NULL,                                 /* next widget                    */
2087     &MAIN_DISPLAY_base_prompt_14_define,     /* child widget                   */
2088     0,                                       /* control block                  */
2089     (void *) &MAIN_DISPLAY_base_properties   /* extended properties            */
2090 };
2091 GX_WINDOW_PROPERTIES MAIN_DISPLAY_popup_modal_properties =
2092 {
2093     0                                        /* wallpaper pixelmap id          */
2094 };
2095 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_popup_modal_OK_button_properties =
2096 {
2097     GX_STRING_ID_MAIN_DISPLAY_STRING_41,     /* string id                      */
2098     GX_FONT_ID_BUTTON,                       /* font id                        */
2099     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
2100     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
2101     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
2102 };
2103 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_popup_modal_cancel_button_properties =
2104 {
2105     GX_STRING_ID_MAIN_DISPLAY_STRING_42,     /* string id                      */
2106     GX_FONT_ID_BUTTON,                       /* font id                        */
2107     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
2108     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
2109     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
2110 };
2111 GX_ML_TEXT_VIEW_PROPERTIES MAIN_DISPLAY_popup_modal_text_view_2_properties =
2112 {
2113     GX_STRING_ID_MAIN_DISPLAY_STRING_99,     /* string id                      */
2114     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
2115     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* normal text color              */
2116     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* selected text color            */
2117     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* disabled text color            */
2118     0,                                       /* whitespace                     */
2119     0                                        /* line_space                     */
2120 };
2121 GX_WINDOW_PROPERTIES MAIN_DISPLAY_popup_modal_window_1_properties =
2122 {
2123     GX_PIXELMAP_ID_MAIN_DISPLAY_TOP_BAR_BACKGROUND  /* wallpaper pixelmap id   */
2124 };
2125 GX_PROMPT_PROPERTIES MAIN_DISPLAY_popup_modal_prompt_5_properties =
2126 {
2127     GX_STRING_ID_MAIN_DISPLAY_STRING_45,     /* string id                      */
2128     GX_FONT_ID_PROMPT,                       /* font id                        */
2129     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
2130     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
2131     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
2132 };
2133 
2134 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_prompt_5_define =
2135 {
2136     "prompt_5",
2137     GX_TYPE_PROMPT,                          /* widget type                    */
2138     GX_ID_NONE,                              /* widget id                      */
2139     #if defined(GX_WIDGET_USER_DATA)
2140     0,                                       /* user data                      */
2141     #endif
2142     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
2143     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2144     sizeof(GX_PROMPT),                       /* control block size             */
2145     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2146     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2147     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
2148     gx_studio_prompt_create,                 /* create function                */
2149     GX_NULL,                                 /* drawing function override      */
2150     GX_NULL,                                 /* event function override        */
2151     {277, 125, 356, 148},                    /* widget size                    */
2152     GX_NULL,                                 /* no next widget                 */
2153     GX_NULL,                                 /* no child widgets               */
2154     offsetof(MAIN_DISPLAY_POPUP_MODAL_CONTROL_BLOCK, MAIN_DISPLAY_popup_modal_prompt_5), /* control block */
2155     (void *) &MAIN_DISPLAY_popup_modal_prompt_5_properties /* extended properties */
2156 };
2157 
2158 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_window_1_define =
2159 {
2160     "window_1",
2161     GX_TYPE_WINDOW,                          /* widget type                    */
2162     GX_ID_NONE,                              /* widget id                      */
2163     #if defined(GX_WIDGET_USER_DATA)
2164     0,                                       /* user data                      */
2165     #endif
2166     GX_STYLE_BORDER_THIN|GX_STYLE_TILE_WALLPAPER,   /* style flags             */
2167     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2168     sizeof(GX_WINDOW),                       /* control block size             */
2169     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2170     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2171     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2172     gx_studio_window_create,                 /* create function                */
2173     GX_NULL,                                 /* drawing function override      */
2174     GX_NULL,                                 /* event function override        */
2175     {157, 121, 476, 153},                    /* widget size                    */
2176     GX_NULL,                                 /* no next widget                 */
2177     &MAIN_DISPLAY_popup_modal_prompt_5_define, /* child widget definition      */
2178     offsetof(MAIN_DISPLAY_POPUP_MODAL_CONTROL_BLOCK, MAIN_DISPLAY_popup_modal_window_1), /* control block */
2179     (void *) &MAIN_DISPLAY_popup_modal_window_1_properties /* extended properties */
2180 };
2181 
2182 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_text_view_2_define =
2183 {
2184     "text_view_2",
2185     GX_TYPE_MULTI_LINE_TEXT_VIEW,            /* widget type                    */
2186     GX_ID_NONE,                              /* widget id                      */
2187     #if defined(GX_WIDGET_USER_DATA)
2188     0,                                       /* user data                      */
2189     #endif
2190     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_DRAW_SELECTED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
2191     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2192     sizeof(GX_MULTI_LINE_TEXT_VIEW),         /* control block size             */
2193     GX_COLOR_ID_CANVAS,                      /* normal color id                */
2194     GX_COLOR_ID_CANVAS,                      /* selected color id              */
2195     GX_COLOR_ID_CANVAS,                      /* disabled color id              */
2196     gx_studio_multi_line_text_view_create,     /* create function              */
2197     GX_NULL,                                 /* drawing function override      */
2198     GX_NULL,                                 /* event function override        */
2199     {172, 176, 464, 293},                    /* widget size                    */
2200     &MAIN_DISPLAY_popup_modal_window_1_define, /* next widget definition       */
2201     GX_NULL,                                 /* no child widgets               */
2202     offsetof(MAIN_DISPLAY_POPUP_MODAL_CONTROL_BLOCK, MAIN_DISPLAY_popup_modal_text_view_2), /* control block */
2203     (void *) &MAIN_DISPLAY_popup_modal_text_view_2_properties /* extended properties */
2204 };
2205 
2206 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_cancel_button_define =
2207 {
2208     "cancel_button",
2209     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
2210     IDB_CANCEL,                              /* widget id                      */
2211     #if defined(GX_WIDGET_USER_DATA)
2212     20,                                      /* user data                      */
2213     #endif
2214     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
2215     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2216     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
2217     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2218     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2219     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2220     gx_studio_text_button_create,            /* create function                */
2221     GX_NULL,                                 /* drawing function override      */
2222     GX_NULL,                                 /* event function override        */
2223     {200, 309, 279, 343},                    /* widget size                    */
2224     &MAIN_DISPLAY_popup_modal_text_view_2_define, /* next widget definition    */
2225     GX_NULL,                                 /* no child widgets               */
2226     offsetof(MAIN_DISPLAY_POPUP_MODAL_CONTROL_BLOCK, MAIN_DISPLAY_popup_modal_cancel_button), /* control block */
2227     (void *) &MAIN_DISPLAY_popup_modal_cancel_button_properties /* extended properties */
2228 };
2229 
2230 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_OK_button_define =
2231 {
2232     "OK_button",
2233     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
2234     IDB_OK,                                  /* widget id                      */
2235     #if defined(GX_WIDGET_USER_DATA)
2236     0,                                       /* user data                      */
2237     #endif
2238     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
2239     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2240     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
2241     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2242     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2243     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2244     gx_studio_text_button_create,            /* create function                */
2245     GX_NULL,                                 /* drawing function override      */
2246     GX_NULL,                                 /* event function override        */
2247     {364, 309, 443, 343},                    /* widget size                    */
2248     &MAIN_DISPLAY_popup_modal_cancel_button_define, /* next widget definition  */
2249     GX_NULL,                                 /* no child widgets               */
2250     offsetof(MAIN_DISPLAY_POPUP_MODAL_CONTROL_BLOCK, MAIN_DISPLAY_popup_modal_OK_button), /* control block */
2251     (void *) &MAIN_DISPLAY_popup_modal_OK_button_properties /* extended properties */
2252 };
2253 
2254 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_define =
2255 {
2256     "MAIN_DISPLAY_popup_modal",
2257     GX_TYPE_WINDOW,                          /* widget type                    */
2258     GX_ID_NONE,                              /* widget id                      */
2259     #if defined(GX_WIDGET_USER_DATA)
2260     0,                                       /* user data                      */
2261     #endif
2262     GX_STYLE_BORDER_RAISED,                  /* style flags                    */
2263     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2264     sizeof(MAIN_DISPLAY_POPUP_MODAL_CONTROL_BLOCK), /* control block size      */
2265     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2266     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2267     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2268     gx_studio_window_create,                 /* create function                */
2269     GX_NULL,                                 /* drawing function override      */
2270     GX_NULL,                                 /* event function override        */
2271     {160, 120, 479, 359},                    /* widget size                    */
2272     GX_NULL,                                 /* next widget                    */
2273     &MAIN_DISPLAY_popup_modal_OK_button_define, /* child widget                */
2274     0,                                       /* control block                  */
2275     (void *) &MAIN_DISPLAY_popup_modal_properties /* extended properties       */
2276 };
2277 GX_WINDOW_PROPERTIES MAIN_DISPLAY_rotate_screen_properties =
2278 {
2279     0                                        /* wallpaper pixelmap id          */
2280 };
2281 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_rotate_screen_next_button_8_properties =
2282 {
2283     GX_STRING_ID_MAIN_DISPLAY_STRING_36,     /* string id                      */
2284     GX_FONT_ID_BUTTON,                       /* font id                        */
2285     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
2286     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* selected text color            */
2287     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
2288 };
2289 GX_CHECKBOX_PROPERTIES MAIN_DISPLAY_rotate_screen_checkbox_1_properties =
2290 {
2291     GX_STRING_ID_MAIN_DISPLAY_STRING_39_1,   /* string id                      */
2292     GX_FONT_ID_BUTTON,                       /* font id                        */
2293     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
2294     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
2295     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
2296     0,                                       /* unchecked pixelmap id          */
2297     0,                                       /* checked pixelmap id            */
2298     0,                                       /* unchecked disabled pixelmap id */
2299     0                                        /* checked disabled pixelmap id   */
2300 };
2301 GX_PROMPT_PROPERTIES MAIN_DISPLAY_rotate_screen_prompt_11_properties =
2302 {
2303     GX_STRING_ID_MAIN_DISPLAY_STRING_40_1,   /* string id                      */
2304     GX_FONT_ID_PROMPT,                       /* font id                        */
2305     GX_COLOR_ID_TEXT,                        /* normal text color              */
2306     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
2307     GX_COLOR_ID_TEXT                         /* disabled text color            */
2308 };
2309 GX_SLIDER_PROPERTIES MAIN_DISPLAY_rotate_screen_slider_3_properties =
2310 {
2311     10,                                      /* tickmark count                 */
2312     0,                                       /* mimimun value                  */
2313     359,                                     /* maximum value                  */
2314     30,                                      /* current value                  */
2315     10,                                      /* increment                      */
2316     10,                                      /* minimum travel                 */
2317     10,                                      /* maximum travel                 */
2318     5,                                       /* needle width                   */
2319     10,                                      /* needle height                  */
2320     5,                                       /* needle inset                   */
2321     2                                        /* needle hotspot                 */
2322 };
2323 GX_PROMPT_PROPERTIES MAIN_DISPLAY_rotate_screen_prompt_12_properties =
2324 {
2325     GX_STRING_ID_MAIN_DISPLAY_STRING_41_1,   /* string id                      */
2326     GX_FONT_ID_PROMPT,                       /* font id                        */
2327     GX_COLOR_ID_TEXT,                        /* normal text color              */
2328     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
2329     GX_COLOR_ID_TEXT                         /* disabled text color            */
2330 };
2331 GX_WINDOW_PROPERTIES MAIN_DISPLAY_rotate_screen_pixelmap_window_properties =
2332 {
2333     0                                        /* wallpaper pixelmap id          */
2334 };
2335 GX_RADIO_BUTTON_PROPERTIES MAIN_DISPLAY_rotate_screen_radio_button_properties =
2336 {
2337     GX_STRING_ID_MAIN_DISPLAY_STRING_42_1,   /* string id                      */
2338     GX_FONT_ID_BUTTON,                       /* font id                        */
2339     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
2340     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
2341     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
2342     0,                                       /* off pixelmap id                */
2343     0,                                       /* on pixelmap id                 */
2344     0,                                       /* off disabled pixelmap id       */
2345     0                                        /* on disabled pixelmap id        */
2346 };
2347 GX_RADIO_BUTTON_PROPERTIES MAIN_DISPLAY_rotate_screen_radio_button_1_properties =
2348 {
2349     GX_STRING_ID_MAIN_DISPLAY_STRING_43_1,   /* string id                      */
2350     GX_FONT_ID_BUTTON,                       /* font id                        */
2351     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
2352     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
2353     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
2354     0,                                       /* off pixelmap id                */
2355     0,                                       /* on pixelmap id                 */
2356     0,                                       /* off disabled pixelmap id       */
2357     0                                        /* on disabled pixelmap id        */
2358 };
2359 GX_RADIO_BUTTON_PROPERTIES MAIN_DISPLAY_rotate_screen_radio_button_2_properties =
2360 {
2361     GX_STRING_ID_MAIN_DISPLAY_STRING_44_1,   /* string id                      */
2362     GX_FONT_ID_BUTTON,                       /* font id                        */
2363     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
2364     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
2365     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
2366     0,                                       /* off pixelmap id                */
2367     0,                                       /* on pixelmap id                 */
2368     0,                                       /* off disabled pixelmap id       */
2369     0                                        /* on disabled pixelmap id        */
2370 };
2371 
2372 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_rotate_screen_radio_button_2_define =
2373 {
2374     "radio_button_2",
2375     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
2376     ID_RADIO_FISH,                           /* widget id                      */
2377     #if defined(GX_WIDGET_USER_DATA)
2378     0,                                       /* user data                      */
2379     #endif
2380     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
2381     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2382     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
2383     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2384     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2385     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2386     gx_studio_radio_button_create,           /* create function                */
2387     GX_NULL,                                 /* drawing function override      */
2388     GX_NULL,                                 /* event function override        */
2389     {388, 425, 467, 448},                    /* widget size                    */
2390     GX_NULL,                                 /* no next widget                 */
2391     GX_NULL,                                 /* no child widgets               */
2392     offsetof(MAIN_DISPLAY_ROTATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_rotate_screen_radio_button_2), /* control block */
2393     (void *) &MAIN_DISPLAY_rotate_screen_radio_button_2_properties /* extended properties */
2394 };
2395 
2396 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_rotate_screen_radio_button_1_define =
2397 {
2398     "radio_button_1",
2399     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
2400     ID_RADIO_APPLE,                          /* widget id                      */
2401     #if defined(GX_WIDGET_USER_DATA)
2402     0,                                       /* user data                      */
2403     #endif
2404     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
2405     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2406     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
2407     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2408     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2409     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2410     gx_studio_radio_button_create,           /* create function                */
2411     GX_NULL,                                 /* drawing function override      */
2412     GX_NULL,                                 /* event function override        */
2413     {236, 425, 315, 448},                    /* widget size                    */
2414     &MAIN_DISPLAY_rotate_screen_radio_button_2_define, /* next widget definition */
2415     GX_NULL,                                 /* no child widgets               */
2416     offsetof(MAIN_DISPLAY_ROTATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_rotate_screen_radio_button_1), /* control block */
2417     (void *) &MAIN_DISPLAY_rotate_screen_radio_button_1_properties /* extended properties */
2418 };
2419 
2420 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_rotate_screen_radio_button_define =
2421 {
2422     "radio_button",
2423     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
2424     ID_RADIO_FOOT,                           /* widget id                      */
2425     #if defined(GX_WIDGET_USER_DATA)
2426     0,                                       /* user data                      */
2427     #endif
2428     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
2429     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2430     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
2431     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2432     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2433     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2434     gx_studio_radio_button_create,           /* create function                */
2435     GX_NULL,                                 /* drawing function override      */
2436     GX_NULL,                                 /* event function override        */
2437     {84, 425, 163, 448},                     /* widget size                    */
2438     &MAIN_DISPLAY_rotate_screen_radio_button_1_define, /* next widget definition */
2439     GX_NULL,                                 /* no child widgets               */
2440     offsetof(MAIN_DISPLAY_ROTATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_rotate_screen_radio_button), /* control block */
2441     (void *) &MAIN_DISPLAY_rotate_screen_radio_button_properties /* extended properties */
2442 };
2443 
2444 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_rotate_screen_pixelmap_window_define =
2445 {
2446     "pixelmap_window",
2447     GX_TYPE_WINDOW,                          /* widget type                    */
2448     GX_ID_NONE,                              /* widget id                      */
2449     #if defined(GX_WIDGET_USER_DATA)
2450     0,                                       /* user data                      */
2451     #endif
2452     GX_STYLE_BORDER_THIN,                    /* style flags                    */
2453     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2454     sizeof(GX_WINDOW),                       /* control block size             */
2455     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* normal color id         */
2456     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* selected color id       */
2457     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* disabled color id       */
2458     gx_studio_window_create,                 /* create function                */
2459     (VOID (*)(GX_WIDGET *)) pixelmap_draw,   /* drawing function override      */
2460     GX_NULL,                                 /* event function override        */
2461     {31, 69, 613, 400},                      /* widget size                    */
2462     &MAIN_DISPLAY_rotate_screen_radio_button_define, /* next widget definition */
2463     GX_NULL,                                 /* no child widgets               */
2464     offsetof(MAIN_DISPLAY_ROTATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_rotate_screen_pixelmap_window), /* control block */
2465     (void *) &MAIN_DISPLAY_rotate_screen_pixelmap_window_properties /* extended properties */
2466 };
2467 
2468 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_rotate_screen_prompt_12_define =
2469 {
2470     "prompt_12",
2471     GX_TYPE_PROMPT,                          /* widget type                    */
2472     ID_ANGLE_DISPLAY,                        /* widget id                      */
2473     #if defined(GX_WIDGET_USER_DATA)
2474     0,                                       /* user data                      */
2475     #endif
2476     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
2477     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2478     sizeof(GX_PROMPT),                       /* control block size             */
2479     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2480     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2481     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
2482     gx_studio_prompt_create,                 /* create function                */
2483     GX_NULL,                                 /* drawing function override      */
2484     GX_NULL,                                 /* event function override        */
2485     {574, 26, 617, 49},                      /* widget size                    */
2486     &MAIN_DISPLAY_rotate_screen_pixelmap_window_define, /* next widget definition */
2487     GX_NULL,                                 /* no child widgets               */
2488     offsetof(MAIN_DISPLAY_ROTATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_rotate_screen_prompt_12), /* control block */
2489     (void *) &MAIN_DISPLAY_rotate_screen_prompt_12_properties /* extended properties */
2490 };
2491 
2492 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_rotate_screen_slider_3_define =
2493 {
2494     "slider_3",
2495     GX_TYPE_SLIDER,                          /* widget type                    */
2496     ID_SLIDER_ANGLE,                         /* widget id                      */
2497     #if defined(GX_WIDGET_USER_DATA)
2498     0,                                       /* user data                      */
2499     #endif
2500     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
2501     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2502     sizeof(GX_SLIDER),                       /* control block size             */
2503     GX_COLOR_ID_BTN_UPPER,                   /* normal color id                */
2504     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2505     GX_COLOR_ID_BTN_UPPER,                   /* disabled color id              */
2506     gx_studio_slider_create,                 /* create function                */
2507     GX_NULL,                                 /* drawing function override      */
2508     GX_NULL,                                 /* event function override        */
2509     {388, 26, 553, 49},                      /* widget size                    */
2510     &MAIN_DISPLAY_rotate_screen_prompt_12_define, /* next widget definition    */
2511     GX_NULL,                                 /* no child widgets               */
2512     offsetof(MAIN_DISPLAY_ROTATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_rotate_screen_slider_3), /* control block */
2513     (void *) &MAIN_DISPLAY_rotate_screen_slider_3_properties /* extended properties */
2514 };
2515 
2516 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_rotate_screen_prompt_11_define =
2517 {
2518     "prompt_11",
2519     GX_TYPE_PROMPT,                          /* widget type                    */
2520     GX_ID_NONE,                              /* widget id                      */
2521     #if defined(GX_WIDGET_USER_DATA)
2522     0,                                       /* user data                      */
2523     #endif
2524     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
2525     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2526     sizeof(GX_PROMPT),                       /* control block size             */
2527     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2528     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2529     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
2530     gx_studio_prompt_create,                 /* create function                */
2531     GX_NULL,                                 /* drawing function override      */
2532     GX_NULL,                                 /* event function override        */
2533     {248, 26, 367, 49},                      /* widget size                    */
2534     &MAIN_DISPLAY_rotate_screen_slider_3_define, /* next widget definition     */
2535     GX_NULL,                                 /* no child widgets               */
2536     offsetof(MAIN_DISPLAY_ROTATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_rotate_screen_prompt_11), /* control block */
2537     (void *) &MAIN_DISPLAY_rotate_screen_prompt_11_properties /* extended properties */
2538 };
2539 
2540 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_rotate_screen_checkbox_1_define =
2541 {
2542     "checkbox_1",
2543     GX_TYPE_CHECKBOX,                        /* widget type                    */
2544     ID_DIRECT_ROTATE,                        /* widget id                      */
2545     #if defined(GX_WIDGET_USER_DATA)
2546     0,                                       /* user data                      */
2547     #endif
2548     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
2549     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2550     sizeof(GX_CHECKBOX),                     /* control block size             */
2551     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2552     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2553     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2554     gx_studio_checkbox_create,               /* create function                */
2555     GX_NULL,                                 /* drawing function override      */
2556     GX_NULL,                                 /* event function override        */
2557     {49, 26, 198, 49},                       /* widget size                    */
2558     &MAIN_DISPLAY_rotate_screen_prompt_11_define, /* next widget definition    */
2559     GX_NULL,                                 /* no child widgets               */
2560     offsetof(MAIN_DISPLAY_ROTATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_rotate_screen_checkbox_1), /* control block */
2561     (void *) &MAIN_DISPLAY_rotate_screen_checkbox_1_properties /* extended properties */
2562 };
2563 
2564 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_rotate_screen_next_button_8_define =
2565 {
2566     "next_button_8",
2567     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
2568     IDB_NEXT,                                /* widget id                      */
2569     #if defined(GX_WIDGET_USER_DATA)
2570     0,                                       /* user data                      */
2571     #endif
2572     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
2573     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2574     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
2575     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* normal color id         */
2576     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* selected color id       */
2577     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* disabled color id       */
2578     gx_studio_text_button_create,            /* create function                */
2579     GX_NULL,                                 /* drawing function override      */
2580     GX_NULL,                                 /* event function override        */
2581     {532, 426, 611, 450},                    /* widget size                    */
2582     &MAIN_DISPLAY_rotate_screen_checkbox_1_define, /* next widget definition   */
2583     GX_NULL,                                 /* no child widgets               */
2584     offsetof(MAIN_DISPLAY_ROTATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_rotate_screen_next_button_8), /* control block */
2585     (void *) &MAIN_DISPLAY_rotate_screen_next_button_8_properties /* extended properties */
2586 };
2587 
2588 GX_STUDIO_ACTION MAIN_DISPLAY_rotate_screen__idb_next_gx_event_clicked_actions[2] = {
2589     {GX_ACTION_TYPE_TOGGLE, 0, &MAIN_DISPLAY_root_window, &MAIN_DISPLAY_child_template_screen, GX_NULL},
2590     {0, 0, GX_NULL, GX_NULL, GX_NULL}
2591 };
2592 
2593 static GX_STUDIO_EVENT_ENTRY gx_studio_MAIN_DISPLAY_rotate_screen_event_table[] = {
2594     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_rotate_screen__idb_next_gx_event_clicked_actions},
2595     {0, 0, GX_NULL}
2596 };
2597 
2598 GX_STUDIO_EVENT_PROCESS MAIN_DISPLAY_rotate_screen_event_chain = {gx_studio_MAIN_DISPLAY_rotate_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))rotate_event_handler};
gx_studio_MAIN_DISPLAY_rotate_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)2599 static UINT gx_studio_MAIN_DISPLAY_rotate_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
2600 {
2601     return (gx_studio_auto_event_handler(target, event_ptr, &MAIN_DISPLAY_rotate_screen_event_chain));
2602 }
2603 
2604 
2605 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_rotate_screen_define =
2606 {
2607     "MAIN_DISPLAY_rotate_screen",
2608     GX_TYPE_WINDOW,                          /* widget type                    */
2609     ID_ROTATE_SCREEN,                        /* widget id                      */
2610     #if defined(GX_WIDGET_USER_DATA)
2611     0,                                       /* user data                      */
2612     #endif
2613     GX_STYLE_BORDER_THIN,                    /* style flags                    */
2614     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2615     sizeof(MAIN_DISPLAY_ROTATE_SCREEN_CONTROL_BLOCK), /* control block size    */
2616     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2617     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2618     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2619     gx_studio_window_create,                 /* create function                */
2620     GX_NULL,                                 /* drawing function override      */
2621     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_MAIN_DISPLAY_rotate_screen_event_process, /* event function override */
2622     {0, 0, 639, 479},                        /* widget size                    */
2623     GX_NULL,                                 /* next widget                    */
2624     &MAIN_DISPLAY_rotate_screen_next_button_8_define, /* child widget          */
2625     0,                                       /* control block                  */
2626     (void *) &MAIN_DISPLAY_rotate_screen_properties /* extended properties     */
2627 };
2628 GX_WINDOW_PROPERTIES MAIN_DISPLAY_scroll_wheel_screen_properties =
2629 {
2630     0                                        /* wallpaper pixelmap id          */
2631 };
2632 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_scroll_wheel_screen_next_button_6_properties =
2633 {
2634     GX_STRING_ID_MAIN_DISPLAY_STRING_36,     /* string id                      */
2635     GX_FONT_ID_BUTTON,                       /* font id                        */
2636     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
2637     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* selected text color            */
2638     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
2639 };
2640 GX_PROMPT_PROPERTIES MAIN_DISPLAY_scroll_wheel_screen_prompt_properties =
2641 {
2642     GX_STRING_ID_MAIN_DISPLAY_STRING_48,     /* string id                      */
2643     GX_FONT_ID_PROMPT,                       /* font id                        */
2644     GX_COLOR_ID_TEXT,                        /* normal text color              */
2645     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
2646     GX_COLOR_ID_TEXT                         /* disabled text color            */
2647 };
2648 GX_NUMERIC_SCROLL_WHEEL_PROPERTIES MAIN_DISPLAY_scroll_wheel_screen_day_wheel_properties =
2649 {
2650     31,                                      /* total rows                     */
2651     0,                                       /* selected row                   */
2652     45,                                      /* row height                     */
2653     240,                                     /* start alpha                    */
2654     0,                                       /* end alpha                      */
2655     GX_FONT_ID_MAIN_DISPLAY_NORMAL_FONT,     /* normal font id                 */
2656     GX_FONT_ID_MAIN_DISPLAY_SELECTED_FONT,   /* selected font id               */
2657     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* normal text color id           */
2658     GX_COLOR_ID_MAIN_DISPLAY_ORANGE,         /* selected text color id         */
2659     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* disabled text color id         */
2660     0,                                       /* wallpaper id                   */
2661     GX_PIXELMAP_ID_MAIN_DISPLAY_FILL,        /* selected background            */
2662     day_wheel_value_format,                  /* format callback                */
2663     1,                                       /* start val                      */
2664     31,                                      /* end val                        */
2665 };
2666 GX_CONST GX_RESOURCE_ID MAIN_DISPLAY_scroll_wheel_screen_month_wheel_string_id_list[]={
2667     GX_STRING_ID_MAIN_DISPLAY_STRING_63,
2668     GX_STRING_ID_MAIN_DISPLAY_STRING_69,
2669     GX_STRING_ID_MAIN_DISPLAY_STRING_70,
2670     GX_STRING_ID_MAIN_DISPLAY_STRING_71,
2671     GX_STRING_ID_MAIN_DISPLAY_STRING_72,
2672     GX_STRING_ID_MAIN_DISPLAY_STRING_73,
2673     GX_STRING_ID_MAIN_DISPLAY_STRING_74,
2674     GX_STRING_ID_MAIN_DISPLAY_STRING_75,
2675     GX_STRING_ID_MAIN_DISPLAY_STRING_76,
2676     GX_STRING_ID_MAIN_DISPLAY_STRING_77,
2677     GX_STRING_ID_MAIN_DISPLAY_STRING_78,
2678     GX_STRING_ID_MAIN_DISPLAY_STRING_79
2679 };
2680 GX_STRING_SCROLL_WHEEL_PROPERTIES MAIN_DISPLAY_scroll_wheel_screen_month_wheel_properties =
2681 {
2682     12,                                      /* total rows                     */
2683     4,                                       /* selected row                   */
2684     45,                                      /* row height                     */
2685     240,                                     /* start alpha                    */
2686     0,                                       /* end alpha                      */
2687     GX_FONT_ID_MAIN_DISPLAY_NORMAL_FONT,     /* normal font id                 */
2688     GX_FONT_ID_MAIN_DISPLAY_SELECTED_FONT,   /* selected font id               */
2689     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* normal text color id           */
2690     GX_COLOR_ID_MAIN_DISPLAY_ORANGE,         /* selected text color id         */
2691     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* disabled text color id         */
2692     0,                                       /* wallpaper id                   */
2693     GX_PIXELMAP_ID_MAIN_DISPLAY_FILL,        /* selected background            */
2694     MAIN_DISPLAY_scroll_wheel_screen_month_wheel_string_id_list, /* string list */
2695     GX_NULL                                  /* callback                       */
2696 
2697 };
2698 GX_NUMERIC_SCROLL_WHEEL_PROPERTIES MAIN_DISPLAY_scroll_wheel_screen_year_wheel_properties =
2699 {
2700     9,                                       /* total rows                     */
2701     7,                                       /* selected row                   */
2702     45,                                      /* row height                     */
2703     240,                                     /* start alpha                    */
2704     0,                                       /* end alpha                      */
2705     GX_FONT_ID_MAIN_DISPLAY_NORMAL_FONT,     /* normal font id                 */
2706     GX_FONT_ID_MAIN_DISPLAY_SELECTED_FONT,   /* selected font id               */
2707     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* normal text color id           */
2708     GX_COLOR_ID_MAIN_DISPLAY_ORANGE,         /* selected text color id         */
2709     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* disabled text color id         */
2710     0,                                       /* wallpaper id                   */
2711     GX_PIXELMAP_ID_MAIN_DISPLAY_FILL,        /* selected background            */
2712     GX_NULL,                                 /* format callback                */
2713     1980,                                    /* start val                      */
2714     2020,                                    /* end val                        */
2715 };
2716 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_scroll_wheel_screen_button_properties =
2717 {
2718     GX_STRING_ID_MAIN_DISPLAY_STRING_50,     /* string id                      */
2719     GX_FONT_ID_BUTTON,                       /* font id                        */
2720     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
2721     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
2722     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
2723 };
2724 GX_CHAR MAIN_DISPLAY_scroll_wheel_screen_text_input_buffer[3];
2725 GX_SINGLE_LINE_TEXT_INPUT_PROPERTIES MAIN_DISPLAY_scroll_wheel_screen_text_input_properties =
2726 {
2727     GX_STRING_ID_MAIN_DISPLAY_STRING_51,     /* string id                      */
2728     GX_FONT_ID_BUTTON,                       /* font id                        */
2729     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* normal text color              */
2730     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* selected text color            */
2731     GX_COLOR_ID_MAIN_DISPLAY_BLACK,          /* disabled text color            */
2732     GX_COLOR_ID_READONLY_FILL,               /* readonly fill color            */
2733     GX_COLOR_ID_READONLY_TEXT,               /* readonly text color            */
2734     MAIN_DISPLAY_scroll_wheel_screen_text_input_buffer, /* buffer              */
2735     3,                                       /* buffer size                    */
2736 };
2737 
2738 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_scroll_wheel_screen_text_input_define =
2739 {
2740     "text_input",
2741     GX_TYPE_SINGLE_LINE_TEXT_INPUT,          /* widget type                    */
2742     ID_DAY_INPUT,                            /* widget id                      */
2743     #if defined(GX_WIDGET_USER_DATA)
2744     0,                                       /* user data                      */
2745     #endif
2746     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_RIGHT,   /* style flags */
2747     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2748     sizeof(GX_SINGLE_LINE_TEXT_INPUT),       /* control block size             */
2749     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2750     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2751     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2752     gx_studio_text_input_create,             /* create function                */
2753     GX_NULL,                                 /* drawing function override      */
2754     GX_NULL,                                 /* event function override        */
2755     {47, 399, 84, 432},                      /* widget size                    */
2756     GX_NULL,                                 /* no next widget                 */
2757     GX_NULL,                                 /* no child widgets               */
2758     0,                                       /* runtime control block          */
2759     (void *) &MAIN_DISPLAY_scroll_wheel_screen_text_input_properties /* extended properties */
2760 };
2761 
2762 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_scroll_wheel_screen_button_define =
2763 {
2764     "button",
2765     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
2766     ID_DAY_SELECT,                           /* widget id                      */
2767     #if defined(GX_WIDGET_USER_DATA)
2768     0,                                       /* user data                      */
2769     #endif
2770     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
2771     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2772     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
2773     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2774     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2775     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2776     gx_studio_text_button_create,            /* create function                */
2777     GX_NULL,                                 /* drawing function override      */
2778     GX_NULL,                                 /* event function override        */
2779     {93, 400, 174, 433},                     /* widget size                    */
2780     &MAIN_DISPLAY_scroll_wheel_screen_text_input_define, /* next widget definition */
2781     GX_NULL,                                 /* no child widgets               */
2782     0,                                       /* runtime control block          */
2783     (void *) &MAIN_DISPLAY_scroll_wheel_screen_button_properties /* extended properties */
2784 };
2785 
2786 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_scroll_wheel_screen_year_wheel_define =
2787 {
2788     "year_wheel",
2789     GX_TYPE_NUMERIC_SCROLL_WHEEL,            /* widget type                    */
2790     ID_YEAR_WHEEL,                           /* widget id                      */
2791     #if defined(GX_WIDGET_USER_DATA)
2792     0,                                       /* user data                      */
2793     #endif
2794     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_WRAP|GX_STYLE_TEXT_SCROLL_WHEEL_ROUND|GX_STYLE_TEXT_CENTER,   /* style flags */
2795     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2796     sizeof(GX_NUMERIC_SCROLL_WHEEL),         /* control block size             */
2797     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2798     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2799     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2800     gx_studio_numeric_scroll_wheel_create,     /* create function              */
2801     GX_NULL,                                 /* drawing function override      */
2802     GX_NULL,                                 /* event function override        */
2803     {380, 117, 524, 352},                    /* widget size                    */
2804     &MAIN_DISPLAY_scroll_wheel_screen_button_define, /* next widget definition */
2805     GX_NULL,                                 /* no child widgets               */
2806     0,                                       /* runtime control block          */
2807     (void *) &MAIN_DISPLAY_scroll_wheel_screen_year_wheel_properties /* extended properties */
2808 };
2809 
2810 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_scroll_wheel_screen_month_wheel_define =
2811 {
2812     "month_wheel",
2813     GX_TYPE_STRING_SCROLL_WHEEL,             /* widget type                    */
2814     ID_MONTH_WHEEL,                          /* widget id                      */
2815     #if defined(GX_WIDGET_USER_DATA)
2816     0,                                       /* user data                      */
2817     #endif
2818     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_SCROLL_WHEEL_ROUND|GX_STYLE_TEXT_CENTER,   /* style flags */
2819     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2820     sizeof(GX_STRING_SCROLL_WHEEL),          /* control block size             */
2821     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2822     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2823     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2824     gx_studio_string_scroll_wheel_create,     /* create function               */
2825     GX_NULL,                                 /* drawing function override      */
2826     GX_NULL,                                 /* event function override        */
2827     {210, 117, 379, 352},                    /* widget size                    */
2828     &MAIN_DISPLAY_scroll_wheel_screen_year_wheel_define, /* next widget definition */
2829     GX_NULL,                                 /* no child widgets               */
2830     0,                                       /* runtime control block          */
2831     (void *) &MAIN_DISPLAY_scroll_wheel_screen_month_wheel_properties /* extended properties */
2832 };
2833 
2834 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_scroll_wheel_screen_day_wheel_define =
2835 {
2836     "day_wheel",
2837     GX_TYPE_NUMERIC_SCROLL_WHEEL,            /* widget type                    */
2838     ID_DAY_WHEEL,                            /* widget id                      */
2839     #if defined(GX_WIDGET_USER_DATA)
2840     0,                                       /* user data                      */
2841     #endif
2842     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_WRAP|GX_STYLE_TEXT_SCROLL_WHEEL_ROUND|GX_STYLE_TEXT_CENTER,   /* style flags */
2843     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2844     sizeof(GX_NUMERIC_SCROLL_WHEEL),         /* control block size             */
2845     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2846     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2847     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2848     gx_studio_numeric_scroll_wheel_create,     /* create function              */
2849     GX_NULL,                                 /* drawing function override      */
2850     GX_NULL,                                 /* event function override        */
2851     {100, 117, 209, 352},                    /* widget size                    */
2852     &MAIN_DISPLAY_scroll_wheel_screen_month_wheel_define, /* next widget definition */
2853     GX_NULL,                                 /* no child widgets               */
2854     0,                                       /* runtime control block          */
2855     (void *) &MAIN_DISPLAY_scroll_wheel_screen_day_wheel_properties /* extended properties */
2856 };
2857 
2858 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_scroll_wheel_screen_prompt_define =
2859 {
2860     "prompt",
2861     GX_TYPE_PROMPT,                          /* widget type                    */
2862     GX_ID_NONE,                              /* widget id                      */
2863     #if defined(GX_WIDGET_USER_DATA)
2864     0,                                       /* user data                      */
2865     #endif
2866     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
2867     0,                                       /* status flags                   */
2868     sizeof(GX_PROMPT),                       /* control block size             */
2869     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2870     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2871     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
2872     gx_studio_prompt_create,                 /* create function                */
2873     GX_NULL,                                 /* drawing function override      */
2874     GX_NULL,                                 /* event function override        */
2875     {223, 53, 384, 70},                      /* widget size                    */
2876     &MAIN_DISPLAY_scroll_wheel_screen_day_wheel_define, /* next widget definition */
2877     GX_NULL,                                 /* no child widgets               */
2878     0,                                       /* runtime control block          */
2879     (void *) &MAIN_DISPLAY_scroll_wheel_screen_prompt_properties /* extended properties */
2880 };
2881 
2882 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_scroll_wheel_screen_next_button_6_define =
2883 {
2884     "next_button_6",
2885     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
2886     IDB_NEXT,                                /* widget id                      */
2887     #if defined(GX_WIDGET_USER_DATA)
2888     0,                                       /* user data                      */
2889     #endif
2890     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
2891     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2892     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
2893     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* normal color id         */
2894     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* selected color id       */
2895     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* disabled color id       */
2896     gx_studio_text_button_create,            /* create function                */
2897     GX_NULL,                                 /* drawing function override      */
2898     GX_NULL,                                 /* event function override        */
2899     {493, 405, 572, 429},                    /* widget size                    */
2900     &MAIN_DISPLAY_scroll_wheel_screen_prompt_define, /* next widget definition */
2901     GX_NULL,                                 /* no child widgets               */
2902     0,                                       /* runtime control block          */
2903     (void *) &MAIN_DISPLAY_scroll_wheel_screen_next_button_6_properties /* extended properties */
2904 };
2905 
2906 GX_STUDIO_ACTION MAIN_DISPLAY_scroll_wheel_screen__idb_next_gx_event_clicked_actions[2] = {
2907     {GX_ACTION_TYPE_TOGGLE, 0, &MAIN_DISPLAY_root_window, &MAIN_DISPLAY_menu_screen, GX_NULL},
2908     {0, 0, GX_NULL, GX_NULL, GX_NULL}
2909 };
2910 
2911 static GX_STUDIO_EVENT_ENTRY gx_studio_MAIN_DISPLAY_scroll_wheel_screen_event_table[] = {
2912     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_scroll_wheel_screen__idb_next_gx_event_clicked_actions},
2913     {0, 0, GX_NULL}
2914 };
2915 
2916 GX_STUDIO_EVENT_PROCESS MAIN_DISPLAY_scroll_wheel_screen_event_chain = {gx_studio_MAIN_DISPLAY_scroll_wheel_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))scroll_wheel_screen_event_handler};
gx_studio_MAIN_DISPLAY_scroll_wheel_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)2917 static UINT gx_studio_MAIN_DISPLAY_scroll_wheel_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
2918 {
2919     return (gx_studio_auto_event_handler(target, event_ptr, &MAIN_DISPLAY_scroll_wheel_screen_event_chain));
2920 }
2921 
2922 
2923 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_scroll_wheel_screen_define =
2924 {
2925     "MAIN_DISPLAY_scroll_wheel_screen",
2926     GX_TYPE_WINDOW,                          /* widget type                    */
2927     ID_SCROLL_WHEEL_SCREEN,                  /* widget id                      */
2928     #if defined(GX_WIDGET_USER_DATA)
2929     0,                                       /* user data                      */
2930     #endif
2931     GX_STYLE_BORDER_THICK|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags     */
2932     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2933     sizeof(MAIN_DISPLAY_SCROLL_WHEEL_SCREEN_CONTROL_BLOCK), /* control block size */
2934     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2935     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2936     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2937     gx_studio_window_create,                 /* create function                */
2938     GX_NULL,                                 /* drawing function override      */
2939     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_MAIN_DISPLAY_scroll_wheel_screen_event_process, /* event function override */
2940     {30, 30, 609, 449},                      /* widget size                    */
2941     GX_NULL,                                 /* next widget                    */
2942     &MAIN_DISPLAY_scroll_wheel_screen_next_button_6_define, /* child widget    */
2943     0,                                       /* control block                  */
2944     (void *) &MAIN_DISPLAY_scroll_wheel_screen_properties /* extended properties */
2945 };
2946 GX_WINDOW_PROPERTIES MAIN_DISPLAY_gauge_screen_properties =
2947 {
2948     0                                        /* wallpaper pixelmap id          */
2949 };
2950 GX_PROMPT_PROPERTIES MAIN_DISPLAY_gauge_screen_prompt_6_properties =
2951 {
2952     GX_STRING_ID_MAIN_DISPLAY_STRING_44,     /* string id                      */
2953     GX_FONT_ID_PROMPT,                       /* font id                        */
2954     GX_COLOR_ID_TEXT,                        /* normal text color              */
2955     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
2956     GX_COLOR_ID_TEXT                         /* disabled text color            */
2957 };
2958 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_gauge_screen_next_button_4_properties =
2959 {
2960     GX_STRING_ID_MAIN_DISPLAY_STRING_36,     /* string id                      */
2961     GX_FONT_ID_BUTTON,                       /* font id                        */
2962     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
2963     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* selected text color            */
2964     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
2965 };
2966 GX_CIRCULAR_GAUGE_PROPERTIES MAIN_DISPLAY_gauge_screen_gauge_1_properties =
2967 {
2968     0,                                       /* start angle                    */
2969     30,                                      /* animation steps                */
2970     1,                                       /* animation delay                */
2971     140,                                     /* needle xpos                    */
2972     140,                                     /* needle yos                     */
2973     20,                                      /* needle xcor                    */
2974     88,                                      /* needle ycor                    */
2975     GX_PIXELMAP_ID_MAIN_DISPLAY_GUAGEMETER,  /* normal pixelmap id             */
2976     0,                                       /* selected pixelmap id           */
2977     GX_PIXELMAP_ID_MAIN_DISPLAY_NEEDLE       /* needle pixelmap id             */
2978 };
2979 
2980 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_gauge_screen_gauge_1_define =
2981 {
2982     "gauge_1",
2983     GX_TYPE_CIRCULAR_GAUGE,                  /* widget type                    */
2984     ID_GAUGE,                                /* widget id                      */
2985     #if defined(GX_WIDGET_USER_DATA)
2986     0,                                       /* user data                      */
2987     #endif
2988     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
2989     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2990     sizeof(GX_CIRCULAR_GAUGE),               /* control block size             */
2991     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2992     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2993     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
2994     gx_studio_circular_gauge_create,         /* create function                */
2995     GX_NULL,                                 /* drawing function override      */
2996     GX_NULL,                                 /* event function override        */
2997     {167, 80, 446, 359},                     /* widget size                    */
2998     GX_NULL,                                 /* no next widget                 */
2999     GX_NULL,                                 /* no child widgets               */
3000     offsetof(MAIN_DISPLAY_GAUGE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_gauge_screen_gauge_1), /* control block */
3001     (void *) &MAIN_DISPLAY_gauge_screen_gauge_1_properties /* extended properties */
3002 };
3003 
3004 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_gauge_screen_next_button_4_define =
3005 {
3006     "next_button_4",
3007     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
3008     IDB_NEXT,                                /* widget id                      */
3009     #if defined(GX_WIDGET_USER_DATA)
3010     0,                                       /* user data                      */
3011     #endif
3012     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
3013     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3014     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
3015     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* normal color id         */
3016     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* selected color id       */
3017     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* disabled color id       */
3018     gx_studio_text_button_create,            /* create function                */
3019     GX_NULL,                                 /* drawing function override      */
3020     GX_NULL,                                 /* event function override        */
3021     {515, 411, 594, 435},                    /* widget size                    */
3022     &MAIN_DISPLAY_gauge_screen_gauge_1_define, /* next widget definition       */
3023     GX_NULL,                                 /* no child widgets               */
3024     offsetof(MAIN_DISPLAY_GAUGE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_gauge_screen_next_button_4), /* control block */
3025     (void *) &MAIN_DISPLAY_gauge_screen_next_button_4_properties /* extended properties */
3026 };
3027 
3028 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_gauge_screen_prompt_6_define =
3029 {
3030     "prompt_6",
3031     GX_TYPE_PROMPT,                          /* widget type                    */
3032     GX_ID_NONE,                              /* widget id                      */
3033     #if defined(GX_WIDGET_USER_DATA)
3034     0,                                       /* user data                      */
3035     #endif
3036     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3037     0,                                       /* status flags                   */
3038     sizeof(GX_PROMPT),                       /* control block size             */
3039     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3040     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3041     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3042     gx_studio_prompt_create,                 /* create function                */
3043     (VOID (*)(GX_WIDGET *)) gauge_prompt_draw, /* drawing function override    */
3044     GX_NULL,                                 /* event function override        */
3045     {256, 380, 365, 397},                    /* widget size                    */
3046     &MAIN_DISPLAY_gauge_screen_next_button_4_define, /* next widget definition */
3047     GX_NULL,                                 /* no child widgets               */
3048     offsetof(MAIN_DISPLAY_GAUGE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_gauge_screen_prompt_6), /* control block */
3049     (void *) &MAIN_DISPLAY_gauge_screen_prompt_6_properties /* extended properties */
3050 };
3051 
3052 GX_STUDIO_ACTION MAIN_DISPLAY_gauge_screen__idb_next_gx_event_clicked_actions[2] = {
3053     {GX_ACTION_TYPE_TOGGLE, 0, &MAIN_DISPLAY_root_window, &MAIN_DISPLAY_sprite_screen, GX_NULL},
3054     {0, 0, GX_NULL, GX_NULL, GX_NULL}
3055 };
3056 
3057 static GX_STUDIO_EVENT_ENTRY gx_studio_MAIN_DISPLAY_gauge_screen_event_table[] = {
3058     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_gauge_screen__idb_next_gx_event_clicked_actions},
3059     {0, 0, GX_NULL}
3060 };
3061 
3062 GX_STUDIO_EVENT_PROCESS MAIN_DISPLAY_gauge_screen_event_chain = {gx_studio_MAIN_DISPLAY_gauge_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gauge_event_handle};
gx_studio_MAIN_DISPLAY_gauge_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)3063 static UINT gx_studio_MAIN_DISPLAY_gauge_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
3064 {
3065     return (gx_studio_auto_event_handler(target, event_ptr, &MAIN_DISPLAY_gauge_screen_event_chain));
3066 }
3067 
3068 
3069 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_gauge_screen_define =
3070 {
3071     "MAIN_DISPLAY_gauge_screen",
3072     GX_TYPE_WINDOW,                          /* widget type                    */
3073     ID_GAUGE_SCREEN,                         /* widget id                      */
3074     #if defined(GX_WIDGET_USER_DATA)
3075     0,                                       /* user data                      */
3076     #endif
3077     GX_STYLE_BORDER_THICK,                   /* style flags                    */
3078     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3079     sizeof(MAIN_DISPLAY_GAUGE_SCREEN_CONTROL_BLOCK), /* control block size     */
3080     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
3081     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
3082     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
3083     gx_studio_window_create,                 /* create function                */
3084     GX_NULL,                                 /* drawing function override      */
3085     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_MAIN_DISPLAY_gauge_screen_event_process, /* event function override */
3086     {33, 28, 608, 448},                      /* widget size                    */
3087     GX_NULL,                                 /* next widget                    */
3088     &MAIN_DISPLAY_gauge_screen_prompt_6_define, /* child widget                */
3089     0,                                       /* control block                  */
3090     (void *) &MAIN_DISPLAY_gauge_screen_properties /* extended properties      */
3091 };
3092 GX_WINDOW_PROPERTIES MAIN_DISPLAY_text_screen_properties =
3093 {
3094     0                                        /* wallpaper pixelmap id          */
3095 };
3096 GX_PROMPT_PROPERTIES MAIN_DISPLAY_text_screen_prompt_1_properties =
3097 {
3098     GX_STRING_ID_MAIN_DISPLAY_STRING_24,     /* string id                      */
3099     GX_FONT_ID_PROMPT,                       /* font id                        */
3100     GX_COLOR_ID_TEXT,                        /* normal text color              */
3101     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3102     GX_COLOR_ID_TEXT                         /* disabled text color            */
3103 };
3104 GX_PROMPT_PROPERTIES MAIN_DISPLAY_text_screen_prompt_2_properties =
3105 {
3106     GX_STRING_ID_MAIN_DISPLAY_STRING_29,     /* string id                      */
3107     GX_FONT_ID_PROMPT,                       /* font id                        */
3108     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
3109     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* selected text color            */
3110     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
3111 };
3112 GX_PROMPT_PROPERTIES MAIN_DISPLAY_text_screen_prompt_3_properties =
3113 {
3114     GX_STRING_ID_MAIN_DISPLAY_STRING_27,     /* string id                      */
3115     GX_FONT_ID_PROMPT,                       /* font id                        */
3116     GX_COLOR_ID_TEXT,                        /* normal text color              */
3117     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3118     GX_COLOR_ID_TEXT                         /* disabled text color            */
3119 };
3120 GX_PIXELMAP_PROMPT_PROPERTIES MAIN_DISPLAY_text_screen_prompt_4_properties =
3121 {
3122     GX_STRING_ID_MAIN_DISPLAY_STRING_30,     /* string id                      */
3123     GX_FONT_ID_PROMPT,                       /* font id                        */
3124     GX_COLOR_ID_TEXT,                        /* normal text color              */
3125     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3126     GX_COLOR_ID_TEXT,                        /* disabled text color            */
3127     GX_PIXELMAP_ID_MAIN_DISPLAY_TFIELD_LEFT_SMALL, /* left pixelmap id         */
3128     GX_PIXELMAP_ID_MAIN_DISPLAY_TFIELD_FILL_SMALL, /* fill pixelmap id         */
3129     GX_PIXELMAP_ID_MAIN_DISPLAY_TFIELD_RIGHT_SMALL, /* right pixelmap id       */
3130     0,                                       /* selected left pixelmap id      */
3131     0,                                       /* selected fill pixelmap id      */
3132     0                                        /* selected right pixelmap id     */
3133 };
3134 GX_CHAR MAIN_DISPLAY_text_screen_text_input_1_buffer[100];
3135 GX_SINGLE_LINE_TEXT_INPUT_PROPERTIES MAIN_DISPLAY_text_screen_text_input_1_properties =
3136 {
3137     GX_STRING_ID_MAIN_DISPLAY_STRING_34,     /* string id                      */
3138     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
3139     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
3140     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected text color            */
3141     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled text color            */
3142     GX_COLOR_ID_READONLY_FILL,               /* readonly fill color            */
3143     GX_COLOR_ID_READONLY_TEXT,               /* readonly text color            */
3144     MAIN_DISPLAY_text_screen_text_input_1_buffer, /* buffer                    */
3145     100,                                     /* buffer size                    */
3146 };
3147 GX_ML_TEXT_VIEW_PROPERTIES MAIN_DISPLAY_text_screen_text_view_1_properties =
3148 {
3149     GX_STRING_ID_MAIN_DISPLAY_STRING_31,     /* string id                      */
3150     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
3151     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
3152     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected text color            */
3153     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled text color            */
3154     0,                                       /* whitespace                     */
3155     0                                        /* line_space                     */
3156 };
3157 GX_CHAR MAIN_DISPLAY_text_screen_text_input_2_buffer[200];
3158 GX_MULTI_LINE_TEXT_INPUT_PROPERTIES MAIN_DISPLAY_text_screen_text_input_2_properties =
3159 {
3160     GX_STRING_ID_MAIN_DISPLAY_STRING_33,     /* string id                      */
3161     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
3162     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
3163     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected text color            */
3164     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled text color            */
3165     GX_COLOR_ID_READONLY_FILL,               /* readonly fill color            */
3166     GX_COLOR_ID_READONLY_TEXT,               /* readonly text color            */
3167     0,                                       /* whitespace                     */
3168     0,                                       /* line_space                     */
3169     MAIN_DISPLAY_text_screen_text_input_2_buffer,  /* buffer                   */
3170     200                                      /* buffer size                    */
3171 };
3172 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_text_screen_next_button_2_properties =
3173 {
3174     GX_STRING_ID_MAIN_DISPLAY_STRING_36,     /* string id                      */
3175     GX_FONT_ID_BUTTON,                       /* font id                        */
3176     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
3177     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* selected text color            */
3178     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
3179 };
3180 GX_NUMERIC_PROMPT_PROPERTIES MAIN_DISPLAY_text_screen_numeric_prompt_properties =
3181 {
3182     0,                                       /* string id                      */
3183     GX_FONT_ID_PROMPT,                       /* font id                        */
3184     GX_COLOR_ID_MAIN_DISPLAY_BLUE,           /* normal text color              */
3185     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3186     GX_COLOR_ID_MAIN_DISPLAY_BLUE,           /* disabled text color            */
3187     format_func,                             /* format function                */
3188     0                                        /* numeric prompt value           */
3189 };
3190 GX_NUMERIC_PIXELMAP_PROMPT_PROPERTIES MAIN_DISPLAY_text_screen_numeric_pixelmap_prompt_properties =
3191 {
3192     0,                                       /* string id                      */
3193     GX_FONT_ID_PROMPT,                       /* font id                        */
3194     GX_COLOR_ID_TEXT,                        /* normal text color              */
3195     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3196     GX_COLOR_ID_TEXT,                        /* disabled text color            */
3197     GX_PIXELMAP_ID_MAIN_DISPLAY_BUTTON_DISABLED, /* left pixelmap id           */
3198     0,                                       /* fill pixelmap id               */
3199     0,                                       /* right pixelmap id              */
3200     0,                                       /* selected left pixelmap id      */
3201     0,                                       /* selected fill pixelmap id      */
3202     0,                                       /* selected right pixelmap id     */
3203     numeric_pixelmap_format_func,            /* format function                */
3204     0                                        /* numeric prompt value           */
3205 };
3206 
3207 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_text_screen_numeric_pixelmap_prompt_define =
3208 {
3209     "numeric_pixelmap_prompt",
3210     GX_TYPE_NUMERIC_PIXELMAP_PROMPT,         /* widget type                    */
3211     GX_ID_NONE,                              /* widget id                      */
3212     #if defined(GX_WIDGET_USER_DATA)
3213     0,                                       /* user data                      */
3214     #endif
3215     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3216     0,                                       /* status flags                   */
3217     sizeof(GX_NUMERIC_PIXELMAP_PROMPT),      /* control block size             */
3218     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3219     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3220     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3221     gx_studio_numeric_pixelmap_prompt_create,     /* create function           */
3222     GX_NULL,                                 /* drawing function override      */
3223     GX_NULL,                                 /* event function override        */
3224     {403, 131, 540, 209},                    /* widget size                    */
3225     GX_NULL,                                 /* no next widget                 */
3226     GX_NULL,                                 /* no child widgets               */
3227     offsetof(MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_text_screen_numeric_pixelmap_prompt), /* control block */
3228     (void *) &MAIN_DISPLAY_text_screen_numeric_pixelmap_prompt_properties /* extended properties */
3229 };
3230 
3231 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_text_screen_numeric_prompt_define =
3232 {
3233     "numeric_prompt",
3234     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
3235     GX_ID_NONE,                              /* widget id                      */
3236     #if defined(GX_WIDGET_USER_DATA)
3237     0,                                       /* user data                      */
3238     #endif
3239     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_RIGHT,   /* style flags */
3240     0,                                       /* status flags                   */
3241     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
3242     GX_COLOR_ID_MAIN_DISPLAY_ORANGE,         /* normal color id                */
3243     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3244     GX_COLOR_ID_MAIN_DISPLAY_ORANGE,         /* disabled color id              */
3245     gx_studio_numeric_prompt_create,         /* create function                */
3246     GX_NULL,                                 /* drawing function override      */
3247     GX_NULL,                                 /* event function override        */
3248     {448, 32, 567, 55},                      /* widget size                    */
3249     &MAIN_DISPLAY_text_screen_numeric_pixelmap_prompt_define, /* next widget definition */
3250     GX_NULL,                                 /* no child widgets               */
3251     offsetof(MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_text_screen_numeric_prompt), /* control block */
3252     (void *) &MAIN_DISPLAY_text_screen_numeric_prompt_properties /* extended properties */
3253 };
3254 
3255 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_text_screen_next_button_2_define =
3256 {
3257     "next_button_2",
3258     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
3259     IDB_NEXT,                                /* widget id                      */
3260     #if defined(GX_WIDGET_USER_DATA)
3261     0,                                       /* user data                      */
3262     #endif
3263     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
3264     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3265     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
3266     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* normal color id         */
3267     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* selected color id       */
3268     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* disabled color id       */
3269     gx_studio_text_button_create,            /* create function                */
3270     GX_NULL,                                 /* drawing function override      */
3271     GX_NULL,                                 /* event function override        */
3272     {496, 414, 575, 438},                    /* widget size                    */
3273     &MAIN_DISPLAY_text_screen_numeric_prompt_define, /* next widget definition */
3274     GX_NULL,                                 /* no child widgets               */
3275     offsetof(MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_text_screen_next_button_2), /* control block */
3276     (void *) &MAIN_DISPLAY_text_screen_next_button_2_properties /* extended properties */
3277 };
3278 
3279 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_text_screen_text_input_2_define =
3280 {
3281     "text_input_2",
3282     GX_TYPE_MULTI_LINE_TEXT_INPUT,           /* widget type                    */
3283     ID_ML_INPUT,                             /* widget id                      */
3284     #if defined(GX_WIDGET_USER_DATA)
3285     0,                                       /* user data                      */
3286     #endif
3287     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
3288     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3289     sizeof(GX_MULTI_LINE_TEXT_INPUT),        /* control block size             */
3290     GX_COLOR_ID_TEXT_INPUT_FILL,             /* normal color id                */
3291     GX_COLOR_ID_TEXT_INPUT_FILL,             /* selected color id              */
3292     GX_COLOR_ID_TEXT_INPUT_FILL,             /* disabled color id              */
3293     gx_studio_multi_line_text_input_create,     /* create function             */
3294     GX_NULL,                                 /* drawing function override      */
3295     GX_NULL,                                 /* event function override        */
3296     {321, 242, 572, 394},                    /* widget size                    */
3297     &MAIN_DISPLAY_text_screen_next_button_2_define, /* next widget definition  */
3298     GX_NULL,                                 /* no child widgets               */
3299     offsetof(MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_text_screen_text_input_2), /* control block */
3300     (void *) &MAIN_DISPLAY_text_screen_text_input_2_properties /* extended properties */
3301 };
3302 
3303 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_text_screen_text_view_1_define =
3304 {
3305     "text_view_1",
3306     GX_TYPE_MULTI_LINE_TEXT_VIEW,            /* widget type                    */
3307     ID_ML_VIEW,                              /* widget id                      */
3308     #if defined(GX_WIDGET_USER_DATA)
3309     0,                                       /* user data                      */
3310     #endif
3311     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
3312     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3313     sizeof(GX_MULTI_LINE_TEXT_VIEW),         /* control block size             */
3314     GX_COLOR_ID_TEXT_INPUT_FILL,             /* normal color id                */
3315     GX_COLOR_ID_TEXT_INPUT_FILL,             /* selected color id              */
3316     GX_COLOR_ID_TEXT_INPUT_FILL,             /* disabled color id              */
3317     gx_studio_multi_line_text_view_create,     /* create function              */
3318     GX_NULL,                                 /* drawing function override      */
3319     GX_NULL,                                 /* event function override        */
3320     {56, 242, 306, 394},                     /* widget size                    */
3321     &MAIN_DISPLAY_text_screen_text_input_2_define, /* next widget definition   */
3322     GX_NULL,                                 /* no child widgets               */
3323     offsetof(MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_text_screen_text_view_1), /* control block */
3324     (void *) &MAIN_DISPLAY_text_screen_text_view_1_properties /* extended properties */
3325 };
3326 
3327 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_text_screen_text_input_1_define =
3328 {
3329     "text_input_1",
3330     GX_TYPE_SINGLE_LINE_TEXT_INPUT,          /* widget type                    */
3331     ID_SL_INPUT,                             /* widget id                      */
3332     #if defined(GX_WIDGET_USER_DATA)
3333     0,                                       /* user data                      */
3334     #endif
3335     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
3336     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3337     sizeof(GX_SINGLE_LINE_TEXT_INPUT),       /* control block size             */
3338     GX_COLOR_ID_TEXT_INPUT_FILL,             /* normal color id                */
3339     GX_COLOR_ID_TEXT_INPUT_FILL,             /* selected color id              */
3340     GX_COLOR_ID_TEXT_INPUT_FILL,             /* disabled color id              */
3341     gx_studio_text_input_create,             /* create function                */
3342     GX_NULL,                                 /* drawing function override      */
3343     GX_NULL,                                 /* event function override        */
3344     {56, 196, 363, 231},                     /* widget size                    */
3345     &MAIN_DISPLAY_text_screen_text_view_1_define, /* next widget definition    */
3346     GX_NULL,                                 /* no child widgets               */
3347     offsetof(MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_text_screen_text_input_1), /* control block */
3348     (void *) &MAIN_DISPLAY_text_screen_text_input_1_properties /* extended properties */
3349 };
3350 
3351 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_text_screen_prompt_4_define =
3352 {
3353     "prompt_4",
3354     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
3355     ID_PROMPT_4,                             /* widget id                      */
3356     #if defined(GX_WIDGET_USER_DATA)
3357     0,                                       /* user data                      */
3358     #endif
3359     GX_STYLE_BORDER_NONE|GX_STYLE_TEXT_CENTER,   /* style flags                */
3360     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3361     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
3362     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3363     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3364     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3365     gx_studio_pixelmap_prompt_create,        /* create function                */
3366     GX_NULL,                                 /* drawing function override      */
3367     GX_NULL,                                 /* event function override        */
3368     {56, 151, 363, 186},                     /* widget size                    */
3369     &MAIN_DISPLAY_text_screen_text_input_1_define, /* next widget definition   */
3370     GX_NULL,                                 /* no child widgets               */
3371     offsetof(MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_text_screen_prompt_4), /* control block */
3372     (void *) &MAIN_DISPLAY_text_screen_prompt_4_properties /* extended properties */
3373 };
3374 
3375 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_text_screen_prompt_3_define =
3376 {
3377     "prompt_3",
3378     GX_TYPE_PROMPT,                          /* widget type                    */
3379     ID_PROMPT_3,                             /* widget id                      */
3380     #if defined(GX_WIDGET_USER_DATA)
3381     0,                                       /* user data                      */
3382     #endif
3383     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3384     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3385     sizeof(GX_PROMPT),                       /* control block size             */
3386     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3387     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3388     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3389     gx_studio_prompt_create,                 /* create function                */
3390     GX_NULL,                                 /* drawing function override      */
3391     GX_NULL,                                 /* event function override        */
3392     {56, 64, 363, 88},                       /* widget size                    */
3393     &MAIN_DISPLAY_text_screen_prompt_4_define, /* next widget definition       */
3394     GX_NULL,                                 /* no child widgets               */
3395     offsetof(MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_text_screen_prompt_3), /* control block */
3396     (void *) &MAIN_DISPLAY_text_screen_prompt_3_properties /* extended properties */
3397 };
3398 
3399 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_text_screen_prompt_2_define =
3400 {
3401     "prompt_2",
3402     GX_TYPE_PROMPT,                          /* widget type                    */
3403     ID_PROMPT_2,                             /* widget id                      */
3404     #if defined(GX_WIDGET_USER_DATA)
3405     0,                                       /* user data                      */
3406     #endif
3407     GX_STYLE_BORDER_THICK|GX_STYLE_TEXT_CENTER,   /* style flags               */
3408     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3409     sizeof(GX_PROMPT),                       /* control block size             */
3410     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3411     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3412     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3413     gx_studio_prompt_create,                 /* create function                */
3414     GX_NULL,                                 /* drawing function override      */
3415     GX_NULL,                                 /* event function override        */
3416     {56, 98, 363, 141},                      /* widget size                    */
3417     &MAIN_DISPLAY_text_screen_prompt_3_define, /* next widget definition       */
3418     GX_NULL,                                 /* no child widgets               */
3419     offsetof(MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_text_screen_prompt_2), /* control block */
3420     (void *) &MAIN_DISPLAY_text_screen_prompt_2_properties /* extended properties */
3421 };
3422 
3423 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_text_screen_prompt_1_define =
3424 {
3425     "prompt_1",
3426     GX_TYPE_PROMPT,                          /* widget type                    */
3427     ID_PROMPT_1,                             /* widget id                      */
3428     #if defined(GX_WIDGET_USER_DATA)
3429     0,                                       /* user data                      */
3430     #endif
3431     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3432     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3433     sizeof(GX_PROMPT),                       /* control block size             */
3434     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3435     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3436     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3437     gx_studio_prompt_create,                 /* create function                */
3438     GX_NULL,                                 /* drawing function override      */
3439     GX_NULL,                                 /* event function override        */
3440     {56, 31, 363, 54},                       /* widget size                    */
3441     &MAIN_DISPLAY_text_screen_prompt_2_define, /* next widget definition       */
3442     GX_NULL,                                 /* no child widgets               */
3443     offsetof(MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_text_screen_prompt_1), /* control block */
3444     (void *) &MAIN_DISPLAY_text_screen_prompt_1_properties /* extended properties */
3445 };
3446 
3447 GX_STUDIO_ACTION MAIN_DISPLAY_text_screen__idb_next_gx_event_clicked_actions[2] = {
3448     {GX_ACTION_TYPE_TOGGLE, 0, &MAIN_DISPLAY_root_window, &MAIN_DISPLAY_gauge_screen, GX_NULL},
3449     {0, 0, GX_NULL, GX_NULL, GX_NULL}
3450 };
3451 
3452 static GX_STUDIO_EVENT_ENTRY gx_studio_MAIN_DISPLAY_text_screen_event_table[] = {
3453     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_text_screen__idb_next_gx_event_clicked_actions},
3454     {0, 0, GX_NULL}
3455 };
3456 
3457 GX_STUDIO_EVENT_PROCESS MAIN_DISPLAY_text_screen_event_chain = {gx_studio_MAIN_DISPLAY_text_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))text_screen_event_handler};
gx_studio_MAIN_DISPLAY_text_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)3458 static UINT gx_studio_MAIN_DISPLAY_text_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
3459 {
3460     return (gx_studio_auto_event_handler(target, event_ptr, &MAIN_DISPLAY_text_screen_event_chain));
3461 }
3462 
3463 
3464 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_text_screen_define =
3465 {
3466     "MAIN_DISPLAY_text_screen",
3467     GX_TYPE_WINDOW,                          /* widget type                    */
3468     ID_TEXT_SCREEN,                          /* widget id                      */
3469     #if defined(GX_WIDGET_USER_DATA)
3470     0,                                       /* user data                      */
3471     #endif
3472     GX_STYLE_BORDER_THIN,                    /* style flags                    */
3473     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3474     sizeof(MAIN_DISPLAY_TEXT_SCREEN_CONTROL_BLOCK), /* control block size      */
3475     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
3476     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
3477     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
3478     gx_studio_window_create,                 /* create function                */
3479     GX_NULL,                                 /* drawing function override      */
3480     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_MAIN_DISPLAY_text_screen_event_process, /* event function override */
3481     {39, 25, 582, 443},                      /* widget size                    */
3482     GX_NULL,                                 /* next widget                    */
3483     &MAIN_DISPLAY_text_screen_prompt_1_define, /* child widget                 */
3484     0,                                       /* control block                  */
3485     (void *) &MAIN_DISPLAY_text_screen_properties /* extended properties       */
3486 };
3487 GX_WINDOW_PROPERTIES MAIN_DISPLAY_button_screen_properties =
3488 {
3489     0                                        /* wallpaper pixelmap id          */
3490 };
3491 GX_PROMPT_PROPERTIES MAIN_DISPLAY_button_screen_title_1_properties =
3492 {
3493     GX_STRING_ID_MAIN_DISPLAY_STRING_1,      /* string id                      */
3494     GX_FONT_ID_MAIN_DISPLAY_CJK,             /* font id                        */
3495     GX_COLOR_ID_TEXT,                        /* normal text color              */
3496     GX_COLOR_ID_TEXT,                        /* selected text color            */
3497     GX_COLOR_ID_TEXT                         /* disabled text color            */
3498 };
3499 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_button_screen_text_button_1_properties =
3500 {
3501     GX_STRING_ID_MAIN_DISPLAY_STRING_4,      /* string id                      */
3502     GX_FONT_ID_BUTTON,                       /* font id                        */
3503     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
3504     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
3505     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
3506 };
3507 GX_CHECKBOX_PROPERTIES MAIN_DISPLAY_button_screen_checkbox_properties =
3508 {
3509     GX_STRING_ID_MAIN_DISPLAY_STRING_3,      /* string id                      */
3510     GX_FONT_ID_BUTTON,                       /* font id                        */
3511     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
3512     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
3513     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
3514     0,                                       /* unchecked pixelmap id          */
3515     0,                                       /* checked pixelmap id            */
3516     0,                                       /* unchecked disabled pixelmap id */
3517     0                                        /* checked disabled pixelmap id   */
3518 };
3519 GX_RADIO_BUTTON_PROPERTIES MAIN_DISPLAY_button_screen_radio_button1_properties =
3520 {
3521     GX_STRING_ID_MAIN_DISPLAY_STRING_9,      /* string id                      */
3522     GX_FONT_ID_BUTTON,                       /* font id                        */
3523     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
3524     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
3525     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
3526     0,                                       /* off pixelmap id                */
3527     0,                                       /* on pixelmap id                 */
3528     0,                                       /* off disabled pixelmap id       */
3529     0                                        /* on disabled pixelmap id        */
3530 };
3531 GX_PIXELMAP_BUTTON_PROPERTIES MAIN_DISPLAY_button_screen_pixelmap_button1_properties =
3532 {
3533     GX_PIXELMAP_ID_MAIN_DISPLAY_ORANGE_BUTTON, /* normal pixelmap id           */
3534     GX_PIXELMAP_ID_MAIN_DISPLAY_ORANGE_BUTTON_PRESSED, /* selected pixelmap id */
3535     GX_PIXELMAP_ID_MAIN_DISPLAY_BUTTON_DISABLED  /* disabled pixelmap id       */
3536 };
3537 GX_ICON_PROPERTIES MAIN_DISPLAY_button_screen_icon_properties =
3538 {
3539     GX_PIXELMAP_ID_MAIN_DISPLAY_I_HISTORY_LG, /* normal pixelmap id            */
3540     0                                        /* selected pixelmap id           */
3541 };
3542 GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_button_screen_icon_button_6_properties =
3543 {
3544     GX_PIXELMAP_ID_MAIN_DISPLAY_SAVE_ICON    /* pixelmap id                    */
3545 };
3546 GX_PROMPT_PROPERTIES MAIN_DISPLAY_button_screen_button_label_1_properties =
3547 {
3548     GX_STRING_ID_MAIN_DISPLAY_STRING_10,     /* string id                      */
3549     GX_FONT_ID_PROMPT,                       /* font id                        */
3550     GX_COLOR_ID_TEXT,                        /* normal text color              */
3551     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3552     GX_COLOR_ID_TEXT                         /* disabled text color            */
3553 };
3554 GX_PROMPT_PROPERTIES MAIN_DISPLAY_button_screen_radio_label_1_properties =
3555 {
3556     GX_STRING_ID_MAIN_DISPLAY_STRING_13,     /* string id                      */
3557     GX_FONT_ID_PROMPT,                       /* font id                        */
3558     GX_COLOR_ID_TEXT,                        /* normal text color              */
3559     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3560     GX_COLOR_ID_TEXT                         /* disabled text color            */
3561 };
3562 GX_PROMPT_PROPERTIES MAIN_DISPLAY_button_screen_pixbutton_label_1_properties =
3563 {
3564     GX_STRING_ID_MAIN_DISPLAY_STRING_11,     /* string id                      */
3565     GX_FONT_ID_PROMPT,                       /* font id                        */
3566     GX_COLOR_ID_TEXT,                        /* normal text color              */
3567     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3568     GX_COLOR_ID_TEXT                         /* disabled text color            */
3569 };
3570 GX_PROMPT_PROPERTIES MAIN_DISPLAY_button_screen_texbutton_label_1_properties =
3571 {
3572     GX_STRING_ID_MAIN_DISPLAY_STRING_2,      /* string id                      */
3573     GX_FONT_ID_PROMPT,                       /* font id                        */
3574     GX_COLOR_ID_TEXT,                        /* normal text color              */
3575     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3576     GX_COLOR_ID_TEXT                         /* disabled text color            */
3577 };
3578 GX_PROMPT_PROPERTIES MAIN_DISPLAY_button_screen_checkbox_label_1_properties =
3579 {
3580     GX_STRING_ID_MAIN_DISPLAY_STRING_12,     /* string id                      */
3581     GX_FONT_ID_PROMPT,                       /* font id                        */
3582     GX_COLOR_ID_TEXT,                        /* normal text color              */
3583     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3584     GX_COLOR_ID_TEXT                         /* disabled text color            */
3585 };
3586 GX_PROMPT_PROPERTIES MAIN_DISPLAY_button_screen_iconbutton_label_1_properties =
3587 {
3588     GX_STRING_ID_MAIN_DISPLAY_STRING_14,     /* string id                      */
3589     GX_FONT_ID_PROMPT,                       /* font id                        */
3590     GX_COLOR_ID_TEXT,                        /* normal text color              */
3591     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3592     GX_COLOR_ID_TEXT                         /* disabled text color            */
3593 };
3594 GX_PROMPT_PROPERTIES MAIN_DISPLAY_button_screen_icon_label_1_properties =
3595 {
3596     GX_STRING_ID_MAIN_DISPLAY_STRING_15,     /* string id                      */
3597     GX_FONT_ID_PROMPT,                       /* font id                        */
3598     GX_COLOR_ID_TEXT,                        /* normal text color              */
3599     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3600     GX_COLOR_ID_TEXT                         /* disabled text color            */
3601 };
3602 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_button_screen_next_button_properties =
3603 {
3604     GX_STRING_ID_MAIN_DISPLAY_STRING_36,     /* string id                      */
3605     GX_FONT_ID_BUTTON,                       /* font id                        */
3606     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
3607     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* selected text color            */
3608     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
3609 };
3610 GX_ML_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_button_screen_multi_line_button_1_properties =
3611 {
3612     GX_STRING_ID_MAIN_DISPLAY_STRING_39,     /* string id                      */
3613     GX_FONT_ID_BUTTON,                       /* font id                        */
3614     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
3615     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
3616     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
3617 };
3618 GX_PROMPT_PROPERTIES MAIN_DISPLAY_button_screen_texbutton_label_2_properties =
3619 {
3620     GX_STRING_ID_MAIN_DISPLAY_STRING_40,     /* string id                      */
3621     GX_FONT_ID_PROMPT,                       /* font id                        */
3622     GX_COLOR_ID_TEXT,                        /* normal text color              */
3623     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3624     GX_COLOR_ID_TEXT                         /* disabled text color            */
3625 };
3626 GX_NUMERIC_PROMPT_PROPERTIES MAIN_DISPLAY_button_screen_count_prompt_properties =
3627 {
3628     0,                                       /* string id                      */
3629     GX_FONT_ID_PROMPT,                       /* font id                        */
3630     GX_COLOR_ID_TEXT,                        /* normal text color              */
3631     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3632     GX_COLOR_ID_TEXT,                        /* disabled text color            */
3633     GX_NULL,                                 /* format function                */
3634     0                                        /* numeric prompt value           */
3635 };
3636 
3637 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_count_prompt_define =
3638 {
3639     "count_prompt",
3640     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
3641     ID_COUNT_PROMPT,                         /* widget id                      */
3642     #if defined(GX_WIDGET_USER_DATA)
3643     0,                                       /* user data                      */
3644     #endif
3645     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
3646     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3647     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
3648     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3649     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3650     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3651     gx_studio_numeric_prompt_create,         /* create function                */
3652     GX_NULL,                                 /* drawing function override      */
3653     GX_NULL,                                 /* event function override        */
3654     {423, 102, 485, 125},                    /* widget size                    */
3655     GX_NULL,                                 /* no next widget                 */
3656     GX_NULL,                                 /* no child widgets               */
3657     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_count_prompt), /* control block */
3658     (void *) &MAIN_DISPLAY_button_screen_count_prompt_properties /* extended properties */
3659 };
3660 
3661 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_texbutton_label_2_define =
3662 {
3663     "texbutton_label_2",
3664     GX_TYPE_PROMPT,                          /* widget type                    */
3665     GX_ID_NONE,                              /* widget id                      */
3666     #if defined(GX_WIDGET_USER_DATA)
3667     0,                                       /* user data                      */
3668     #endif
3669     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_LEFT,   /* style flags */
3670     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3671     sizeof(GX_PROMPT),                       /* control block size             */
3672     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3673     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3674     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3675     gx_studio_prompt_create,                 /* create function                */
3676     GX_NULL,                                 /* drawing function override      */
3677     GX_NULL,                                 /* event function override        */
3678     {295, 195, 541, 218},                    /* widget size                    */
3679     &MAIN_DISPLAY_button_screen_count_prompt_define, /* next widget definition */
3680     GX_NULL,                                 /* no child widgets               */
3681     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_texbutton_label_2), /* control block */
3682     (void *) &MAIN_DISPLAY_button_screen_texbutton_label_2_properties /* extended properties */
3683 };
3684 
3685 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_multi_line_button_1_define =
3686 {
3687     "multi_line_button_1",
3688     GX_TYPE_MULTI_LINE_TEXT_BUTTON,          /* widget type                    */
3689     GX_ID_NONE,                              /* widget id                      */
3690     #if defined(GX_WIDGET_USER_DATA)
3691     0,                                       /* user data                      */
3692     #endif
3693     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
3694     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3695     sizeof(GX_MULTI_LINE_TEXT_BUTTON),       /* control block size             */
3696     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3697     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3698     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
3699     gx_studio_multi_line_text_button_create,     /* create function            */
3700     GX_NULL,                                 /* drawing function override      */
3701     GX_NULL,                                 /* event function override        */
3702     {117, 176, 252, 244},                    /* widget size                    */
3703     &MAIN_DISPLAY_button_screen_texbutton_label_2_define, /* next widget definition */
3704     GX_NULL,                                 /* no child widgets               */
3705     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_multi_line_button_1), /* control block */
3706     (void *) &MAIN_DISPLAY_button_screen_multi_line_button_1_properties /* extended properties */
3707 };
3708 
3709 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_next_button_define =
3710 {
3711     "next_button",
3712     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
3713     IDB_NEXT,                                /* widget id                      */
3714     #if defined(GX_WIDGET_USER_DATA)
3715     0,                                       /* user data                      */
3716     #endif
3717     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
3718     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3719     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
3720     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* normal color id         */
3721     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* selected color id       */
3722     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* disabled color id       */
3723     gx_studio_text_button_create,            /* create function                */
3724     GX_NULL,                                 /* drawing function override      */
3725     GX_NULL,                                 /* event function override        */
3726     {484, 441, 563, 465},                    /* widget size                    */
3727     &MAIN_DISPLAY_button_screen_multi_line_button_1_define, /* next widget definition */
3728     GX_NULL,                                 /* no child widgets               */
3729     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_next_button), /* control block */
3730     (void *) &MAIN_DISPLAY_button_screen_next_button_properties /* extended properties */
3731 };
3732 
3733 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_icon_label_1_define =
3734 {
3735     "icon_label_1",
3736     GX_TYPE_PROMPT,                          /* widget type                    */
3737     GX_ID_NONE,                              /* widget id                      */
3738     #if defined(GX_WIDGET_USER_DATA)
3739     0,                                       /* user data                      */
3740     #endif
3741     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_LEFT,   /* style flags */
3742     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3743     sizeof(GX_PROMPT),                       /* control block size             */
3744     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3745     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3746     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3747     gx_studio_prompt_create,                 /* create function                */
3748     GX_NULL,                                 /* drawing function override      */
3749     GX_NULL,                                 /* event function override        */
3750     {297, 421, 371, 444},                    /* widget size                    */
3751     &MAIN_DISPLAY_button_screen_next_button_define, /* next widget definition  */
3752     GX_NULL,                                 /* no child widgets               */
3753     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_icon_label_1), /* control block */
3754     (void *) &MAIN_DISPLAY_button_screen_icon_label_1_properties /* extended properties */
3755 };
3756 
3757 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_iconbutton_label_1_define =
3758 {
3759     "iconbutton_label_1",
3760     GX_TYPE_PROMPT,                          /* widget type                    */
3761     GX_ID_NONE,                              /* widget id                      */
3762     #if defined(GX_WIDGET_USER_DATA)
3763     0,                                       /* user data                      */
3764     #endif
3765     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_LEFT,   /* style flags */
3766     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3767     sizeof(GX_PROMPT),                       /* control block size             */
3768     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3769     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3770     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3771     gx_studio_prompt_create,                 /* create function                */
3772     GX_NULL,                                 /* drawing function override      */
3773     GX_NULL,                                 /* event function override        */
3774     {297, 385, 447, 408},                    /* widget size                    */
3775     &MAIN_DISPLAY_button_screen_icon_label_1_define, /* next widget definition */
3776     GX_NULL,                                 /* no child widgets               */
3777     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_iconbutton_label_1), /* control block */
3778     (void *) &MAIN_DISPLAY_button_screen_iconbutton_label_1_properties /* extended properties */
3779 };
3780 
3781 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_checkbox_label_1_define =
3782 {
3783     "checkbox_label_1",
3784     GX_TYPE_PROMPT,                          /* widget type                    */
3785     GX_ID_NONE,                              /* widget id                      */
3786     #if defined(GX_WIDGET_USER_DATA)
3787     0,                                       /* user data                      */
3788     #endif
3789     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_LEFT,   /* style flags */
3790     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3791     sizeof(GX_PROMPT),                       /* control block size             */
3792     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3793     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3794     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3795     gx_studio_prompt_create,                 /* create function                */
3796     GX_NULL,                                 /* drawing function override      */
3797     GX_NULL,                                 /* event function override        */
3798     {297, 325, 417, 348},                    /* widget size                    */
3799     &MAIN_DISPLAY_button_screen_iconbutton_label_1_define, /* next widget definition */
3800     GX_NULL,                                 /* no child widgets               */
3801     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_checkbox_label_1), /* control block */
3802     (void *) &MAIN_DISPLAY_button_screen_checkbox_label_1_properties /* extended properties */
3803 };
3804 
3805 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_texbutton_label_1_define =
3806 {
3807     "texbutton_label_1",
3808     GX_TYPE_PROMPT,                          /* widget type                    */
3809     GX_ID_NONE,                              /* widget id                      */
3810     #if defined(GX_WIDGET_USER_DATA)
3811     0,                                       /* user data                      */
3812     #endif
3813     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_LEFT,   /* style flags */
3814     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3815     sizeof(GX_PROMPT),                       /* control block size             */
3816     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3817     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3818     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3819     gx_studio_prompt_create,                 /* create function                */
3820     GX_NULL,                                 /* drawing function override      */
3821     GX_NULL,                                 /* event function override        */
3822     {297, 146, 444, 169},                    /* widget size                    */
3823     &MAIN_DISPLAY_button_screen_checkbox_label_1_define, /* next widget definition */
3824     GX_NULL,                                 /* no child widgets               */
3825     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_texbutton_label_1), /* control block */
3826     (void *) &MAIN_DISPLAY_button_screen_texbutton_label_1_properties /* extended properties */
3827 };
3828 
3829 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_pixbutton_label_1_define =
3830 {
3831     "pixbutton_label_1",
3832     GX_TYPE_PROMPT,                          /* widget type                    */
3833     GX_ID_NONE,                              /* widget id                      */
3834     #if defined(GX_WIDGET_USER_DATA)
3835     0,                                       /* user data                      */
3836     #endif
3837     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_LEFT,   /* style flags */
3838     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3839     sizeof(GX_PROMPT),                       /* control block size             */
3840     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3841     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3842     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3843     gx_studio_prompt_create,                 /* create function                */
3844     GX_NULL,                                 /* drawing function override      */
3845     GX_NULL,                                 /* event function override        */
3846     {297, 271, 479, 294},                    /* widget size                    */
3847     &MAIN_DISPLAY_button_screen_texbutton_label_1_define, /* next widget definition */
3848     GX_NULL,                                 /* no child widgets               */
3849     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_pixbutton_label_1), /* control block */
3850     (void *) &MAIN_DISPLAY_button_screen_pixbutton_label_1_properties /* extended properties */
3851 };
3852 
3853 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_radio_label_1_define =
3854 {
3855     "radio_label_1",
3856     GX_TYPE_PROMPT,                          /* widget type                    */
3857     GX_ID_NONE,                              /* widget id                      */
3858     #if defined(GX_WIDGET_USER_DATA)
3859     0,                                       /* user data                      */
3860     #endif
3861     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_LEFT,   /* style flags */
3862     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3863     sizeof(GX_PROMPT),                       /* control block size             */
3864     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3865     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3866     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3867     gx_studio_prompt_create,                 /* create function                */
3868     GX_NULL,                                 /* drawing function override      */
3869     GX_NULL,                                 /* event function override        */
3870     {297, 353, 452, 376},                    /* widget size                    */
3871     &MAIN_DISPLAY_button_screen_pixbutton_label_1_define, /* next widget definition */
3872     GX_NULL,                                 /* no child widgets               */
3873     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_radio_label_1), /* control block */
3874     (void *) &MAIN_DISPLAY_button_screen_radio_label_1_properties /* extended properties */
3875 };
3876 
3877 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_button_label_1_define =
3878 {
3879     "button_label_1",
3880     GX_TYPE_PROMPT,                          /* widget type                    */
3881     GX_ID_NONE,                              /* widget id                      */
3882     #if defined(GX_WIDGET_USER_DATA)
3883     0,                                       /* user data                      */
3884     #endif
3885     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_LEFT,   /* style flags */
3886     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3887     sizeof(GX_PROMPT),                       /* control block size             */
3888     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3889     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3890     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3891     gx_studio_prompt_create,                 /* create function                */
3892     GX_NULL,                                 /* drawing function override      */
3893     GX_NULL,                                 /* event function override        */
3894     {297, 103, 396, 126},                    /* widget size                    */
3895     &MAIN_DISPLAY_button_screen_radio_label_1_define, /* next widget definition */
3896     GX_NULL,                                 /* no child widgets               */
3897     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_button_label_1), /* control block */
3898     (void *) &MAIN_DISPLAY_button_screen_button_label_1_properties /* extended properties */
3899 };
3900 
3901 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_icon_button_6_define =
3902 {
3903     "icon_button_6",
3904     GX_TYPE_ICON_BUTTON,                     /* widget type                    */
3905     ID_ICON_BUTTON,                          /* widget id                      */
3906     #if defined(GX_WIDGET_USER_DATA)
3907     0,                                       /* user data                      */
3908     #endif
3909     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED,   /* style flags                  */
3910     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3911     sizeof(GX_ICON_BUTTON),                  /* control block size             */
3912     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3913     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3914     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
3915     gx_studio_icon_button_create,            /* create function                */
3916     GX_NULL,                                 /* drawing function override      */
3917     GX_NULL,                                 /* event function override        */
3918     {229, 386, 252, 409},                    /* widget size                    */
3919     &MAIN_DISPLAY_button_screen_button_label_1_define, /* next widget definition */
3920     GX_NULL,                                 /* no child widgets               */
3921     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_icon_button_6), /* control block */
3922     (void *) &MAIN_DISPLAY_button_screen_icon_button_6_properties /* extended properties */
3923 };
3924 
3925 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_icon_define =
3926 {
3927     "icon",
3928     GX_TYPE_ICON,                            /* widget type                    */
3929     ID_ICON,                                 /* widget id                      */
3930     #if defined(GX_WIDGET_USER_DATA)
3931     0,                                       /* user data                      */
3932     #endif
3933     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
3934     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3935     sizeof(GX_ICON),                         /* control block size             */
3936     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3937     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3938     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
3939     gx_studio_icon_create,                   /* create function                */
3940     GX_NULL,                                 /* drawing function override      */
3941     GX_NULL,                                 /* event function override        */
3942     {221, 416, 258, 453},                    /* widget size                    */
3943     &MAIN_DISPLAY_button_screen_icon_button_6_define, /* next widget definition */
3944     GX_NULL,                                 /* no child widgets               */
3945     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_icon), /* control block */
3946     (void *) &MAIN_DISPLAY_button_screen_icon_properties /* extended properties */
3947 };
3948 
3949 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_pixelmap_button1_define =
3950 {
3951     "pixelmap_button1",
3952     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3953     ID_PIXELMAP_BUTTON,                      /* widget id                      */
3954     #if defined(GX_WIDGET_USER_DATA)
3955     0,                                       /* user data                      */
3956     #endif
3957     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
3958     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3959     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3960     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3961     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3962     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
3963     gx_studio_pixelmap_button_create,        /* create function                */
3964     GX_NULL,                                 /* drawing function override      */
3965     GX_NULL,                                 /* event function override        */
3966     {131, 251, 252, 313},                    /* widget size                    */
3967     &MAIN_DISPLAY_button_screen_icon_define, /* next widget definition         */
3968     GX_NULL,                                 /* no child widgets               */
3969     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_pixelmap_button1), /* control block */
3970     (void *) &MAIN_DISPLAY_button_screen_pixelmap_button1_properties /* extended properties */
3971 };
3972 
3973 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_radio_button1_define =
3974 {
3975     "radio_button1",
3976     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
3977     ID_RADIO_BUTTON,                         /* widget id                      */
3978     #if defined(GX_WIDGET_USER_DATA)
3979     0,                                       /* user data                      */
3980     #endif
3981     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
3982     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3983     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
3984     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3985     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3986     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
3987     gx_studio_radio_button_create,           /* create function                */
3988     GX_NULL,                                 /* drawing function override      */
3989     GX_NULL,                                 /* event function override        */
3990     {125, 356, 252, 379},                    /* widget size                    */
3991     &MAIN_DISPLAY_button_screen_pixelmap_button1_define, /* next widget definition */
3992     GX_NULL,                                 /* no child widgets               */
3993     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_radio_button1), /* control block */
3994     (void *) &MAIN_DISPLAY_button_screen_radio_button1_properties /* extended properties */
3995 };
3996 
3997 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_checkbox_define =
3998 {
3999     "checkbox",
4000     GX_TYPE_CHECKBOX,                        /* widget type                    */
4001     ID_CHECKBOX,                             /* widget id                      */
4002     #if defined(GX_WIDGET_USER_DATA)
4003     0,                                       /* user data                      */
4004     #endif
4005     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
4006     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4007     sizeof(GX_CHECKBOX),                     /* control block size             */
4008     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
4009     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
4010     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
4011     gx_studio_checkbox_create,               /* create function                */
4012     GX_NULL,                                 /* drawing function override      */
4013     GX_NULL,                                 /* event function override        */
4014     {150, 320, 252, 349},                    /* widget size                    */
4015     &MAIN_DISPLAY_button_screen_radio_button1_define, /* next widget definition */
4016     GX_NULL,                                 /* no child widgets               */
4017     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_checkbox), /* control block */
4018     (void *) &MAIN_DISPLAY_button_screen_checkbox_properties /* extended properties */
4019 };
4020 
4021 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_text_button_1_define =
4022 {
4023     "text_button_1",
4024     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
4025     ID_TEXT_BUTTON,                          /* widget id                      */
4026     #if defined(GX_WIDGET_USER_DATA)
4027     0,                                       /* user data                      */
4028     #endif
4029     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
4030     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4031     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
4032     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
4033     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
4034     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
4035     gx_studio_text_button_create,            /* create function                */
4036     GX_NULL,                                 /* drawing function override      */
4037     GX_NULL,                                 /* event function override        */
4038     {117, 140, 252, 169},                    /* widget size                    */
4039     &MAIN_DISPLAY_button_screen_checkbox_define, /* next widget definition     */
4040     GX_NULL,                                 /* no child widgets               */
4041     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_text_button_1), /* control block */
4042     (void *) &MAIN_DISPLAY_button_screen_text_button_1_properties /* extended properties */
4043 };
4044 
4045 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_base_button_1_define =
4046 {
4047     "base_button_1",
4048     GX_TYPE_BUTTON,                          /* widget type                    */
4049     ID_BUTTON,                               /* widget id                      */
4050     #if defined(GX_WIDGET_USER_DATA)
4051     0,                                       /* user data                      */
4052     #endif
4053     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_BUTTON_REPEAT,   /* style flags */
4054     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4055     sizeof(GX_BUTTON),                       /* control block size             */
4056     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
4057     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
4058     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
4059     gx_studio_button_create,                 /* create function                */
4060     GX_NULL,                                 /* drawing function override      */
4061     GX_NULL,                                 /* event function override        */
4062     {117, 100, 252, 133},                    /* widget size                    */
4063     &MAIN_DISPLAY_button_screen_text_button_1_define, /* next widget definition */
4064     GX_NULL,                                 /* no child widgets               */
4065     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_base_button_1), /* control block */
4066     (void *) GX_NULL                         /* no extended properties         */
4067 };
4068 
4069 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_title_1_define =
4070 {
4071     "title_1",
4072     GX_TYPE_PROMPT,                          /* widget type                    */
4073     GX_ID_NONE,                              /* widget id                      */
4074     #if defined(GX_WIDGET_USER_DATA)
4075     0,                                       /* user data                      */
4076     #endif
4077     GX_STYLE_BORDER_THICK|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4078     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4079     sizeof(GX_PROMPT),                       /* control block size             */
4080     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4081     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4082     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
4083     gx_studio_prompt_create,                 /* create function                */
4084     GX_NULL,                                 /* drawing function override      */
4085     GX_NULL,                                 /* event function override        */
4086     {179, 30, 442, 71},                      /* widget size                    */
4087     &MAIN_DISPLAY_button_screen_base_button_1_define, /* next widget definition */
4088     GX_NULL,                                 /* no child widgets               */
4089     offsetof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_button_screen_title_1), /* control block */
4090     (void *) &MAIN_DISPLAY_button_screen_title_1_properties /* extended properties */
4091 };
4092 
4093 GX_STUDIO_ACTION MAIN_DISPLAY_button_screen__id_text_button_gx_event_clicked_actions[2] = {
4094     {GX_ACTION_TYPE_WINDOW_EXECUTE, GX_ACTION_FLAG_DYNAMIC_TARGET, &MAIN_DISPLAY_root_window,  &MAIN_DISPLAY_popup_modal_derived_derived_define, GX_NULL},
4095     {0, 0, GX_NULL, GX_NULL, GX_NULL}
4096 };
4097 
4098 
4099 GX_STUDIO_ACTION MAIN_DISPLAY_button_screen__idb_next_gx_event_clicked_actions[2] = {
4100     {GX_ACTION_TYPE_TOGGLE, 0, &MAIN_DISPLAY_root_window, &MAIN_DISPLAY_window_screen, GX_NULL},
4101     {0, 0, GX_NULL, GX_NULL, GX_NULL}
4102 };
4103 
4104 static GX_STUDIO_EVENT_ENTRY gx_studio_MAIN_DISPLAY_button_screen_event_table[] = {
4105     {GX_SIGNAL(ID_TEXT_BUTTON, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_button_screen__id_text_button_gx_event_clicked_actions},
4106     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_button_screen__idb_next_gx_event_clicked_actions},
4107     {0, 0, GX_NULL}
4108 };
4109 
4110 GX_STUDIO_EVENT_PROCESS MAIN_DISPLAY_button_screen_event_chain = {gx_studio_MAIN_DISPLAY_button_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))buttons_handler};
gx_studio_MAIN_DISPLAY_button_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)4111 static UINT gx_studio_MAIN_DISPLAY_button_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
4112 {
4113     return (gx_studio_auto_event_handler(target, event_ptr, &MAIN_DISPLAY_button_screen_event_chain));
4114 }
4115 
4116 
4117 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_button_screen_define =
4118 {
4119     "MAIN_DISPLAY_button_screen",
4120     GX_TYPE_WINDOW,                          /* widget type                    */
4121     ID_BUTTON_SCREEN,                        /* widget id                      */
4122     #if defined(GX_WIDGET_USER_DATA)
4123     0,                                       /* user data                      */
4124     #endif
4125     GX_STYLE_BORDER_THICK,                   /* style flags                    */
4126     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4127     sizeof(MAIN_DISPLAY_BUTTON_SCREEN_CONTROL_BLOCK), /* control block size    */
4128     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
4129     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4130     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
4131     gx_studio_window_create,                 /* create function                */
4132     GX_NULL,                                 /* drawing function override      */
4133     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_MAIN_DISPLAY_button_screen_event_process, /* event function override */
4134     {73, 7, 575, 475},                       /* widget size                    */
4135     GX_NULL,                                 /* next widget                    */
4136     &MAIN_DISPLAY_button_screen_title_1_define, /* child widget                */
4137     0,                                       /* control block                  */
4138     (void *) &MAIN_DISPLAY_button_screen_properties /* extended properties     */
4139 };
4140 GX_TEMPLATE_PROPERTIES MAIN_DISPLAY_base_derived_1_properties =
4141 {
4142     &MAIN_DISPLAY_base_define,               /* base info                      */
4143     gx_studio_window_create,                 /* base create function           */
4144     {93, 146, 546, 333}                      /* widget size                    */
4145 };
4146 GX_PROMPT_PROPERTIES MAIN_DISPLAY_base_derived_1_prompt_15_properties =
4147 {
4148     GX_STRING_ID_MAIN_DISPLAY_STRING_101,    /* string id                      */
4149     GX_FONT_ID_PROMPT,                       /* font id                        */
4150     GX_COLOR_ID_TEXT,                        /* normal text color              */
4151     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4152     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4153 };
4154 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_base_derived_1_next_button_7_properties =
4155 {
4156     GX_STRING_ID_MAIN_DISPLAY_STRING_36,     /* string id                      */
4157     GX_FONT_ID_BUTTON,                       /* font id                        */
4158     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
4159     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* selected text color            */
4160     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
4161 };
4162 
4163 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_base_derived_1_next_button_7_define =
4164 {
4165     "next_button_7",
4166     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
4167     IDB_NEXT,                                /* widget id                      */
4168     #if defined(GX_WIDGET_USER_DATA)
4169     0,                                       /* user data                      */
4170     #endif
4171     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
4172     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4173     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
4174     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* normal color id         */
4175     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* selected color id       */
4176     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* disabled color id       */
4177     gx_studio_text_button_create,            /* create function                */
4178     GX_NULL,                                 /* drawing function override      */
4179     GX_NULL,                                 /* event function override        */
4180     {447, 294, 526, 318},                    /* widget size                    */
4181     GX_NULL,                                 /* no next widget                 */
4182     GX_NULL,                                 /* no child widgets               */
4183     offsetof(MAIN_DISPLAY_BASE_DERIVED_1_CONTROL_BLOCK, MAIN_DISPLAY_base_derived_1_next_button_7), /* control block */
4184     (void *) &MAIN_DISPLAY_base_derived_1_next_button_7_properties /* extended properties */
4185 };
4186 
4187 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_base_derived_1_prompt_15_define =
4188 {
4189     "prompt_15",
4190     GX_TYPE_PROMPT,                          /* widget type                    */
4191     GX_ID_NONE,                              /* widget id                      */
4192     #if defined(GX_WIDGET_USER_DATA)
4193     0,                                       /* user data                      */
4194     #endif
4195     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4196     0,                                       /* status flags                   */
4197     sizeof(GX_PROMPT),                       /* control block size             */
4198     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4199     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4200     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4201     gx_studio_prompt_create,                 /* create function                */
4202     GX_NULL,                                 /* drawing function override      */
4203     GX_NULL,                                 /* event function override        */
4204     {100, 179, 304, 200},                    /* widget size                    */
4205     &MAIN_DISPLAY_base_derived_1_next_button_7_define, /* next widget definition */
4206     GX_NULL,                                 /* no child widgets               */
4207     offsetof(MAIN_DISPLAY_BASE_DERIVED_1_CONTROL_BLOCK, MAIN_DISPLAY_base_derived_1_prompt_15), /* control block */
4208     (void *) &MAIN_DISPLAY_base_derived_1_prompt_15_properties /* extended properties */
4209 };
4210 
4211 GX_STUDIO_ACTION MAIN_DISPLAY_base_derived_1__idb_next_gx_event_clicked_actions[2] = {
4212     {GX_ACTION_TYPE_TOGGLE, 0, &MAIN_DISPLAY_root_window, &MAIN_DISPLAY_popup_modal_derived_1, GX_NULL},
4213     {0, 0, GX_NULL, GX_NULL, GX_NULL}
4214 };
4215 
4216 static GX_STUDIO_EVENT_ENTRY gx_studio_MAIN_DISPLAY_base_derived_1_event_table[] = {
4217     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_base_derived_1__idb_next_gx_event_clicked_actions},
4218     {0, 0, GX_NULL}
4219 };
4220 
4221 GX_STUDIO_EVENT_PROCESS MAIN_DISPLAY_base_derived_1_event_chain = {gx_studio_MAIN_DISPLAY_base_derived_1_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_MAIN_DISPLAY_base_derived_1_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)4222 static UINT gx_studio_MAIN_DISPLAY_base_derived_1_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
4223 {
4224     return (gx_studio_auto_event_handler(target, event_ptr, &MAIN_DISPLAY_base_derived_1_event_chain));
4225 }
4226 
4227 
4228 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_base_derived_1_define =
4229 {
4230     "MAIN_DISPLAY_base_derived_1",
4231     GX_TYPE_TEMPLATE,                        /* widget type                    */
4232     GX_ID_NONE,                              /* widget id                      */
4233     #if defined(GX_WIDGET_USER_DATA)
4234     0,                                       /* user data                      */
4235     #endif
4236     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED,   /* style flags                    */
4237     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4238     sizeof(MAIN_DISPLAY_BASE_DERIVED_1_CONTROL_BLOCK), /* control block size   */
4239     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
4240     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4241     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4242     gx_studio_template_create,               /* create function                */
4243     GX_NULL,                                 /* drawing function override      */
4244     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_MAIN_DISPLAY_base_derived_1_event_process, /* event function override */
4245     {93, 146, 546, 333},                     /* widget size                    */
4246     GX_NULL,                                 /* next widget                    */
4247     &MAIN_DISPLAY_base_derived_1_prompt_15_define, /* child widget             */
4248     0,                                       /* control block                  */
4249     (void *) &MAIN_DISPLAY_base_derived_1_properties /* extended properties    */
4250 };
4251 GX_WINDOW_PROPERTIES MAIN_DISPLAY_child_template_screen_properties =
4252 {
4253     0                                        /* wallpaper pixelmap id          */
4254 };
4255 GX_TEMPLATE_PROPERTIES MAIN_DISPLAY_child_template_screen_base_derived_properties =
4256 {
4257     &MAIN_DISPLAY_base_define,               /* base info                      */
4258     gx_studio_window_create,                 /* base create function           */
4259     {34, 14, 487, 201}                       /* widget size                    */
4260 };
4261 GX_PROMPT_PROPERTIES MAIN_DISPLAY_child_template_screen_prompt_13_properties =
4262 {
4263     GX_STRING_ID_MAIN_DISPLAY_STRING_96,     /* string id                      */
4264     GX_FONT_ID_PROMPT,                       /* font id                        */
4265     GX_COLOR_ID_TEXT,                        /* normal text color              */
4266     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4267     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4268 };
4269 GX_TEMPLATE_PROPERTIES MAIN_DISPLAY_child_template_screen_base_derived_dynamic_properties =
4270 {
4271     &MAIN_DISPLAY_base_define,               /* base info                      */
4272     gx_studio_window_create,                 /* base create function           */
4273     {35, 215, 488, 402}                      /* widget size                    */
4274 };
4275 GX_PROMPT_PROPERTIES MAIN_DISPLAY_child_template_screen_prompt_13_2_properties =
4276 {
4277     GX_STRING_ID_MAIN_DISPLAY_STRING_96,     /* string id                      */
4278     GX_FONT_ID_PROMPT,                       /* font id                        */
4279     GX_COLOR_ID_TEXT,                        /* normal text color              */
4280     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4281     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4282 };
4283 GX_PROMPT_PROPERTIES MAIN_DISPLAY_child_template_screen_prompt_13_3_properties =
4284 {
4285     GX_STRING_ID_MAIN_DISPLAY_STRING_95,     /* string id                      */
4286     GX_FONT_ID_PROMPT,                       /* font id                        */
4287     GX_COLOR_ID_TEXT,                        /* normal text color              */
4288     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4289     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4290 };
4291 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_child_template_screen_next_button_9_properties =
4292 {
4293     GX_STRING_ID_MAIN_DISPLAY_STRING_36,     /* string id                      */
4294     GX_FONT_ID_BUTTON,                       /* font id                        */
4295     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
4296     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* selected text color            */
4297     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
4298 };
4299 
4300 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_child_template_screen_prompt_13_define =
4301 {
4302     "prompt_13",
4303     GX_TYPE_PROMPT,                          /* widget type                    */
4304     GX_ID_NONE,                              /* widget id                      */
4305     #if defined(GX_WIDGET_USER_DATA)
4306     0,                                       /* user data                      */
4307     #endif
4308     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4309     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4310     sizeof(GX_PROMPT),                       /* control block size             */
4311     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4312     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4313     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4314     gx_studio_prompt_create,                 /* create function                */
4315     GX_NULL,                                 /* drawing function override      */
4316     GX_NULL,                                 /* event function override        */
4317     {116, 88, 406, 105},                     /* widget size                    */
4318     GX_NULL,                                 /* no next widget                 */
4319     GX_NULL,                                 /* no child widgets               */
4320     offsetof(MAIN_DISPLAY_CHILD_TEMPLATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_child_template_screen_prompt_13), /* control block */
4321     (void *) &MAIN_DISPLAY_child_template_screen_prompt_13_properties /* extended properties */
4322 };
4323 
4324 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_child_template_screen_prompt_13_3_define =
4325 {
4326     "prompt_13_3",
4327     GX_TYPE_PROMPT,                          /* widget type                    */
4328     GX_ID_NONE,                              /* widget id                      */
4329     #if defined(GX_WIDGET_USER_DATA)
4330     0,                                       /* user data                      */
4331     #endif
4332     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
4333     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4334     sizeof(GX_PROMPT),                       /* control block size             */
4335     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4336     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4337     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4338     gx_studio_prompt_create,                 /* create function                */
4339     GX_NULL,                                 /* drawing function override      */
4340     GX_NULL,                                 /* event function override        */
4341     {113, 335, 237, 352},                    /* widget size                    */
4342     GX_NULL,                                 /* no next widget                 */
4343     GX_NULL,                                 /* no child widgets               */
4344     0,                                       /* runtime control block          */
4345     (void *) &MAIN_DISPLAY_child_template_screen_prompt_13_3_properties /* extended properties */
4346 };
4347 
4348 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_child_template_screen_prompt_13_2_define =
4349 {
4350     "prompt_13_2",
4351     GX_TYPE_PROMPT,                          /* widget type                    */
4352     GX_ID_NONE,                              /* widget id                      */
4353     #if defined(GX_WIDGET_USER_DATA)
4354     0,                                       /* user data                      */
4355     #endif
4356     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
4357     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4358     sizeof(GX_PROMPT),                       /* control block size             */
4359     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4360     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4361     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4362     gx_studio_prompt_create,                 /* create function                */
4363     GX_NULL,                                 /* drawing function override      */
4364     GX_NULL,                                 /* event function override        */
4365     {112, 287, 402, 304},                    /* widget size                    */
4366     &MAIN_DISPLAY_child_template_screen_prompt_13_3_define, /* next widget definition */
4367     GX_NULL,                                 /* no child widgets               */
4368     0,                                       /* runtime control block          */
4369     (void *) &MAIN_DISPLAY_child_template_screen_prompt_13_2_properties /* extended properties */
4370 };
4371 
4372 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_child_template_screen_next_button_9_define =
4373 {
4374     "next_button_9",
4375     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
4376     IDB_NEXT,                                /* widget id                      */
4377     #if defined(GX_WIDGET_USER_DATA)
4378     0,                                       /* user data                      */
4379     #endif
4380     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
4381     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4382     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
4383     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* normal color id         */
4384     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* selected color id       */
4385     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* disabled color id       */
4386     gx_studio_text_button_create,            /* create function                */
4387     GX_NULL,                                 /* drawing function override      */
4388     GX_NULL,                                 /* event function override        */
4389     {535, 428, 614, 455},                    /* widget size                    */
4390     GX_NULL,                                 /* no next widget                 */
4391     GX_NULL,                                 /* no child widgets               */
4392     offsetof(MAIN_DISPLAY_CHILD_TEMPLATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_child_template_screen_next_button_9), /* control block */
4393     (void *) &MAIN_DISPLAY_child_template_screen_next_button_9_properties /* extended properties */
4394 };
4395 
4396 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_child_template_screen_base_derived_dynamic_define =
4397 {
4398     "base_derived_dynamic",
4399     GX_TYPE_TEMPLATE,                        /* widget type                    */
4400     GX_ID_NONE,                              /* widget id                      */
4401     #if defined(GX_WIDGET_USER_DATA)
4402     0,                                       /* user data                      */
4403     #endif
4404     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags */
4405     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4406     sizeof(MAIN_DISPLAY_BASE_CONTROL_BLOCK), /* control block size             */
4407     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
4408     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4409     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4410     gx_studio_template_create,               /* create function                */
4411     GX_NULL,                                 /* drawing function override      */
4412     GX_NULL,                                 /* event function override        */
4413     {35, 215, 488, 402},                     /* widget size                    */
4414     &MAIN_DISPLAY_child_template_screen_next_button_9_define, /* next widget definition */
4415     &MAIN_DISPLAY_child_template_screen_prompt_13_2_define, /* child widget definition */
4416     0,                                       /* runtime control block          */
4417     (void *) &MAIN_DISPLAY_child_template_screen_base_derived_dynamic_properties /* extended properties */
4418 };
4419 
4420 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_child_template_screen_base_derived_define =
4421 {
4422     "base_derived",
4423     GX_TYPE_TEMPLATE,                        /* widget type                    */
4424     GX_ID_NONE,                              /* widget id                      */
4425     #if defined(GX_WIDGET_USER_DATA)
4426     0,                                       /* user data                      */
4427     #endif
4428     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED,   /* style flags                    */
4429     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4430     sizeof(MAIN_DISPLAY_BASE_CONTROL_BLOCK), /* control block size             */
4431     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
4432     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4433     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4434     gx_studio_template_create,               /* create function                */
4435     GX_NULL,                                 /* drawing function override      */
4436     GX_NULL,                                 /* event function override        */
4437     {34, 14, 487, 201},                      /* widget size                    */
4438     &MAIN_DISPLAY_child_template_screen_base_derived_dynamic_define, /* next widget definition */
4439     &MAIN_DISPLAY_child_template_screen_prompt_13_define, /* child widget definition */
4440     offsetof(MAIN_DISPLAY_CHILD_TEMPLATE_SCREEN_CONTROL_BLOCK, MAIN_DISPLAY_child_template_screen_base_derived), /* control block */
4441     (void *) &MAIN_DISPLAY_child_template_screen_base_derived_properties /* extended properties */
4442 };
4443 
4444 GX_STUDIO_ACTION MAIN_DISPLAY_child_template_screen__idb_next_gx_event_clicked_actions[2] = {
4445     {GX_ACTION_TYPE_TOGGLE, 0, &MAIN_DISPLAY_root_window, &MAIN_DISPLAY_base_derived_1, GX_NULL},
4446     {0, 0, GX_NULL, GX_NULL, GX_NULL}
4447 };
4448 
4449 static GX_STUDIO_EVENT_ENTRY gx_studio_MAIN_DISPLAY_child_template_screen_event_table[] = {
4450     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_child_template_screen__idb_next_gx_event_clicked_actions},
4451     {0, 0, GX_NULL}
4452 };
4453 
4454 GX_STUDIO_EVENT_PROCESS MAIN_DISPLAY_child_template_screen_event_chain = {gx_studio_MAIN_DISPLAY_child_template_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_MAIN_DISPLAY_child_template_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)4455 static UINT gx_studio_MAIN_DISPLAY_child_template_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
4456 {
4457     return (gx_studio_auto_event_handler(target, event_ptr, &MAIN_DISPLAY_child_template_screen_event_chain));
4458 }
4459 
4460 
4461 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_child_template_screen_define =
4462 {
4463     "MAIN_DISPLAY_child_template_screen",
4464     GX_TYPE_WINDOW,                          /* widget type                    */
4465     GX_ID_NONE,                              /* widget id                      */
4466     #if defined(GX_WIDGET_USER_DATA)
4467     0,                                       /* user data                      */
4468     #endif
4469     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED,   /* style flags                    */
4470     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4471     sizeof(MAIN_DISPLAY_CHILD_TEMPLATE_SCREEN_CONTROL_BLOCK), /* control block size */
4472     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
4473     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4474     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4475     gx_studio_window_create,                 /* create function                */
4476     GX_NULL,                                 /* drawing function override      */
4477     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_MAIN_DISPLAY_child_template_screen_event_process, /* event function override */
4478     {0, 0, 639, 479},                        /* widget size                    */
4479     GX_NULL,                                 /* next widget                    */
4480     &MAIN_DISPLAY_child_template_screen_base_derived_define, /* child widget   */
4481     0,                                       /* control block                  */
4482     (void *) &MAIN_DISPLAY_child_template_screen_properties /* extended properties */
4483 };
4484 GX_TEMPLATE_PROPERTIES MAIN_DISPLAY_popup_modal_derived_derived_1_properties =
4485 {
4486     &MAIN_DISPLAY_popup_modal_derived_define,  /* base info                    */
4487     gx_studio_template_create,               /* base create function           */
4488     {160, 120, 479, 359}                     /* widget size                    */
4489 };
4490 GX_ML_TEXT_VIEW_PROPERTIES MAIN_DISPLAY_popup_modal_derived_derived_1_text_view_7_properties =
4491 {
4492     GX_STRING_ID_MAIN_DISPLAY_STRING_104,    /* string id                      */
4493     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
4494     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
4495     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected text color            */
4496     GX_COLOR_ID_TEXT,                        /* disabled text color            */
4497     0,                                       /* whitespace                     */
4498     0                                        /* line_space                     */
4499 };
4500 GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_popup_modal_derived_derived_1_next_button_7_properties =
4501 {
4502     GX_STRING_ID_MAIN_DISPLAY_STRING_36,     /* string id                      */
4503     GX_FONT_ID_BUTTON,                       /* font id                        */
4504     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* normal text color              */
4505     GX_COLOR_ID_MAIN_DISPLAY_WHITE,          /* selected text color            */
4506     GX_COLOR_ID_MAIN_DISPLAY_WHITE           /* disabled text color            */
4507 };
4508 
4509 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_derived_1_next_button_7_define =
4510 {
4511     "next_button_7",
4512     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
4513     IDB_NEXT,                                /* widget id                      */
4514     #if defined(GX_WIDGET_USER_DATA)
4515     0,                                       /* user data                      */
4516     #endif
4517     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
4518     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4519     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
4520     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* normal color id         */
4521     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER,     /* selected color id       */
4522     GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER,     /* disabled color id       */
4523     gx_studio_text_button_create,            /* create function                */
4524     GX_NULL,                                 /* drawing function override      */
4525     GX_NULL,                                 /* event function override        */
4526     {366, 311, 445, 335},                    /* widget size                    */
4527     GX_NULL,                                 /* no next widget                 */
4528     GX_NULL,                                 /* no child widgets               */
4529     offsetof(MAIN_DISPLAY_POPUP_MODAL_DERIVED_DERIVED_1_CONTROL_BLOCK, MAIN_DISPLAY_popup_modal_derived_derived_1_next_button_7), /* control block */
4530     (void *) &MAIN_DISPLAY_popup_modal_derived_derived_1_next_button_7_properties /* extended properties */
4531 };
4532 
4533 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_derived_1_text_view_7_define =
4534 {
4535     "text_view_7",
4536     GX_TYPE_MULTI_LINE_TEXT_VIEW,            /* widget type                    */
4537     GX_ID_NONE,                              /* widget id                      */
4538     #if defined(GX_WIDGET_USER_DATA)
4539     0,                                       /* user data                      */
4540     #endif
4541     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4542     0,                                       /* status flags                   */
4543     sizeof(GX_MULTI_LINE_TEXT_VIEW),         /* control block size             */
4544     GX_COLOR_ID_TEXT_INPUT_FILL,             /* normal color id                */
4545     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4546     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4547     gx_studio_multi_line_text_view_create,     /* create function              */
4548     GX_NULL,                                 /* drawing function override      */
4549     GX_NULL,                                 /* event function override        */
4550     {186, 241, 434, 264},                    /* widget size                    */
4551     &MAIN_DISPLAY_popup_modal_derived_derived_1_next_button_7_define, /* next widget definition */
4552     GX_NULL,                                 /* no child widgets               */
4553     offsetof(MAIN_DISPLAY_POPUP_MODAL_DERIVED_DERIVED_1_CONTROL_BLOCK, MAIN_DISPLAY_popup_modal_derived_derived_1_text_view_7), /* control block */
4554     (void *) &MAIN_DISPLAY_popup_modal_derived_derived_1_text_view_7_properties /* extended properties */
4555 };
4556 
4557 GX_STUDIO_ACTION MAIN_DISPLAY_popup_modal_derived_derived_1__idb_next_gx_event_clicked_actions[2] = {
4558     {GX_ACTION_TYPE_TOGGLE, 0, &MAIN_DISPLAY_root_window, &MAIN_DISPLAY_button_screen, GX_NULL},
4559     {0, 0, GX_NULL, GX_NULL, GX_NULL}
4560 };
4561 
4562 static GX_STUDIO_EVENT_ENTRY gx_studio_MAIN_DISPLAY_popup_modal_derived_derived_1_event_table[] = {
4563     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, MAIN_DISPLAY_popup_modal_derived_derived_1__idb_next_gx_event_clicked_actions},
4564     {0, 0, GX_NULL}
4565 };
4566 
4567 GX_STUDIO_EVENT_PROCESS MAIN_DISPLAY_popup_modal_derived_derived_1_event_chain = {gx_studio_MAIN_DISPLAY_popup_modal_derived_derived_1_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_MAIN_DISPLAY_popup_modal_derived_derived_1_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)4568 static UINT gx_studio_MAIN_DISPLAY_popup_modal_derived_derived_1_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
4569 {
4570     return (gx_studio_auto_event_handler(target, event_ptr, &MAIN_DISPLAY_popup_modal_derived_derived_1_event_chain));
4571 }
4572 
4573 
4574 GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_popup_modal_derived_derived_1_define =
4575 {
4576     "MAIN_DISPLAY_popup_modal_derived_derived_1",
4577     GX_TYPE_TEMPLATE,                        /* widget type                    */
4578     GX_ID_NONE,                              /* widget id                      */
4579     #if defined(GX_WIDGET_USER_DATA)
4580     0,                                       /* user data                      */
4581     #endif
4582     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED,   /* style flags                    */
4583     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4584     sizeof(MAIN_DISPLAY_POPUP_MODAL_DERIVED_DERIVED_1_CONTROL_BLOCK), /* control block size */
4585     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
4586     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4587     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4588     gx_studio_template_create,               /* create function                */
4589     GX_NULL,                                 /* drawing function override      */
4590     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_MAIN_DISPLAY_popup_modal_derived_derived_1_event_process, /* event function override */
4591     {160, 120, 479, 359},                    /* widget size                    */
4592     GX_NULL,                                 /* next widget                    */
4593     &MAIN_DISPLAY_popup_modal_derived_derived_1_text_view_7_define, /* child widget */
4594     0,                                       /* control block                  */
4595     (void *) &MAIN_DISPLAY_popup_modal_derived_derived_1_properties /* extended properties */
4596 };
4597 GX_WINDOW_PROPERTIES SECONDARY_popup_modal_properties =
4598 {
4599     0                                        /* wallpaper pixelmap id          */
4600 };
4601 GX_TEXT_BUTTON_PROPERTIES SECONDARY_popup_modal_OK_button_properties =
4602 {
4603     GX_STRING_ID_SECONDARY_STRING_41,        /* string id                      */
4604     GX_FONT_ID_BUTTON,                       /* font id                        */
4605     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
4606     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
4607     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
4608 };
4609 GX_TEXT_BUTTON_PROPERTIES SECONDARY_popup_modal_cancel_button_properties =
4610 {
4611     GX_STRING_ID_SECONDARY_STRING_42,        /* string id                      */
4612     GX_FONT_ID_BUTTON,                       /* font id                        */
4613     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
4614     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
4615     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
4616 };
4617 GX_ML_TEXT_VIEW_PROPERTIES SECONDARY_popup_modal_text_view_2_properties =
4618 {
4619     GX_STRING_ID_SECONDARY_STRING_43,        /* string id                      */
4620     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
4621     GX_COLOR_ID_SECONDARY_BLACK,             /* normal text color              */
4622     GX_COLOR_ID_SECONDARY_BLACK,             /* selected text color            */
4623     GX_COLOR_ID_SECONDARY_BLACK,             /* disabled text color            */
4624     0,                                       /* whitespace                     */
4625     0                                        /* line_space                     */
4626 };
4627 GX_WINDOW_PROPERTIES SECONDARY_popup_modal_window_1_properties =
4628 {
4629     GX_PIXELMAP_ID_SECONDARY_TOP_BAR_BACKGROUND  /* wallpaper pixelmap id      */
4630 };
4631 GX_PROMPT_PROPERTIES SECONDARY_popup_modal_prompt_5_properties =
4632 {
4633     GX_STRING_ID_SECONDARY_STRING_45,        /* string id                      */
4634     GX_FONT_ID_PROMPT,                       /* font id                        */
4635     GX_COLOR_ID_SECONDARY_WHITE,             /* normal text color              */
4636     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4637     GX_COLOR_ID_SECONDARY_WHITE              /* disabled text color            */
4638 };
4639 
4640 GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_prompt_5_define =
4641 {
4642     "prompt_5",
4643     GX_TYPE_PROMPT,                          /* widget type                    */
4644     GX_ID_NONE,                              /* widget id                      */
4645     #if defined(GX_WIDGET_USER_DATA)
4646     0,                                       /* user data                      */
4647     #endif
4648     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
4649     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4650     sizeof(GX_PROMPT),                       /* control block size             */
4651     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4652     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4653     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
4654     gx_studio_prompt_create,                 /* create function                */
4655     GX_NULL,                                 /* drawing function override      */
4656     GX_NULL,                                 /* event function override        */
4657     {277, 125, 356, 148},                    /* widget size                    */
4658     GX_NULL,                                 /* no next widget                 */
4659     GX_NULL,                                 /* no child widgets               */
4660     offsetof(SECONDARY_POPUP_MODAL_CONTROL_BLOCK, SECONDARY_popup_modal_prompt_5), /* control block */
4661     (void *) &SECONDARY_popup_modal_prompt_5_properties /* extended properties */
4662 };
4663 
4664 GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_window_1_define =
4665 {
4666     "window_1",
4667     GX_TYPE_WINDOW,                          /* widget type                    */
4668     GX_ID_NONE,                              /* widget id                      */
4669     #if defined(GX_WIDGET_USER_DATA)
4670     0,                                       /* user data                      */
4671     #endif
4672     GX_STYLE_BORDER_THIN|GX_STYLE_TILE_WALLPAPER,   /* style flags             */
4673     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4674     sizeof(GX_WINDOW),                       /* control block size             */
4675     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
4676     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4677     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
4678     gx_studio_window_create,                 /* create function                */
4679     GX_NULL,                                 /* drawing function override      */
4680     GX_NULL,                                 /* event function override        */
4681     {157, 121, 476, 153},                    /* widget size                    */
4682     GX_NULL,                                 /* no next widget                 */
4683     &SECONDARY_popup_modal_prompt_5_define,  /* child widget definition        */
4684     offsetof(SECONDARY_POPUP_MODAL_CONTROL_BLOCK, SECONDARY_popup_modal_window_1), /* control block */
4685     (void *) &SECONDARY_popup_modal_window_1_properties /* extended properties */
4686 };
4687 
4688 GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_text_view_2_define =
4689 {
4690     "text_view_2",
4691     GX_TYPE_MULTI_LINE_TEXT_VIEW,            /* widget type                    */
4692     GX_ID_NONE,                              /* widget id                      */
4693     #if defined(GX_WIDGET_USER_DATA)
4694     0,                                       /* user data                      */
4695     #endif
4696     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_DRAW_SELECTED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
4697     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4698     sizeof(GX_MULTI_LINE_TEXT_VIEW),         /* control block size             */
4699     GX_COLOR_ID_CANVAS,                      /* normal color id                */
4700     GX_COLOR_ID_CANVAS,                      /* selected color id              */
4701     GX_COLOR_ID_CANVAS,                      /* disabled color id              */
4702     gx_studio_multi_line_text_view_create,     /* create function              */
4703     GX_NULL,                                 /* drawing function override      */
4704     GX_NULL,                                 /* event function override        */
4705     {172, 176, 464, 293},                    /* widget size                    */
4706     &SECONDARY_popup_modal_window_1_define,  /* next widget definition         */
4707     GX_NULL,                                 /* no child widgets               */
4708     offsetof(SECONDARY_POPUP_MODAL_CONTROL_BLOCK, SECONDARY_popup_modal_text_view_2), /* control block */
4709     (void *) &SECONDARY_popup_modal_text_view_2_properties /* extended properties */
4710 };
4711 
4712 GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_cancel_button_define =
4713 {
4714     "cancel_button",
4715     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
4716     IDB_CANCEL,                              /* widget id                      */
4717     #if defined(GX_WIDGET_USER_DATA)
4718     20,                                      /* user data                      */
4719     #endif
4720     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
4721     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4722     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
4723     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
4724     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
4725     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
4726     gx_studio_text_button_create,            /* create function                */
4727     GX_NULL,                                 /* drawing function override      */
4728     GX_NULL,                                 /* event function override        */
4729     {200, 309, 279, 343},                    /* widget size                    */
4730     &SECONDARY_popup_modal_text_view_2_define, /* next widget definition       */
4731     GX_NULL,                                 /* no child widgets               */
4732     offsetof(SECONDARY_POPUP_MODAL_CONTROL_BLOCK, SECONDARY_popup_modal_cancel_button), /* control block */
4733     (void *) &SECONDARY_popup_modal_cancel_button_properties /* extended properties */
4734 };
4735 
4736 GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_OK_button_define =
4737 {
4738     "OK_button",
4739     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
4740     IDB_OK,                                  /* widget id                      */
4741     #if defined(GX_WIDGET_USER_DATA)
4742     0,                                       /* user data                      */
4743     #endif
4744     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
4745     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4746     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
4747     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
4748     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
4749     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
4750     gx_studio_text_button_create,            /* create function                */
4751     GX_NULL,                                 /* drawing function override      */
4752     GX_NULL,                                 /* event function override        */
4753     {364, 309, 443, 343},                    /* widget size                    */
4754     &SECONDARY_popup_modal_cancel_button_define, /* next widget definition     */
4755     GX_NULL,                                 /* no child widgets               */
4756     offsetof(SECONDARY_POPUP_MODAL_CONTROL_BLOCK, SECONDARY_popup_modal_OK_button), /* control block */
4757     (void *) &SECONDARY_popup_modal_OK_button_properties /* extended properties */
4758 };
4759 
4760 GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_define =
4761 {
4762     "SECONDARY_popup_modal",
4763     GX_TYPE_WINDOW,                          /* widget type                    */
4764     GX_ID_NONE,                              /* widget id                      */
4765     #if defined(GX_WIDGET_USER_DATA)
4766     0,                                       /* user data                      */
4767     #endif
4768     GX_STYLE_BORDER_RAISED,                  /* style flags                    */
4769     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4770     sizeof(SECONDARY_POPUP_MODAL_CONTROL_BLOCK), /* control block size         */
4771     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
4772     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4773     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
4774     gx_studio_window_create,                 /* create function                */
4775     GX_NULL,                                 /* drawing function override      */
4776     GX_NULL,                                 /* event function override        */
4777     {160, 120, 479, 359},                    /* widget size                    */
4778     GX_NULL,                                 /* next widget                    */
4779     &SECONDARY_popup_modal_OK_button_define, /* child widget                   */
4780     0,                                       /* control block                  */
4781     (void *) &SECONDARY_popup_modal_properties /* extended properties          */
4782 };
4783 GX_TEMPLATE_PROPERTIES SECONDARY_popup_modal_derived_properties =
4784 {
4785     &SECONDARY_popup_modal_define,           /* base info                      */
4786     gx_studio_window_create,                 /* base create function           */
4787     {160, 120, 479, 359}                     /* widget size                    */
4788 };
4789 
4790 GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_derived_define =
4791 {
4792     "SECONDARY_popup_modal_derived",
4793     GX_TYPE_TEMPLATE,                        /* widget type                    */
4794     GX_ID_NONE,                              /* widget id                      */
4795     #if defined(GX_WIDGET_USER_DATA)
4796     0,                                       /* user data                      */
4797     #endif
4798     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED,   /* style flags                    */
4799     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4800     sizeof(SECONDARY_POPUP_MODAL_DERIVED_CONTROL_BLOCK), /* control block size */
4801     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
4802     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4803     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4804     gx_studio_template_create,               /* create function                */
4805     GX_NULL,                                 /* drawing function override      */
4806     GX_NULL,                                 /* event function override        */
4807     {160, 120, 479, 359},                    /* widget size                    */
4808     GX_NULL,                                 /* next widget                    */
4809     GX_NULL,                                 /* child widget                   */
4810     0,                                       /* control block                  */
4811     (void *) &SECONDARY_popup_modal_derived_properties /* extended properties  */
4812 };
4813 GX_WINDOW_PROPERTIES SECONDARY_indicator_screen_properties =
4814 {
4815     0                                        /* wallpaper pixelmap id          */
4816 };
4817 GX_SLIDER_PROPERTIES SECONDARY_indicator_screen_slider_properties =
4818 {
4819     9,                                       /* tickmark count                 */
4820     0,                                       /* mimimun value                  */
4821     100,                                     /* maximum value                  */
4822     50,                                      /* current value                  */
4823     10,                                      /* increment                      */
4824     10,                                      /* minimum travel                 */
4825     10,                                      /* maximum travel                 */
4826     5,                                       /* needle width                   */
4827     20,                                      /* needle height                  */
4828     5,                                       /* needle inset                   */
4829     2                                        /* needle hotspot                 */
4830 };
4831 GX_SLIDER_PROPERTIES SECONDARY_indicator_screen_slider_1_properties =
4832 {
4833     9,                                       /* tickmark count                 */
4834     0,                                       /* mimimun value                  */
4835     100,                                     /* maximum value                  */
4836     50,                                      /* current value                  */
4837     10,                                      /* increment                      */
4838     10,                                      /* minimum travel                 */
4839     10,                                      /* maximum travel                 */
4840     20,                                      /* needle width                   */
4841     5,                                       /* needle height                  */
4842     5,                                       /* needle inset                   */
4843     2                                        /* needle hotspot                 */
4844 };
4845 GX_PIXELMAP_SLIDER_PROPERTIES SECONDARY_indicator_screen_pixelmap_slider_properties =
4846 {
4847     0,                                       /* minimum value                  */
4848     100,                                     /* maximum value                  */
4849     50,                                      /* current value                  */
4850     10,                                      /* increment                      */
4851     10,                                      /* minimum travel                 */
4852     10,                                      /* maximum travel                 */
4853     20,                                      /* needle width                   */
4854     5,                                       /* needle height                  */
4855     0,                                       /* needle inset                   */
4856     10,                                      /* needle hotspot                 */
4857     GX_PIXELMAP_ID_SECONDARY_HORIZONTAL_FILL_BKGND, /* lower pixelmap id       */
4858     0,                                       /* upper pixelmap id              */
4859     GX_PIXELMAP_ID_SECONDARY_I_INDICATOR_HORIZONTAL  /* needle pixelmap id     */
4860 };
4861 GX_PIXELMAP_SLIDER_PROPERTIES SECONDARY_indicator_screen_pixelmap_slider_1_properties =
4862 {
4863     0,                                       /* minimum value                  */
4864     100,                                     /* maximum value                  */
4865     50,                                      /* current value                  */
4866     10,                                      /* increment                      */
4867     10,                                      /* minimum travel                 */
4868     10,                                      /* maximum travel                 */
4869     0,                                       /* needle width                   */
4870     0,                                       /* needle height                  */
4871     -2,                                      /* needle inset                   */
4872     10,                                      /* needle hotspot                 */
4873     GX_PIXELMAP_ID_SECONDARY_I_ORANGEFILL_MIDDLE, /* lower pixelmap id         */
4874     GX_PIXELMAP_ID_SECONDARY_I_EMPTYFILL_MIDDLE, /* upper pixelmap id          */
4875     GX_PIXELMAP_ID_SECONDARY_I_INDICATOR     /* needle pixelmap id             */
4876 };
4877 GX_ICON_PROPERTIES SECONDARY_indicator_screen_icon_1_properties =
4878 {
4879     GX_PIXELMAP_ID_SECONDARY_I_EMPTYFILL_TOP, /* normal pixelmap id            */
4880     0                                        /* selected pixelmap id           */
4881 };
4882 GX_ICON_PROPERTIES SECONDARY_indicator_screen_icon_2_properties =
4883 {
4884     GX_PIXELMAP_ID_SECONDARY_I_ORANGEFILL_BOTTOM, /* normal pixelmap id        */
4885     0                                        /* selected pixelmap id           */
4886 };
4887 GX_PROMPT_PROPERTIES SECONDARY_indicator_screen_slider_title_properties =
4888 {
4889     GX_STRING_ID_SECONDARY_STRING_38,        /* string id                      */
4890     GX_FONT_ID_PROMPT,                       /* font id                        */
4891     GX_COLOR_ID_TEXT,                        /* normal text color              */
4892     GX_COLOR_ID_TEXT,                        /* selected text color            */
4893     GX_COLOR_ID_TEXT                         /* disabled text color            */
4894 };
4895 GX_TEXT_BUTTON_PROPERTIES SECONDARY_indicator_screen_next_button_3_properties =
4896 {
4897     GX_STRING_ID_SECONDARY_STRING_36,        /* string id                      */
4898     GX_FONT_ID_BUTTON,                       /* font id                        */
4899     GX_COLOR_ID_SECONDARY_WHITE,             /* normal text color              */
4900     GX_COLOR_ID_SECONDARY_WHITE,             /* selected text color            */
4901     GX_COLOR_ID_SECONDARY_WHITE              /* disabled text color            */
4902 };
4903 GX_PROGRESS_BAR_INFO SECONDARY_indicator_screen_progress_bar_1_properties =
4904 {
4905     0,                                       /* mimimun value                  */
4906     100,                                     /* maximum value                  */
4907     50,                                      /* current value                  */
4908     GX_FONT_ID_SYSTEM,                       /* font_id                        */
4909     GX_COLOR_ID_SHINE,                       /* normal text color              */
4910     GX_COLOR_ID_SHINE,                       /* selected text color            */
4911     GX_COLOR_ID_SHINE,                       /* disabled text color            */
4912     0                                        /* fill pixelmap                  */
4913 };
4914 GX_PIXELMAP_SLIDER_PROPERTIES SECONDARY_indicator_screen_pixelmap_slider_2_properties =
4915 {
4916     0,                                       /* minimum value                  */
4917     100,                                     /* maximum value                  */
4918     80,                                      /* current value                  */
4919     10,                                      /* increment                      */
4920     10,                                      /* minimum travel                 */
4921     10,                                      /* maximum travel                 */
4922     0,                                       /* needle width                   */
4923     20,                                      /* needle height                  */
4924     4,                                       /* needle inset                   */
4925     10,                                      /* needle hotspot                 */
4926     GX_PIXELMAP_ID_SECONDARY_I_ORANGEFILL_MIDDLE_HORIZONTAL, /* lower pixelmap id */
4927     GX_PIXELMAP_ID_SECONDARY_I_EMPTYFILL_MIDDLE_HORIZONTAL, /* upper pixelmap id */
4928     GX_PIXELMAP_ID_SECONDARY_I_INDICATOR_HORIZONTAL  /* needle pixelmap id     */
4929 };
4930 GX_RADIAL_PROGRESS_BAR_INFO SECONDARY_indicator_screen_radial_progress_bar_properties =
4931 {
4932     414,                                     /* xcenter                        */
4933     311,                                     /* ycenter                        */
4934     23,                                      /* radius                         */
4935     -80,                                     /* current val                    */
4936     90,                                      /* anchor val                     */
4937     GX_FONT_ID_SYSTEM,                       /* font_id                        */
4938     GX_COLOR_ID_TEXT,                        /* normal text color              */
4939     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4940     GX_COLOR_ID_TEXT,                        /* disabled text color            */
4941     8,                                       /* normal brush width             */
4942     8,                                       /* selected brush width           */
4943     GX_COLOR_ID_SLIDER_NEEDLE_FILL,          /* normal brush color             */
4944     GX_COLOR_ID_SELECTED_FILL,               /* selected brush color           */
4945 };
4946 
4947 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_radial_progress_bar_define =
4948 {
4949     "radial_progress_bar",
4950     GX_TYPE_RADIAL_PROGRESS_BAR,             /* widget type                    */
4951     GX_ID_NONE,                              /* widget id                      */
4952     #if defined(GX_WIDGET_USER_DATA)
4953     0,                                       /* user data                      */
4954     #endif
4955     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_PROGRESS_PERCENT|GX_STYLE_PROGRESS_TEXT_DRAW|GX_STYLE_RADIAL_PROGRESS_ALIAS|GX_STYLE_RADIAL_PROGRESS_ROUND,   /* style flags */
4956     0,                                       /* status flags                   */
4957     sizeof(GX_RADIAL_PROGRESS_BAR),          /* control block size             */
4958     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4959     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4960     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
4961     gx_studio_radial_progress_bar_create,     /* create function               */
4962     GX_NULL,                                 /* drawing function override      */
4963     GX_NULL,                                 /* event function override        */
4964     {387, 284, 441, 338},                    /* widget size                    */
4965     GX_NULL,                                 /* no next widget                 */
4966     GX_NULL,                                 /* no child widgets               */
4967     0,                                       /* runtime control block          */
4968     (void *) &SECONDARY_indicator_screen_radial_progress_bar_properties /* extended properties */
4969 };
4970 
4971 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_pixelmap_slider_2_define =
4972 {
4973     "pixelmap_slider_2",
4974     GX_TYPE_PIXELMAP_SLIDER,                 /* widget type                    */
4975     ID_PIXELMAP_SLIDER1,                     /* widget id                      */
4976     #if defined(GX_WIDGET_USER_DATA)
4977     0,                                       /* user data                      */
4978     #endif
4979     GX_STYLE_BORDER_RAISED|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TILE_BACKGROUND,   /* style flags */
4980     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4981     sizeof(GX_PIXELMAP_SLIDER),              /* control block size             */
4982     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4983     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
4984     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
4985     gx_studio_pixelmap_slider_create,        /* create function                */
4986     GX_NULL,                                 /* drawing function override      */
4987     GX_NULL,                                 /* event function override        */
4988     {171, 289, 331, 326},                    /* widget size                    */
4989     &SECONDARY_indicator_screen_radial_progress_bar_define, /* next widget definition */
4990     GX_NULL,                                 /* no child widgets               */
4991     0,                                       /* runtime control block          */
4992     (void *) &SECONDARY_indicator_screen_pixelmap_slider_2_properties /* extended properties */
4993 };
4994 
4995 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_progress_bar_1_define =
4996 {
4997     "progress_bar_1",
4998     GX_TYPE_PROGRESS_BAR,                    /* widget type                    */
4999     GX_ID_NONE,                              /* widget id                      */
5000     #if defined(GX_WIDGET_USER_DATA)
5001     0,                                       /* user data                      */
5002     #endif
5003     GX_STYLE_BORDER_RAISED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_PROGRESS_PERCENT|GX_STYLE_PROGRESS_TEXT_DRAW,   /* style flags */
5004     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5005     sizeof(GX_PROGRESS_BAR),                 /* control block size             */
5006     GX_COLOR_ID_SHADOW,                      /* normal color id                */
5007     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5008     GX_COLOR_ID_SHADOW,                      /* disabled color id              */
5009     gx_studio_progress_bar_create,           /* create function                */
5010     GX_NULL,                                 /* drawing function override      */
5011     GX_NULL,                                 /* event function override        */
5012     {276, 225, 441, 263},                    /* widget size                    */
5013     &SECONDARY_indicator_screen_pixelmap_slider_2_define, /* next widget definition */
5014     GX_NULL,                                 /* no child widgets               */
5015     0,                                       /* runtime control block          */
5016     (void *) &SECONDARY_indicator_screen_progress_bar_1_properties /* extended properties */
5017 };
5018 
5019 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_next_button_3_define =
5020 {
5021     "next_button_3",
5022     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
5023     IDB_NEXT,                                /* widget id                      */
5024     #if defined(GX_WIDGET_USER_DATA)
5025     0,                                       /* user data                      */
5026     #endif
5027     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
5028     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5029     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
5030     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* normal color id            */
5031     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_UPPER,     /* selected color id          */
5032     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* disabled color id          */
5033     gx_studio_text_button_create,            /* create function                */
5034     GX_NULL,                                 /* drawing function override      */
5035     GX_NULL,                                 /* event function override        */
5036     {375, 351, 454, 378},                    /* widget size                    */
5037     &SECONDARY_indicator_screen_progress_bar_1_define, /* next widget definition */
5038     GX_NULL,                                 /* no child widgets               */
5039     0,                                       /* runtime control block          */
5040     (void *) &SECONDARY_indicator_screen_next_button_3_properties /* extended properties */
5041 };
5042 
5043 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_slider_title_define =
5044 {
5045     "slider_title",
5046     GX_TYPE_PROMPT,                          /* widget type                    */
5047     GX_ID_NONE,                              /* widget id                      */
5048     #if defined(GX_WIDGET_USER_DATA)
5049     0,                                       /* user data                      */
5050     #endif
5051     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
5052     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5053     sizeof(GX_PROMPT),                       /* control block size             */
5054     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5055     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5056     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
5057     gx_studio_prompt_create,                 /* create function                */
5058     GX_NULL,                                 /* drawing function override      */
5059     GX_NULL,                                 /* event function override        */
5060     {235, 68, 372, 91},                      /* widget size                    */
5061     &SECONDARY_indicator_screen_next_button_3_define, /* next widget definition */
5062     GX_NULL,                                 /* no child widgets               */
5063     0,                                       /* runtime control block          */
5064     (void *) &SECONDARY_indicator_screen_slider_title_properties /* extended properties */
5065 };
5066 
5067 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_icon_2_define =
5068 {
5069     "icon_2",
5070     GX_TYPE_ICON,                            /* widget type                    */
5071     GX_ID_NONE,                              /* widget id                      */
5072     #if defined(GX_WIDGET_USER_DATA)
5073     0,                                       /* user data                      */
5074     #endif
5075     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
5076     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5077     sizeof(GX_ICON),                         /* control block size             */
5078     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5079     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5080     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
5081     gx_studio_icon_create,                   /* create function                */
5082     GX_NULL,                                 /* drawing function override      */
5083     GX_NULL,                                 /* event function override        */
5084     {163, 262, 184, 271},                    /* widget size                    */
5085     &SECONDARY_indicator_screen_slider_title_define, /* next widget definition */
5086     GX_NULL,                                 /* no child widgets               */
5087     0,                                       /* runtime control block          */
5088     (void *) &SECONDARY_indicator_screen_icon_2_properties /* extended properties */
5089 };
5090 
5091 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_icon_1_define =
5092 {
5093     "icon_1",
5094     GX_TYPE_ICON,                            /* widget type                    */
5095     GX_ID_NONE,                              /* widget id                      */
5096     #if defined(GX_WIDGET_USER_DATA)
5097     0,                                       /* user data                      */
5098     #endif
5099     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
5100     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5101     sizeof(GX_ICON),                         /* control block size             */
5102     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5103     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5104     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
5105     gx_studio_icon_create,                   /* create function                */
5106     GX_NULL,                                 /* drawing function override      */
5107     GX_NULL,                                 /* event function override        */
5108     {163, 134, 184, 143},                    /* widget size                    */
5109     &SECONDARY_indicator_screen_icon_2_define, /* next widget definition       */
5110     GX_NULL,                                 /* no child widgets               */
5111     0,                                       /* runtime control block          */
5112     (void *) &SECONDARY_indicator_screen_icon_1_properties /* extended properties */
5113 };
5114 
5115 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_pixelmap_slider_1_define =
5116 {
5117     "pixelmap_slider_1",
5118     GX_TYPE_PIXELMAP_SLIDER,                 /* widget type                    */
5119     ID_PIXELMAP_SLIDER1,                     /* widget id                      */
5120     #if defined(GX_WIDGET_USER_DATA)
5121     0,                                       /* user data                      */
5122     #endif
5123     GX_STYLE_BORDER_RAISED|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_SLIDER_VERTICAL|GX_STYLE_TILE_BACKGROUND,   /* style flags */
5124     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5125     sizeof(GX_PIXELMAP_SLIDER),              /* control block size             */
5126     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5127     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
5128     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
5129     gx_studio_pixelmap_slider_create,        /* create function                */
5130     GX_NULL,                                 /* drawing function override      */
5131     GX_NULL,                                 /* event function override        */
5132     {160, 144, 188, 264},                    /* widget size                    */
5133     &SECONDARY_indicator_screen_icon_1_define, /* next widget definition       */
5134     GX_NULL,                                 /* no child widgets               */
5135     0,                                       /* runtime control block          */
5136     (void *) &SECONDARY_indicator_screen_pixelmap_slider_1_properties /* extended properties */
5137 };
5138 
5139 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_pixelmap_slider_define =
5140 {
5141     "pixelmap_slider",
5142     GX_TYPE_PIXELMAP_SLIDER,                 /* widget type                    */
5143     ID_PIXELMAP_SLIDER_H,                    /* widget id                      */
5144     #if defined(GX_WIDGET_USER_DATA)
5145     0,                                       /* user data                      */
5146     #endif
5147     GX_STYLE_BORDER_RAISED|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags */
5148     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5149     sizeof(GX_PIXELMAP_SLIDER),              /* control block size             */
5150     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
5151     GX_COLOR_ID_BTN_LOWER,                   /* selected color id              */
5152     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
5153     gx_studio_pixelmap_slider_create,        /* create function                */
5154     GX_NULL,                                 /* drawing function override      */
5155     GX_NULL,                                 /* event function override        */
5156     {283, 185, 426, 206},                    /* widget size                    */
5157     &SECONDARY_indicator_screen_pixelmap_slider_1_define, /* next widget definition */
5158     GX_NULL,                                 /* no child widgets               */
5159     0,                                       /* runtime control block          */
5160     (void *) &SECONDARY_indicator_screen_pixelmap_slider_properties /* extended properties */
5161 };
5162 
5163 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_slider_1_define =
5164 {
5165     "slider_1",
5166     GX_TYPE_SLIDER,                          /* widget type                    */
5167     ID_SLIDER_1,                             /* widget id                      */
5168     #if defined(GX_WIDGET_USER_DATA)
5169     0,                                       /* user data                      */
5170     #endif
5171     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS|GX_STYLE_SLIDER_VERTICAL,   /* style flags */
5172     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5173     sizeof(GX_SLIDER),                       /* control block size             */
5174     GX_COLOR_ID_BTN_UPPER,                   /* normal color id                */
5175     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
5176     GX_COLOR_ID_BTN_UPPER,                   /* disabled color id              */
5177     gx_studio_slider_create,                 /* create function                */
5178     GX_NULL,                                 /* drawing function override      */
5179     GX_NULL,                                 /* event function override        */
5180     {207, 133, 240, 272},                    /* widget size                    */
5181     &SECONDARY_indicator_screen_pixelmap_slider_define, /* next widget definition */
5182     GX_NULL,                                 /* no child widgets               */
5183     0,                                       /* runtime control block          */
5184     (void *) &SECONDARY_indicator_screen_slider_1_properties /* extended properties */
5185 };
5186 
5187 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_slider_define =
5188 {
5189     "slider",
5190     GX_TYPE_SLIDER,                          /* widget type                    */
5191     ID_SLIDER_HORIZONTAL,                    /* widget id                      */
5192     #if defined(GX_WIDGET_USER_DATA)
5193     0,                                       /* user data                      */
5194     #endif
5195     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
5196     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5197     sizeof(GX_SLIDER),                       /* control block size             */
5198     GX_COLOR_ID_SECONDARY_ORANGE,            /* normal color id                */
5199     GX_COLOR_ID_SECONDARY_ORANGE,            /* selected color id              */
5200     GX_COLOR_ID_SECONDARY_ORANGE,            /* disabled color id              */
5201     gx_studio_slider_create,                 /* create function                */
5202     GX_NULL,                                 /* drawing function override      */
5203     GX_NULL,                                 /* event function override        */
5204     {263, 130, 446, 166},                    /* widget size                    */
5205     &SECONDARY_indicator_screen_slider_1_define, /* next widget definition     */
5206     GX_NULL,                                 /* no child widgets               */
5207     0,                                       /* runtime control block          */
5208     (void *) &SECONDARY_indicator_screen_slider_properties /* extended properties */
5209 };
5210 
5211 GX_STUDIO_ACTION SECONDARY_indicator_screen__idb_next_gx_event_clicked_actions[2] = {
5212     {GX_ACTION_TYPE_TOGGLE, 0, &SECONDARY_root_window, &SECONDARY_button_screen, GX_NULL},
5213     {0, 0, GX_NULL, GX_NULL, GX_NULL}
5214 };
5215 
5216 static GX_STUDIO_EVENT_ENTRY gx_studio_SECONDARY_indicator_screen_event_table[] = {
5217     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, SECONDARY_indicator_screen__idb_next_gx_event_clicked_actions},
5218     {0, 0, GX_NULL}
5219 };
5220 
5221 GX_STUDIO_EVENT_PROCESS SECONDARY_indicator_screen_event_chain = {gx_studio_SECONDARY_indicator_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_SECONDARY_indicator_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)5222 static UINT gx_studio_SECONDARY_indicator_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
5223 {
5224     return (gx_studio_auto_event_handler(target, event_ptr, &SECONDARY_indicator_screen_event_chain));
5225 }
5226 
5227 
5228 GX_CONST GX_STUDIO_WIDGET SECONDARY_indicator_screen_define =
5229 {
5230     "SECONDARY_indicator_screen",
5231     GX_TYPE_WINDOW,                          /* widget type                    */
5232     ID_INDICATOR_SCREEN,                     /* widget id                      */
5233     #if defined(GX_WIDGET_USER_DATA)
5234     0,                                       /* user data                      */
5235     #endif
5236     GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags      */
5237     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5238     sizeof(SECONDARY_INDICATOR_SCREEN_CONTROL_BLOCK), /* control block size    */
5239     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
5240     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
5241     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
5242     gx_studio_window_create,                 /* create function                */
5243     GX_NULL,                                 /* drawing function override      */
5244     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_SECONDARY_indicator_screen_event_process, /* event function override */
5245     {146, 53, 465, 386},                     /* widget size                    */
5246     GX_NULL,                                 /* next widget                    */
5247     &SECONDARY_indicator_screen_slider_define, /* child widget                 */
5248     0,                                       /* control block                  */
5249     (void *) &SECONDARY_indicator_screen_properties /* extended properties     */
5250 };
5251 GX_TEMPLATE_PROPERTIES SECONDARY_popup_modal_derived_derived_properties =
5252 {
5253     &SECONDARY_popup_modal_derived_define,   /* base info                      */
5254     gx_studio_template_create,               /* base create function           */
5255     {160, 120, 479, 359}                     /* widget size                    */
5256 };
5257 
5258 GX_STUDIO_ACTION SECONDARY_popup_modal_derived_derived__idb_cancel_gx_event_clicked_actions[2] = {
5259     {GX_ACTION_TYPE_WINDOW_EXECUTE_STOP, GX_ACTION_FLAG_DYNAMIC_TARGET, &SECONDARY_root_window,  &SECONDARY_popup_modal_derived_derived_define, GX_NULL},
5260     {0, 0, GX_NULL, GX_NULL, GX_NULL}
5261 };
5262 
5263 
5264 GX_STUDIO_ACTION SECONDARY_popup_modal_derived_derived__idb_ok_gx_event_clicked_actions[2] = {
5265     {GX_ACTION_TYPE_WINDOW_EXECUTE_STOP, GX_ACTION_FLAG_DYNAMIC_TARGET, &SECONDARY_root_window,  &SECONDARY_popup_modal_derived_derived_define, GX_NULL},
5266     {0, 0, GX_NULL, GX_NULL, GX_NULL}
5267 };
5268 
5269 static GX_STUDIO_EVENT_ENTRY gx_studio_SECONDARY_popup_modal_derived_derived_event_table[] = {
5270     {GX_SIGNAL(IDB_CANCEL, GX_EVENT_CLICKED), 0, SECONDARY_popup_modal_derived_derived__idb_cancel_gx_event_clicked_actions},
5271     {GX_SIGNAL(IDB_OK, GX_EVENT_CLICKED), 0, SECONDARY_popup_modal_derived_derived__idb_ok_gx_event_clicked_actions},
5272     {0, 0, GX_NULL}
5273 };
5274 
5275 GX_STUDIO_EVENT_PROCESS SECONDARY_popup_modal_derived_derived_event_chain = {gx_studio_SECONDARY_popup_modal_derived_derived_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_SECONDARY_popup_modal_derived_derived_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)5276 static UINT gx_studio_SECONDARY_popup_modal_derived_derived_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
5277 {
5278     return (gx_studio_auto_event_handler(target, event_ptr, &SECONDARY_popup_modal_derived_derived_event_chain));
5279 }
5280 
5281 
5282 GX_CONST GX_STUDIO_WIDGET SECONDARY_popup_modal_derived_derived_define =
5283 {
5284     "SECONDARY_popup_modal_derived_derived",
5285     GX_TYPE_TEMPLATE,                        /* widget type                    */
5286     GX_ID_NONE,                              /* widget id                      */
5287     #if defined(GX_WIDGET_USER_DATA)
5288     0,                                       /* user data                      */
5289     #endif
5290     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags */
5291     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5292     sizeof(SECONDARY_POPUP_MODAL_DERIVED_DERIVED_CONTROL_BLOCK), /* control block size */
5293     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
5294     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
5295     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5296     gx_studio_template_create,               /* create function                */
5297     GX_NULL,                                 /* drawing function override      */
5298     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_SECONDARY_popup_modal_derived_derived_event_process, /* event function override */
5299     {160, 120, 479, 359},                    /* widget size                    */
5300     GX_NULL,                                 /* next widget                    */
5301     GX_NULL,                                 /* child widget                   */
5302     0,                                       /* control block                  */
5303     (void *) &SECONDARY_popup_modal_derived_derived_properties /* extended properties */
5304 };
5305 GX_WINDOW_PROPERTIES SECONDARY_rotate_screen_properties =
5306 {
5307     0                                        /* wallpaper pixelmap id          */
5308 };
5309 GX_TEXT_BUTTON_PROPERTIES SECONDARY_rotate_screen_next_button_8_properties =
5310 {
5311     GX_STRING_ID_SECONDARY_STRING_36,        /* string id                      */
5312     GX_FONT_ID_BUTTON,                       /* font id                        */
5313     GX_COLOR_ID_SECONDARY_WHITE,             /* normal text color              */
5314     GX_COLOR_ID_SECONDARY_WHITE,             /* selected text color            */
5315     GX_COLOR_ID_SECONDARY_WHITE              /* disabled text color            */
5316 };
5317 GX_CHECKBOX_PROPERTIES SECONDARY_rotate_screen_checkbox_1_properties =
5318 {
5319     GX_STRING_ID_SECONDARY_STRING_39_1,      /* string id                      */
5320     GX_FONT_ID_BUTTON,                       /* font id                        */
5321     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
5322     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
5323     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
5324     0,                                       /* unchecked pixelmap id          */
5325     0,                                       /* checked pixelmap id            */
5326     0,                                       /* unchecked disabled pixelmap id */
5327     0                                        /* checked disabled pixelmap id   */
5328 };
5329 GX_PROMPT_PROPERTIES SECONDARY_rotate_screen_prompt_11_properties =
5330 {
5331     GX_STRING_ID_SECONDARY_STRING_40_1,      /* string id                      */
5332     GX_FONT_ID_PROMPT,                       /* font id                        */
5333     GX_COLOR_ID_TEXT,                        /* normal text color              */
5334     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5335     GX_COLOR_ID_TEXT                         /* disabled text color            */
5336 };
5337 GX_SLIDER_PROPERTIES SECONDARY_rotate_screen_slider_3_properties =
5338 {
5339     10,                                      /* tickmark count                 */
5340     0,                                       /* mimimun value                  */
5341     359,                                     /* maximum value                  */
5342     30,                                      /* current value                  */
5343     10,                                      /* increment                      */
5344     10,                                      /* minimum travel                 */
5345     10,                                      /* maximum travel                 */
5346     5,                                       /* needle width                   */
5347     10,                                      /* needle height                  */
5348     5,                                       /* needle inset                   */
5349     2                                        /* needle hotspot                 */
5350 };
5351 GX_PROMPT_PROPERTIES SECONDARY_rotate_screen_prompt_12_properties =
5352 {
5353     GX_STRING_ID_SECONDARY_STRING_41_1,      /* string id                      */
5354     GX_FONT_ID_PROMPT,                       /* font id                        */
5355     GX_COLOR_ID_TEXT,                        /* normal text color              */
5356     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5357     GX_COLOR_ID_TEXT                         /* disabled text color            */
5358 };
5359 GX_WINDOW_PROPERTIES SECONDARY_rotate_screen_pixelmap_window_properties =
5360 {
5361     0                                        /* wallpaper pixelmap id          */
5362 };
5363 GX_RADIO_BUTTON_PROPERTIES SECONDARY_rotate_screen_radio_button_properties =
5364 {
5365     GX_STRING_ID_SECONDARY_STRING_42_1,      /* string id                      */
5366     GX_FONT_ID_BUTTON,                       /* font id                        */
5367     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
5368     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
5369     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
5370     0,                                       /* off pixelmap id                */
5371     0,                                       /* on pixelmap id                 */
5372     0,                                       /* off disabled pixelmap id       */
5373     0                                        /* on disabled pixelmap id        */
5374 };
5375 GX_RADIO_BUTTON_PROPERTIES SECONDARY_rotate_screen_radio_button_1_properties =
5376 {
5377     GX_STRING_ID_SECONDARY_STRING_43_1,      /* string id                      */
5378     GX_FONT_ID_BUTTON,                       /* font id                        */
5379     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
5380     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
5381     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
5382     0,                                       /* off pixelmap id                */
5383     0,                                       /* on pixelmap id                 */
5384     0,                                       /* off disabled pixelmap id       */
5385     0                                        /* on disabled pixelmap id        */
5386 };
5387 GX_RADIO_BUTTON_PROPERTIES SECONDARY_rotate_screen_radio_button_2_properties =
5388 {
5389     GX_STRING_ID_SECONDARY_STRING_44_1,      /* string id                      */
5390     GX_FONT_ID_BUTTON,                       /* font id                        */
5391     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
5392     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
5393     GX_COLOR_ID_BTN_TEXT,                    /* disabled text color            */
5394     0,                                       /* off pixelmap id                */
5395     0,                                       /* on pixelmap id                 */
5396     0,                                       /* off disabled pixelmap id       */
5397     0                                        /* on disabled pixelmap id        */
5398 };
5399 
5400 GX_CONST GX_STUDIO_WIDGET SECONDARY_rotate_screen_radio_button_2_define =
5401 {
5402     "radio_button_2",
5403     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
5404     ID_RADIO_FISH,                           /* widget id                      */
5405     #if defined(GX_WIDGET_USER_DATA)
5406     0,                                       /* user data                      */
5407     #endif
5408     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
5409     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5410     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
5411     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
5412     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
5413     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
5414     gx_studio_radio_button_create,           /* create function                */
5415     GX_NULL,                                 /* drawing function override      */
5416     GX_NULL,                                 /* event function override        */
5417     {388, 425, 467, 448},                    /* widget size                    */
5418     GX_NULL,                                 /* no next widget                 */
5419     GX_NULL,                                 /* no child widgets               */
5420     offsetof(SECONDARY_ROTATE_SCREEN_CONTROL_BLOCK, SECONDARY_rotate_screen_radio_button_2), /* control block */
5421     (void *) &SECONDARY_rotate_screen_radio_button_2_properties /* extended properties */
5422 };
5423 
5424 GX_CONST GX_STUDIO_WIDGET SECONDARY_rotate_screen_radio_button_1_define =
5425 {
5426     "radio_button_1",
5427     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
5428     ID_RADIO_APPLE,                          /* widget id                      */
5429     #if defined(GX_WIDGET_USER_DATA)
5430     0,                                       /* user data                      */
5431     #endif
5432     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
5433     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5434     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
5435     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
5436     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
5437     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
5438     gx_studio_radio_button_create,           /* create function                */
5439     GX_NULL,                                 /* drawing function override      */
5440     GX_NULL,                                 /* event function override        */
5441     {236, 425, 315, 448},                    /* widget size                    */
5442     &SECONDARY_rotate_screen_radio_button_2_define, /* next widget definition  */
5443     GX_NULL,                                 /* no child widgets               */
5444     offsetof(SECONDARY_ROTATE_SCREEN_CONTROL_BLOCK, SECONDARY_rotate_screen_radio_button_1), /* control block */
5445     (void *) &SECONDARY_rotate_screen_radio_button_1_properties /* extended properties */
5446 };
5447 
5448 GX_CONST GX_STUDIO_WIDGET SECONDARY_rotate_screen_radio_button_define =
5449 {
5450     "radio_button",
5451     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
5452     ID_RADIO_FOOT,                           /* widget id                      */
5453     #if defined(GX_WIDGET_USER_DATA)
5454     0,                                       /* user data                      */
5455     #endif
5456     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_LEFT,   /* style flags */
5457     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5458     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
5459     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
5460     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
5461     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
5462     gx_studio_radio_button_create,           /* create function                */
5463     GX_NULL,                                 /* drawing function override      */
5464     GX_NULL,                                 /* event function override        */
5465     {84, 425, 163, 448},                     /* widget size                    */
5466     &SECONDARY_rotate_screen_radio_button_1_define, /* next widget definition  */
5467     GX_NULL,                                 /* no child widgets               */
5468     offsetof(SECONDARY_ROTATE_SCREEN_CONTROL_BLOCK, SECONDARY_rotate_screen_radio_button), /* control block */
5469     (void *) &SECONDARY_rotate_screen_radio_button_properties /* extended properties */
5470 };
5471 
5472 GX_CONST GX_STUDIO_WIDGET SECONDARY_rotate_screen_pixelmap_window_define =
5473 {
5474     "pixelmap_window",
5475     GX_TYPE_WINDOW,                          /* widget type                    */
5476     GX_ID_NONE,                              /* widget id                      */
5477     #if defined(GX_WIDGET_USER_DATA)
5478     0,                                       /* user data                      */
5479     #endif
5480     GX_STYLE_BORDER_THIN,                    /* style flags                    */
5481     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5482     sizeof(GX_WINDOW),                       /* control block size             */
5483     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_UPPER,     /* normal color id            */
5484     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_UPPER,     /* selected color id          */
5485     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_UPPER,     /* disabled color id          */
5486     gx_studio_window_create,                 /* create function                */
5487     (VOID (*)(GX_WIDGET *)) pixelmap_draw,   /* drawing function override      */
5488     GX_NULL,                                 /* event function override        */
5489     {31, 69, 613, 400},                      /* widget size                    */
5490     &SECONDARY_rotate_screen_radio_button_define, /* next widget definition    */
5491     GX_NULL,                                 /* no child widgets               */
5492     offsetof(SECONDARY_ROTATE_SCREEN_CONTROL_BLOCK, SECONDARY_rotate_screen_pixelmap_window), /* control block */
5493     (void *) &SECONDARY_rotate_screen_pixelmap_window_properties /* extended properties */
5494 };
5495 
5496 GX_CONST GX_STUDIO_WIDGET SECONDARY_rotate_screen_prompt_12_define =
5497 {
5498     "prompt_12",
5499     GX_TYPE_PROMPT,                          /* widget type                    */
5500     ID_ANGLE_DISPLAY,                        /* widget id                      */
5501     #if defined(GX_WIDGET_USER_DATA)
5502     0,                                       /* user data                      */
5503     #endif
5504     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
5505     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5506     sizeof(GX_PROMPT),                       /* control block size             */
5507     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5508     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5509     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
5510     gx_studio_prompt_create,                 /* create function                */
5511     GX_NULL,                                 /* drawing function override      */
5512     GX_NULL,                                 /* event function override        */
5513     {574, 26, 617, 49},                      /* widget size                    */
5514     &SECONDARY_rotate_screen_pixelmap_window_define, /* next widget definition */
5515     GX_NULL,                                 /* no child widgets               */
5516     offsetof(SECONDARY_ROTATE_SCREEN_CONTROL_BLOCK, SECONDARY_rotate_screen_prompt_12), /* control block */
5517     (void *) &SECONDARY_rotate_screen_prompt_12_properties /* extended properties */
5518 };
5519 
5520 GX_CONST GX_STUDIO_WIDGET SECONDARY_rotate_screen_slider_3_define =
5521 {
5522     "slider_3",
5523     GX_TYPE_SLIDER,                          /* widget type                    */
5524     ID_SLIDER_ANGLE,                         /* widget id                      */
5525     #if defined(GX_WIDGET_USER_DATA)
5526     0,                                       /* user data                      */
5527     #endif
5528     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_SHOW_NEEDLE|GX_STYLE_SHOW_TICKMARKS,   /* style flags */
5529     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5530     sizeof(GX_SLIDER),                       /* control block size             */
5531     GX_COLOR_ID_BTN_UPPER,                   /* normal color id                */
5532     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
5533     GX_COLOR_ID_BTN_UPPER,                   /* disabled color id              */
5534     gx_studio_slider_create,                 /* create function                */
5535     GX_NULL,                                 /* drawing function override      */
5536     GX_NULL,                                 /* event function override        */
5537     {388, 26, 553, 49},                      /* widget size                    */
5538     &SECONDARY_rotate_screen_prompt_12_define, /* next widget definition       */
5539     GX_NULL,                                 /* no child widgets               */
5540     offsetof(SECONDARY_ROTATE_SCREEN_CONTROL_BLOCK, SECONDARY_rotate_screen_slider_3), /* control block */
5541     (void *) &SECONDARY_rotate_screen_slider_3_properties /* extended properties */
5542 };
5543 
5544 GX_CONST GX_STUDIO_WIDGET SECONDARY_rotate_screen_prompt_11_define =
5545 {
5546     "prompt_11",
5547     GX_TYPE_PROMPT,                          /* widget type                    */
5548     GX_ID_NONE,                              /* widget id                      */
5549     #if defined(GX_WIDGET_USER_DATA)
5550     0,                                       /* user data                      */
5551     #endif
5552     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
5553     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5554     sizeof(GX_PROMPT),                       /* control block size             */
5555     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5556     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5557     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
5558     gx_studio_prompt_create,                 /* create function                */
5559     GX_NULL,                                 /* drawing function override      */
5560     GX_NULL,                                 /* event function override        */
5561     {248, 26, 367, 49},                      /* widget size                    */
5562     &SECONDARY_rotate_screen_slider_3_define, /* next widget definition        */
5563     GX_NULL,                                 /* no child widgets               */
5564     offsetof(SECONDARY_ROTATE_SCREEN_CONTROL_BLOCK, SECONDARY_rotate_screen_prompt_11), /* control block */
5565     (void *) &SECONDARY_rotate_screen_prompt_11_properties /* extended properties */
5566 };
5567 
5568 GX_CONST GX_STUDIO_WIDGET SECONDARY_rotate_screen_checkbox_1_define =
5569 {
5570     "checkbox_1",
5571     GX_TYPE_CHECKBOX,                        /* widget type                    */
5572     ID_DIRECT_ROTATE,                        /* widget id                      */
5573     #if defined(GX_WIDGET_USER_DATA)
5574     0,                                       /* user data                      */
5575     #endif
5576     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_TOGGLE|GX_STYLE_TEXT_LEFT,   /* style flags */
5577     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5578     sizeof(GX_CHECKBOX),                     /* control block size             */
5579     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
5580     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
5581     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
5582     gx_studio_checkbox_create,               /* create function                */
5583     GX_NULL,                                 /* drawing function override      */
5584     GX_NULL,                                 /* event function override        */
5585     {49, 26, 198, 49},                       /* widget size                    */
5586     &SECONDARY_rotate_screen_prompt_11_define, /* next widget definition       */
5587     GX_NULL,                                 /* no child widgets               */
5588     offsetof(SECONDARY_ROTATE_SCREEN_CONTROL_BLOCK, SECONDARY_rotate_screen_checkbox_1), /* control block */
5589     (void *) &SECONDARY_rotate_screen_checkbox_1_properties /* extended properties */
5590 };
5591 
5592 GX_CONST GX_STUDIO_WIDGET SECONDARY_rotate_screen_next_button_8_define =
5593 {
5594     "next_button_8",
5595     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
5596     IDB_NEXT,                                /* widget id                      */
5597     #if defined(GX_WIDGET_USER_DATA)
5598     0,                                       /* user data                      */
5599     #endif
5600     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
5601     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5602     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
5603     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* normal color id            */
5604     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_UPPER,     /* selected color id          */
5605     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* disabled color id          */
5606     gx_studio_text_button_create,            /* create function                */
5607     GX_NULL,                                 /* drawing function override      */
5608     GX_NULL,                                 /* event function override        */
5609     {532, 426, 611, 450},                    /* widget size                    */
5610     &SECONDARY_rotate_screen_checkbox_1_define, /* next widget definition      */
5611     GX_NULL,                                 /* no child widgets               */
5612     offsetof(SECONDARY_ROTATE_SCREEN_CONTROL_BLOCK, SECONDARY_rotate_screen_next_button_8), /* control block */
5613     (void *) &SECONDARY_rotate_screen_next_button_8_properties /* extended properties */
5614 };
5615 
5616 GX_STUDIO_ACTION SECONDARY_rotate_screen__idb_next_gx_event_clicked_actions[2] = {
5617     {GX_ACTION_TYPE_TOGGLE, GX_ACTION_FLAG_DYNAMIC_TARGET, &SECONDARY_root_window,  &SECONDARY_scroll_wheel_screen_define, GX_NULL},
5618     {0, 0, GX_NULL, GX_NULL, GX_NULL}
5619 };
5620 
5621 static GX_STUDIO_EVENT_ENTRY gx_studio_SECONDARY_rotate_screen_event_table[] = {
5622     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, SECONDARY_rotate_screen__idb_next_gx_event_clicked_actions},
5623     {0, 0, GX_NULL}
5624 };
5625 
5626 GX_STUDIO_EVENT_PROCESS SECONDARY_rotate_screen_event_chain = {gx_studio_SECONDARY_rotate_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_SECONDARY_rotate_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)5627 static UINT gx_studio_SECONDARY_rotate_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
5628 {
5629     return (gx_studio_auto_event_handler(target, event_ptr, &SECONDARY_rotate_screen_event_chain));
5630 }
5631 
5632 
5633 GX_CONST GX_STUDIO_WIDGET SECONDARY_rotate_screen_define =
5634 {
5635     "SECONDARY_rotate_screen",
5636     GX_TYPE_WINDOW,                          /* widget type                    */
5637     ID_ROTATE_SCREEN,                        /* widget id                      */
5638     #if defined(GX_WIDGET_USER_DATA)
5639     0,                                       /* user data                      */
5640     #endif
5641     GX_STYLE_BORDER_THIN,                    /* style flags                    */
5642     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5643     sizeof(SECONDARY_ROTATE_SCREEN_CONTROL_BLOCK), /* control block size       */
5644     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
5645     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
5646     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
5647     gx_studio_window_create,                 /* create function                */
5648     GX_NULL,                                 /* drawing function override      */
5649     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_SECONDARY_rotate_screen_event_process, /* event function override */
5650     {0, 0, 639, 479},                        /* widget size                    */
5651     GX_NULL,                                 /* next widget                    */
5652     &SECONDARY_rotate_screen_next_button_8_define, /* child widget             */
5653     0,                                       /* control block                  */
5654     (void *) &SECONDARY_rotate_screen_properties /* extended properties        */
5655 };
5656 GX_WINDOW_PROPERTIES SECONDARY_scroll_wheel_screen_properties =
5657 {
5658     0                                        /* wallpaper pixelmap id          */
5659 };
5660 GX_TEXT_BUTTON_PROPERTIES SECONDARY_scroll_wheel_screen_next_button_6_properties =
5661 {
5662     GX_STRING_ID_SECONDARY_STRING_36,        /* string id                      */
5663     GX_FONT_ID_BUTTON,                       /* font id                        */
5664     GX_COLOR_ID_SECONDARY_WHITE,             /* normal text color              */
5665     GX_COLOR_ID_SECONDARY_WHITE,             /* selected text color            */
5666     GX_COLOR_ID_SECONDARY_WHITE              /* disabled text color            */
5667 };
5668 GX_PROMPT_PROPERTIES SECONDARY_scroll_wheel_screen_prompt_properties =
5669 {
5670     GX_STRING_ID_SECONDARY_STRING_48,        /* string id                      */
5671     GX_FONT_ID_PROMPT,                       /* font id                        */
5672     GX_COLOR_ID_TEXT,                        /* normal text color              */
5673     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5674     GX_COLOR_ID_TEXT                         /* disabled text color            */
5675 };
5676 GX_NUMERIC_SCROLL_WHEEL_PROPERTIES SECONDARY_scroll_wheel_screen_day_wheel_properties =
5677 {
5678     31,                                      /* total rows                     */
5679     0,                                       /* selected row                   */
5680     45,                                      /* row height                     */
5681     240,                                     /* start alpha                    */
5682     0,                                       /* end alpha                      */
5683     GX_FONT_ID_SECONDARY_NORMAL_FONT,        /* normal font id                 */
5684     GX_FONT_ID_SECONDARY_SELECTED_FONT,      /* selected font id               */
5685     GX_COLOR_ID_SECONDARY_BLACK,             /* normal text color id           */
5686     GX_COLOR_ID_SECONDARY_ORANGE,            /* selected text color id         */
5687     GX_COLOR_ID_SECONDARY_BLACK,             /* disabled text color id         */
5688     0,                                       /* wallpaper id                   */
5689     GX_PIXELMAP_ID_SECONDARY_FILL,           /* selected background            */
5690     day_wheel_value_format,                  /* format callback                */
5691     1,                                       /* start val                      */
5692     31,                                      /* end val                        */
5693 };
5694 GX_CONST GX_RESOURCE_ID SECONDARY_scroll_wheel_screen_month_wheel_string_id_list[]={
5695     GX_STRING_ID_SECONDARY_STRING_63,
5696     GX_STRING_ID_SECONDARY_STRING_69,
5697     GX_STRING_ID_SECONDARY_STRING_70,
5698     GX_STRING_ID_SECONDARY_STRING_71,
5699     GX_STRING_ID_SECONDARY_STRING_72,
5700     GX_STRING_ID_SECONDARY_STRING_73,
5701     GX_STRING_ID_SECONDARY_STRING_74,
5702     GX_STRING_ID_SECONDARY_STRING_75,
5703     GX_STRING_ID_SECONDARY_STRING_76,
5704     GX_STRING_ID_SECONDARY_STRING_77,
5705     GX_STRING_ID_SECONDARY_STRING_78,
5706     GX_STRING_ID_SECONDARY_STRING_79
5707 };
5708 GX_STRING_SCROLL_WHEEL_PROPERTIES SECONDARY_scroll_wheel_screen_month_wheel_properties =
5709 {
5710     12,                                      /* total rows                     */
5711     4,                                       /* selected row                   */
5712     45,                                      /* row height                     */
5713     240,                                     /* start alpha                    */
5714     0,                                       /* end alpha                      */
5715     GX_FONT_ID_SECONDARY_NORMAL_FONT,        /* normal font id                 */
5716     GX_FONT_ID_SECONDARY_SELECTED_FONT,      /* selected font id               */
5717     GX_COLOR_ID_SECONDARY_BLACK,             /* normal text color id           */
5718     GX_COLOR_ID_SECONDARY_ORANGE,            /* selected text color id         */
5719     GX_COLOR_ID_SECONDARY_BLACK,             /* disabled text color id         */
5720     0,                                       /* wallpaper id                   */
5721     GX_PIXELMAP_ID_SECONDARY_FILL,           /* selected background            */
5722     SECONDARY_scroll_wheel_screen_month_wheel_string_id_list, /* string list   */
5723     GX_NULL                                  /* callback                       */
5724 
5725 };
5726 GX_NUMERIC_SCROLL_WHEEL_PROPERTIES SECONDARY_scroll_wheel_screen_year_wheel_properties =
5727 {
5728     9,                                       /* total rows                     */
5729     7,                                       /* selected row                   */
5730     45,                                      /* row height                     */
5731     240,                                     /* start alpha                    */
5732     0,                                       /* end alpha                      */
5733     GX_FONT_ID_SECONDARY_NORMAL_FONT,        /* normal font id                 */
5734     GX_FONT_ID_SECONDARY_SELECTED_FONT,      /* selected font id               */
5735     GX_COLOR_ID_SECONDARY_BLACK,             /* normal text color id           */
5736     GX_COLOR_ID_SECONDARY_ORANGE,            /* selected text color id         */
5737     GX_COLOR_ID_SECONDARY_BLACK,             /* disabled text color id         */
5738     0,                                       /* wallpaper id                   */
5739     GX_PIXELMAP_ID_SECONDARY_FILL,           /* selected background            */
5740     GX_NULL,                                 /* format callback                */
5741     1980,                                    /* start val                      */
5742     2020,                                    /* end val                        */
5743 };
5744 GX_TEXT_BUTTON_PROPERTIES SECONDARY_scroll_wheel_screen_button_properties =
5745 {
5746     GX_STRING_ID_SECONDARY_STRING_50,        /* string id                      */
5747     GX_FONT_ID_BUTTON,                       /* font id                        */
5748     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
5749     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
5750     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
5751 };
5752 GX_CHAR SECONDARY_scroll_wheel_screen_text_input_buffer[3];
5753 GX_SINGLE_LINE_TEXT_INPUT_PROPERTIES SECONDARY_scroll_wheel_screen_text_input_properties =
5754 {
5755     GX_STRING_ID_SECONDARY_STRING_51,        /* string id                      */
5756     GX_FONT_ID_BUTTON,                       /* font id                        */
5757     GX_COLOR_ID_SECONDARY_BLACK,             /* normal text color              */
5758     GX_COLOR_ID_SECONDARY_BLACK,             /* selected text color            */
5759     GX_COLOR_ID_SECONDARY_BLACK,             /* disabled text color            */
5760     GX_COLOR_ID_READONLY_FILL,               /* readonly fill color            */
5761     GX_COLOR_ID_READONLY_TEXT,               /* readonly text color            */
5762     SECONDARY_scroll_wheel_screen_text_input_buffer, /* buffer                 */
5763     3,                                       /* buffer size                    */
5764 };
5765 
5766 GX_CONST GX_STUDIO_WIDGET SECONDARY_scroll_wheel_screen_text_input_define =
5767 {
5768     "text_input",
5769     GX_TYPE_SINGLE_LINE_TEXT_INPUT,          /* widget type                    */
5770     ID_DAY_INPUT,                            /* widget id                      */
5771     #if defined(GX_WIDGET_USER_DATA)
5772     0,                                       /* user data                      */
5773     #endif
5774     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_RIGHT,   /* style flags */
5775     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5776     sizeof(GX_SINGLE_LINE_TEXT_INPUT),       /* control block size             */
5777     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
5778     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
5779     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
5780     gx_studio_text_input_create,             /* create function                */
5781     GX_NULL,                                 /* drawing function override      */
5782     GX_NULL,                                 /* event function override        */
5783     {47, 399, 84, 432},                      /* widget size                    */
5784     GX_NULL,                                 /* no next widget                 */
5785     GX_NULL,                                 /* no child widgets               */
5786     0,                                       /* runtime control block          */
5787     (void *) &SECONDARY_scroll_wheel_screen_text_input_properties /* extended properties */
5788 };
5789 
5790 GX_CONST GX_STUDIO_WIDGET SECONDARY_scroll_wheel_screen_button_define =
5791 {
5792     "button",
5793     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
5794     ID_DAY_SELECT,                           /* widget id                      */
5795     #if defined(GX_WIDGET_USER_DATA)
5796     0,                                       /* user data                      */
5797     #endif
5798     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
5799     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5800     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
5801     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
5802     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
5803     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
5804     gx_studio_text_button_create,            /* create function                */
5805     GX_NULL,                                 /* drawing function override      */
5806     GX_NULL,                                 /* event function override        */
5807     {93, 400, 174, 433},                     /* widget size                    */
5808     &SECONDARY_scroll_wheel_screen_text_input_define, /* next widget definition */
5809     GX_NULL,                                 /* no child widgets               */
5810     0,                                       /* runtime control block          */
5811     (void *) &SECONDARY_scroll_wheel_screen_button_properties /* extended properties */
5812 };
5813 
5814 GX_CONST GX_STUDIO_WIDGET SECONDARY_scroll_wheel_screen_year_wheel_define =
5815 {
5816     "year_wheel",
5817     GX_TYPE_NUMERIC_SCROLL_WHEEL,            /* widget type                    */
5818     ID_YEAR_WHEEL,                           /* widget id                      */
5819     #if defined(GX_WIDGET_USER_DATA)
5820     0,                                       /* user data                      */
5821     #endif
5822     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_WRAP|GX_STYLE_TEXT_SCROLL_WHEEL_ROUND|GX_STYLE_TEXT_CENTER,   /* style flags */
5823     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5824     sizeof(GX_NUMERIC_SCROLL_WHEEL),         /* control block size             */
5825     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
5826     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
5827     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
5828     gx_studio_numeric_scroll_wheel_create,     /* create function              */
5829     GX_NULL,                                 /* drawing function override      */
5830     GX_NULL,                                 /* event function override        */
5831     {380, 117, 524, 352},                    /* widget size                    */
5832     &SECONDARY_scroll_wheel_screen_button_define, /* next widget definition    */
5833     GX_NULL,                                 /* no child widgets               */
5834     0,                                       /* runtime control block          */
5835     (void *) &SECONDARY_scroll_wheel_screen_year_wheel_properties /* extended properties */
5836 };
5837 
5838 GX_CONST GX_STUDIO_WIDGET SECONDARY_scroll_wheel_screen_month_wheel_define =
5839 {
5840     "month_wheel",
5841     GX_TYPE_STRING_SCROLL_WHEEL,             /* widget type                    */
5842     ID_MONTH_WHEEL,                          /* widget id                      */
5843     #if defined(GX_WIDGET_USER_DATA)
5844     0,                                       /* user data                      */
5845     #endif
5846     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_SCROLL_WHEEL_ROUND|GX_STYLE_TEXT_CENTER,   /* style flags */
5847     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5848     sizeof(GX_STRING_SCROLL_WHEEL),          /* control block size             */
5849     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
5850     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
5851     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
5852     gx_studio_string_scroll_wheel_create,     /* create function               */
5853     GX_NULL,                                 /* drawing function override      */
5854     GX_NULL,                                 /* event function override        */
5855     {210, 117, 379, 352},                    /* widget size                    */
5856     &SECONDARY_scroll_wheel_screen_year_wheel_define, /* next widget definition */
5857     GX_NULL,                                 /* no child widgets               */
5858     0,                                       /* runtime control block          */
5859     (void *) &SECONDARY_scroll_wheel_screen_month_wheel_properties /* extended properties */
5860 };
5861 
5862 GX_CONST GX_STUDIO_WIDGET SECONDARY_scroll_wheel_screen_day_wheel_define =
5863 {
5864     "day_wheel",
5865     GX_TYPE_NUMERIC_SCROLL_WHEEL,            /* widget type                    */
5866     ID_DAY_WHEEL,                            /* widget id                      */
5867     #if defined(GX_WIDGET_USER_DATA)
5868     0,                                       /* user data                      */
5869     #endif
5870     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_WRAP|GX_STYLE_TEXT_SCROLL_WHEEL_ROUND|GX_STYLE_TEXT_CENTER,   /* style flags */
5871     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5872     sizeof(GX_NUMERIC_SCROLL_WHEEL),         /* control block size             */
5873     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
5874     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
5875     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
5876     gx_studio_numeric_scroll_wheel_create,     /* create function              */
5877     GX_NULL,                                 /* drawing function override      */
5878     GX_NULL,                                 /* event function override        */
5879     {100, 117, 209, 352},                    /* widget size                    */
5880     &SECONDARY_scroll_wheel_screen_month_wheel_define, /* next widget definition */
5881     GX_NULL,                                 /* no child widgets               */
5882     0,                                       /* runtime control block          */
5883     (void *) &SECONDARY_scroll_wheel_screen_day_wheel_properties /* extended properties */
5884 };
5885 
5886 GX_CONST GX_STUDIO_WIDGET SECONDARY_scroll_wheel_screen_prompt_define =
5887 {
5888     "prompt",
5889     GX_TYPE_PROMPT,                          /* widget type                    */
5890     GX_ID_NONE,                              /* widget id                      */
5891     #if defined(GX_WIDGET_USER_DATA)
5892     0,                                       /* user data                      */
5893     #endif
5894     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
5895     0,                                       /* status flags                   */
5896     sizeof(GX_PROMPT),                       /* control block size             */
5897     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5898     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5899     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
5900     gx_studio_prompt_create,                 /* create function                */
5901     GX_NULL,                                 /* drawing function override      */
5902     GX_NULL,                                 /* event function override        */
5903     {223, 53, 384, 70},                      /* widget size                    */
5904     &SECONDARY_scroll_wheel_screen_day_wheel_define, /* next widget definition */
5905     GX_NULL,                                 /* no child widgets               */
5906     0,                                       /* runtime control block          */
5907     (void *) &SECONDARY_scroll_wheel_screen_prompt_properties /* extended properties */
5908 };
5909 
5910 GX_CONST GX_STUDIO_WIDGET SECONDARY_scroll_wheel_screen_next_button_6_define =
5911 {
5912     "next_button_6",
5913     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
5914     IDB_NEXT,                                /* widget id                      */
5915     #if defined(GX_WIDGET_USER_DATA)
5916     0,                                       /* user data                      */
5917     #endif
5918     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
5919     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5920     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
5921     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* normal color id            */
5922     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_UPPER,     /* selected color id          */
5923     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* disabled color id          */
5924     gx_studio_text_button_create,            /* create function                */
5925     GX_NULL,                                 /* drawing function override      */
5926     GX_NULL,                                 /* event function override        */
5927     {493, 405, 572, 429},                    /* widget size                    */
5928     &SECONDARY_scroll_wheel_screen_prompt_define, /* next widget definition    */
5929     GX_NULL,                                 /* no child widgets               */
5930     0,                                       /* runtime control block          */
5931     (void *) &SECONDARY_scroll_wheel_screen_next_button_6_properties /* extended properties */
5932 };
5933 
5934 GX_STUDIO_ACTION SECONDARY_scroll_wheel_screen__idb_next_gx_event_clicked_actions[2] = {
5935     {GX_ACTION_TYPE_TOGGLE, 0, &SECONDARY_root_window, &SECONDARY_menu_screen, GX_NULL},
5936     {0, 0, GX_NULL, GX_NULL, GX_NULL}
5937 };
5938 
5939 static GX_STUDIO_EVENT_ENTRY gx_studio_SECONDARY_scroll_wheel_screen_event_table[] = {
5940     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, SECONDARY_scroll_wheel_screen__idb_next_gx_event_clicked_actions},
5941     {0, 0, GX_NULL}
5942 };
5943 
5944 GX_STUDIO_EVENT_PROCESS SECONDARY_scroll_wheel_screen_event_chain = {gx_studio_SECONDARY_scroll_wheel_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_SECONDARY_scroll_wheel_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)5945 static UINT gx_studio_SECONDARY_scroll_wheel_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
5946 {
5947     return (gx_studio_auto_event_handler(target, event_ptr, &SECONDARY_scroll_wheel_screen_event_chain));
5948 }
5949 
5950 
5951 GX_CONST GX_STUDIO_WIDGET SECONDARY_scroll_wheel_screen_define =
5952 {
5953     "SECONDARY_scroll_wheel_screen",
5954     GX_TYPE_WINDOW,                          /* widget type                    */
5955     ID_SCROLL_WHEEL_SCREEN,                  /* widget id                      */
5956     #if defined(GX_WIDGET_USER_DATA)
5957     0,                                       /* user data                      */
5958     #endif
5959     GX_STYLE_BORDER_THICK|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags     */
5960     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5961     sizeof(SECONDARY_SCROLL_WHEEL_SCREEN_CONTROL_BLOCK), /* control block size */
5962     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
5963     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
5964     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
5965     gx_studio_window_create,                 /* create function                */
5966     GX_NULL,                                 /* drawing function override      */
5967     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_SECONDARY_scroll_wheel_screen_event_process, /* event function override */
5968     {30, 30, 609, 449},                      /* widget size                    */
5969     GX_NULL,                                 /* next widget                    */
5970     &SECONDARY_scroll_wheel_screen_next_button_6_define, /* child widget       */
5971     0,                                       /* control block                  */
5972     (void *) &SECONDARY_scroll_wheel_screen_properties /* extended properties  */
5973 };
5974 GX_WINDOW_PROPERTIES SECONDARY_gauge_screen_properties =
5975 {
5976     0                                        /* wallpaper pixelmap id          */
5977 };
5978 GX_PROMPT_PROPERTIES SECONDARY_gauge_screen_prompt_6_properties =
5979 {
5980     GX_STRING_ID_SECONDARY_STRING_44,        /* string id                      */
5981     GX_FONT_ID_PROMPT,                       /* font id                        */
5982     GX_COLOR_ID_TEXT,                        /* normal text color              */
5983     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5984     GX_COLOR_ID_TEXT                         /* disabled text color            */
5985 };
5986 GX_TEXT_BUTTON_PROPERTIES SECONDARY_gauge_screen_next_button_4_properties =
5987 {
5988     GX_STRING_ID_SECONDARY_STRING_36,        /* string id                      */
5989     GX_FONT_ID_BUTTON,                       /* font id                        */
5990     GX_COLOR_ID_SECONDARY_WHITE,             /* normal text color              */
5991     GX_COLOR_ID_SECONDARY_WHITE,             /* selected text color            */
5992     GX_COLOR_ID_SECONDARY_WHITE              /* disabled text color            */
5993 };
5994 GX_CIRCULAR_GAUGE_PROPERTIES SECONDARY_gauge_screen_gauge_1_properties =
5995 {
5996     0,                                       /* start angle                    */
5997     30,                                      /* animation steps                */
5998     1,                                       /* animation delay                */
5999     140,                                     /* needle xpos                    */
6000     140,                                     /* needle yos                     */
6001     20,                                      /* needle xcor                    */
6002     88,                                      /* needle ycor                    */
6003     GX_PIXELMAP_ID_SECONDARY_GUAGEMETER,     /* normal pixelmap id             */
6004     0,                                       /* selected pixelmap id           */
6005     GX_PIXELMAP_ID_SECONDARY_NEEDLE          /* needle pixelmap id             */
6006 };
6007 
6008 GX_CONST GX_STUDIO_WIDGET SECONDARY_gauge_screen_gauge_1_define =
6009 {
6010     "gauge_1",
6011     GX_TYPE_CIRCULAR_GAUGE,                  /* widget type                    */
6012     ID_GAUGE,                                /* widget id                      */
6013     #if defined(GX_WIDGET_USER_DATA)
6014     0,                                       /* user data                      */
6015     #endif
6016     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
6017     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6018     sizeof(GX_CIRCULAR_GAUGE),               /* control block size             */
6019     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6020     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6021     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
6022     gx_studio_circular_gauge_create,         /* create function                */
6023     GX_NULL,                                 /* drawing function override      */
6024     GX_NULL,                                 /* event function override        */
6025     {167, 80, 446, 359},                     /* widget size                    */
6026     GX_NULL,                                 /* no next widget                 */
6027     GX_NULL,                                 /* no child widgets               */
6028     offsetof(SECONDARY_GAUGE_SCREEN_CONTROL_BLOCK, SECONDARY_gauge_screen_gauge_1), /* control block */
6029     (void *) &SECONDARY_gauge_screen_gauge_1_properties /* extended properties */
6030 };
6031 
6032 GX_CONST GX_STUDIO_WIDGET SECONDARY_gauge_screen_next_button_4_define =
6033 {
6034     "next_button_4",
6035     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
6036     IDB_NEXT,                                /* widget id                      */
6037     #if defined(GX_WIDGET_USER_DATA)
6038     0,                                       /* user data                      */
6039     #endif
6040     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
6041     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6042     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
6043     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* normal color id            */
6044     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_UPPER,     /* selected color id          */
6045     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* disabled color id          */
6046     gx_studio_text_button_create,            /* create function                */
6047     GX_NULL,                                 /* drawing function override      */
6048     GX_NULL,                                 /* event function override        */
6049     {515, 411, 594, 435},                    /* widget size                    */
6050     &SECONDARY_gauge_screen_gauge_1_define,  /* next widget definition         */
6051     GX_NULL,                                 /* no child widgets               */
6052     offsetof(SECONDARY_GAUGE_SCREEN_CONTROL_BLOCK, SECONDARY_gauge_screen_next_button_4), /* control block */
6053     (void *) &SECONDARY_gauge_screen_next_button_4_properties /* extended properties */
6054 };
6055 
6056 GX_CONST GX_STUDIO_WIDGET SECONDARY_gauge_screen_prompt_6_define =
6057 {
6058     "prompt_6",
6059     GX_TYPE_PROMPT,                          /* widget type                    */
6060     GX_ID_NONE,                              /* widget id                      */
6061     #if defined(GX_WIDGET_USER_DATA)
6062     0,                                       /* user data                      */
6063     #endif
6064     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6065     0,                                       /* status flags                   */
6066     sizeof(GX_PROMPT),                       /* control block size             */
6067     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6068     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6069     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
6070     gx_studio_prompt_create,                 /* create function                */
6071     (VOID (*)(GX_WIDGET *)) gauge_prompt_draw, /* drawing function override    */
6072     GX_NULL,                                 /* event function override        */
6073     {256, 380, 365, 397},                    /* widget size                    */
6074     &SECONDARY_gauge_screen_next_button_4_define, /* next widget definition    */
6075     GX_NULL,                                 /* no child widgets               */
6076     offsetof(SECONDARY_GAUGE_SCREEN_CONTROL_BLOCK, SECONDARY_gauge_screen_prompt_6), /* control block */
6077     (void *) &SECONDARY_gauge_screen_prompt_6_properties /* extended properties */
6078 };
6079 
6080 GX_STUDIO_ACTION SECONDARY_gauge_screen__idb_next_gx_event_clicked_actions[2] = {
6081     {GX_ACTION_TYPE_TOGGLE, GX_ACTION_FLAG_DYNAMIC_TARGET, &SECONDARY_root_window,  &SECONDARY_indicator_screen_define, GX_NULL},
6082     {0, 0, GX_NULL, GX_NULL, GX_NULL}
6083 };
6084 
6085 static GX_STUDIO_EVENT_ENTRY gx_studio_SECONDARY_gauge_screen_event_table[] = {
6086     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, SECONDARY_gauge_screen__idb_next_gx_event_clicked_actions},
6087     {0, 0, GX_NULL}
6088 };
6089 
6090 GX_STUDIO_EVENT_PROCESS SECONDARY_gauge_screen_event_chain = {gx_studio_SECONDARY_gauge_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_SECONDARY_gauge_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)6091 static UINT gx_studio_SECONDARY_gauge_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
6092 {
6093     return (gx_studio_auto_event_handler(target, event_ptr, &SECONDARY_gauge_screen_event_chain));
6094 }
6095 
6096 
6097 GX_CONST GX_STUDIO_WIDGET SECONDARY_gauge_screen_define =
6098 {
6099     "SECONDARY_gauge_screen",
6100     GX_TYPE_WINDOW,                          /* widget type                    */
6101     ID_GAUGE_SCREEN,                         /* widget id                      */
6102     #if defined(GX_WIDGET_USER_DATA)
6103     0,                                       /* user data                      */
6104     #endif
6105     GX_STYLE_BORDER_THICK,                   /* style flags                    */
6106     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6107     sizeof(SECONDARY_GAUGE_SCREEN_CONTROL_BLOCK), /* control block size        */
6108     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
6109     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
6110     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
6111     gx_studio_window_create,                 /* create function                */
6112     GX_NULL,                                 /* drawing function override      */
6113     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_SECONDARY_gauge_screen_event_process, /* event function override */
6114     {33, 28, 608, 448},                      /* widget size                    */
6115     GX_NULL,                                 /* next widget                    */
6116     &SECONDARY_gauge_screen_prompt_6_define, /* child widget                   */
6117     0,                                       /* control block                  */
6118     (void *) &SECONDARY_gauge_screen_properties /* extended properties         */
6119 };
6120 GX_WINDOW_PROPERTIES SECONDARY_text_screen_properties =
6121 {
6122     0                                        /* wallpaper pixelmap id          */
6123 };
6124 GX_PROMPT_PROPERTIES SECONDARY_text_screen_prompt_1_properties =
6125 {
6126     GX_STRING_ID_SECONDARY_STRING_24,        /* string id                      */
6127     GX_FONT_ID_PROMPT,                       /* font id                        */
6128     GX_COLOR_ID_TEXT,                        /* normal text color              */
6129     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6130     GX_COLOR_ID_TEXT                         /* disabled text color            */
6131 };
6132 GX_PROMPT_PROPERTIES SECONDARY_text_screen_prompt_2_properties =
6133 {
6134     GX_STRING_ID_SECONDARY_STRING_29,        /* string id                      */
6135     GX_FONT_ID_PROMPT,                       /* font id                        */
6136     GX_COLOR_ID_SECONDARY_WHITE,             /* normal text color              */
6137     GX_COLOR_ID_SECONDARY_WHITE,             /* selected text color            */
6138     GX_COLOR_ID_SECONDARY_WHITE              /* disabled text color            */
6139 };
6140 GX_PROMPT_PROPERTIES SECONDARY_text_screen_prompt_3_properties =
6141 {
6142     GX_STRING_ID_SECONDARY_STRING_27,        /* string id                      */
6143     GX_FONT_ID_PROMPT,                       /* font id                        */
6144     GX_COLOR_ID_TEXT,                        /* normal text color              */
6145     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6146     GX_COLOR_ID_TEXT                         /* disabled text color            */
6147 };
6148 GX_PIXELMAP_PROMPT_PROPERTIES SECONDARY_text_screen_prompt_4_properties =
6149 {
6150     GX_STRING_ID_SECONDARY_STRING_30,        /* string id                      */
6151     GX_FONT_ID_PROMPT,                       /* font id                        */
6152     GX_COLOR_ID_TEXT,                        /* normal text color              */
6153     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6154     GX_COLOR_ID_TEXT,                        /* disabled text color            */
6155     GX_PIXELMAP_ID_SECONDARY_TFIELD_LEFT_SMALL, /* left pixelmap id            */
6156     GX_PIXELMAP_ID_SECONDARY_TFIELD_FILL_SMALL, /* fill pixelmap id            */
6157     GX_PIXELMAP_ID_SECONDARY_TFIELD_RIGHT_SMALL, /* right pixelmap id          */
6158     0,                                       /* selected left pixelmap id      */
6159     0,                                       /* selected fill pixelmap id      */
6160     0                                        /* selected right pixelmap id     */
6161 };
6162 GX_CHAR SECONDARY_text_screen_text_input_1_buffer[100];
6163 GX_SINGLE_LINE_TEXT_INPUT_PROPERTIES SECONDARY_text_screen_text_input_1_properties =
6164 {
6165     GX_STRING_ID_SECONDARY_STRING_34,        /* string id                      */
6166     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
6167     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
6168     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected text color            */
6169     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled text color            */
6170     GX_COLOR_ID_READONLY_FILL,               /* readonly fill color            */
6171     GX_COLOR_ID_READONLY_TEXT,               /* readonly text color            */
6172     SECONDARY_text_screen_text_input_1_buffer, /* buffer                       */
6173     100,                                     /* buffer size                    */
6174 };
6175 GX_ML_TEXT_VIEW_PROPERTIES SECONDARY_text_screen_text_view_1_properties =
6176 {
6177     GX_STRING_ID_SECONDARY_STRING_31,        /* string id                      */
6178     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
6179     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
6180     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected text color            */
6181     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled text color            */
6182     0,                                       /* whitespace                     */
6183     0                                        /* line_space                     */
6184 };
6185 GX_CHAR SECONDARY_text_screen_text_input_2_buffer[200];
6186 GX_MULTI_LINE_TEXT_INPUT_PROPERTIES SECONDARY_text_screen_text_input_2_properties =
6187 {
6188     GX_STRING_ID_SECONDARY_STRING_33,        /* string id                      */
6189     GX_FONT_ID_TEXT_INPUT,                   /* font id                        */
6190     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* normal text color              */
6191     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* selected text color            */
6192     GX_COLOR_ID_TEXT_INPUT_TEXT,             /* disabled text color            */
6193     GX_COLOR_ID_READONLY_FILL,               /* readonly fill color            */
6194     GX_COLOR_ID_READONLY_TEXT,               /* readonly text color            */
6195     0,                                       /* whitespace                     */
6196     0,                                       /* line_space                     */
6197     SECONDARY_text_screen_text_input_2_buffer,  /* buffer                      */
6198     200                                      /* buffer size                    */
6199 };
6200 GX_TEXT_BUTTON_PROPERTIES SECONDARY_text_screen_next_button_2_properties =
6201 {
6202     GX_STRING_ID_SECONDARY_STRING_36,        /* string id                      */
6203     GX_FONT_ID_BUTTON,                       /* font id                        */
6204     GX_COLOR_ID_SECONDARY_WHITE,             /* normal text color              */
6205     GX_COLOR_ID_SECONDARY_WHITE,             /* selected text color            */
6206     GX_COLOR_ID_SECONDARY_WHITE              /* disabled text color            */
6207 };
6208 GX_NUMERIC_PROMPT_PROPERTIES SECONDARY_text_screen_numeric_prompt_properties =
6209 {
6210     0,                                       /* string id                      */
6211     GX_FONT_ID_PROMPT,                       /* font id                        */
6212     GX_COLOR_ID_SECONDARY_BLUE,              /* normal text color              */
6213     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6214     GX_COLOR_ID_SECONDARY_BLUE,              /* disabled text color            */
6215     format_func,                             /* format function                */
6216     0                                        /* numeric prompt value           */
6217 };
6218 GX_NUMERIC_PIXELMAP_PROMPT_PROPERTIES SECONDARY_text_screen_numeric_pixelmap_prompt_properties =
6219 {
6220     0,                                       /* string id                      */
6221     GX_FONT_ID_PROMPT,                       /* font id                        */
6222     GX_COLOR_ID_TEXT,                        /* normal text color              */
6223     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6224     GX_COLOR_ID_TEXT,                        /* disabled text color            */
6225     GX_PIXELMAP_ID_SECONDARY_BUTTON_DISABLED, /* left pixelmap id              */
6226     0,                                       /* fill pixelmap id               */
6227     0,                                       /* right pixelmap id              */
6228     0,                                       /* selected left pixelmap id      */
6229     0,                                       /* selected fill pixelmap id      */
6230     0,                                       /* selected right pixelmap id     */
6231     numeric_pixelmap_format_func,            /* format function                */
6232     0                                        /* numeric prompt value           */
6233 };
6234 
6235 GX_CONST GX_STUDIO_WIDGET SECONDARY_text_screen_numeric_pixelmap_prompt_define =
6236 {
6237     "numeric_pixelmap_prompt",
6238     GX_TYPE_NUMERIC_PIXELMAP_PROMPT,         /* widget type                    */
6239     GX_ID_NONE,                              /* widget id                      */
6240     #if defined(GX_WIDGET_USER_DATA)
6241     0,                                       /* user data                      */
6242     #endif
6243     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6244     0,                                       /* status flags                   */
6245     sizeof(GX_NUMERIC_PIXELMAP_PROMPT),      /* control block size             */
6246     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6247     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6248     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
6249     gx_studio_numeric_pixelmap_prompt_create,     /* create function           */
6250     GX_NULL,                                 /* drawing function override      */
6251     GX_NULL,                                 /* event function override        */
6252     {403, 131, 540, 209},                    /* widget size                    */
6253     GX_NULL,                                 /* no next widget                 */
6254     GX_NULL,                                 /* no child widgets               */
6255     offsetof(SECONDARY_TEXT_SCREEN_CONTROL_BLOCK, SECONDARY_text_screen_numeric_pixelmap_prompt), /* control block */
6256     (void *) &SECONDARY_text_screen_numeric_pixelmap_prompt_properties /* extended properties */
6257 };
6258 
6259 GX_CONST GX_STUDIO_WIDGET SECONDARY_text_screen_numeric_prompt_define =
6260 {
6261     "numeric_prompt",
6262     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
6263     GX_ID_NONE,                              /* widget id                      */
6264     #if defined(GX_WIDGET_USER_DATA)
6265     0,                                       /* user data                      */
6266     #endif
6267     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_RIGHT,   /* style flags */
6268     0,                                       /* status flags                   */
6269     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
6270     GX_COLOR_ID_SECONDARY_ORANGE,            /* normal color id                */
6271     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6272     GX_COLOR_ID_SECONDARY_ORANGE,            /* disabled color id              */
6273     gx_studio_numeric_prompt_create,         /* create function                */
6274     GX_NULL,                                 /* drawing function override      */
6275     GX_NULL,                                 /* event function override        */
6276     {448, 32, 567, 55},                      /* widget size                    */
6277     &SECONDARY_text_screen_numeric_pixelmap_prompt_define, /* next widget definition */
6278     GX_NULL,                                 /* no child widgets               */
6279     offsetof(SECONDARY_TEXT_SCREEN_CONTROL_BLOCK, SECONDARY_text_screen_numeric_prompt), /* control block */
6280     (void *) &SECONDARY_text_screen_numeric_prompt_properties /* extended properties */
6281 };
6282 
6283 GX_CONST GX_STUDIO_WIDGET SECONDARY_text_screen_next_button_2_define =
6284 {
6285     "next_button_2",
6286     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
6287     IDB_NEXT,                                /* widget id                      */
6288     #if defined(GX_WIDGET_USER_DATA)
6289     0,                                       /* user data                      */
6290     #endif
6291     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
6292     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6293     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
6294     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* normal color id            */
6295     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_UPPER,     /* selected color id          */
6296     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* disabled color id          */
6297     gx_studio_text_button_create,            /* create function                */
6298     GX_NULL,                                 /* drawing function override      */
6299     GX_NULL,                                 /* event function override        */
6300     {496, 414, 575, 438},                    /* widget size                    */
6301     &SECONDARY_text_screen_numeric_prompt_define, /* next widget definition    */
6302     GX_NULL,                                 /* no child widgets               */
6303     offsetof(SECONDARY_TEXT_SCREEN_CONTROL_BLOCK, SECONDARY_text_screen_next_button_2), /* control block */
6304     (void *) &SECONDARY_text_screen_next_button_2_properties /* extended properties */
6305 };
6306 
6307 GX_CONST GX_STUDIO_WIDGET SECONDARY_text_screen_text_input_2_define =
6308 {
6309     "text_input_2",
6310     GX_TYPE_MULTI_LINE_TEXT_INPUT,           /* widget type                    */
6311     ID_ML_INPUT,                             /* widget id                      */
6312     #if defined(GX_WIDGET_USER_DATA)
6313     0,                                       /* user data                      */
6314     #endif
6315     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
6316     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6317     sizeof(GX_MULTI_LINE_TEXT_INPUT),        /* control block size             */
6318     GX_COLOR_ID_TEXT_INPUT_FILL,             /* normal color id                */
6319     GX_COLOR_ID_TEXT_INPUT_FILL,             /* selected color id              */
6320     GX_COLOR_ID_TEXT_INPUT_FILL,             /* disabled color id              */
6321     gx_studio_multi_line_text_input_create,     /* create function             */
6322     GX_NULL,                                 /* drawing function override      */
6323     GX_NULL,                                 /* event function override        */
6324     {321, 242, 572, 394},                    /* widget size                    */
6325     &SECONDARY_text_screen_next_button_2_define, /* next widget definition     */
6326     GX_NULL,                                 /* no child widgets               */
6327     offsetof(SECONDARY_TEXT_SCREEN_CONTROL_BLOCK, SECONDARY_text_screen_text_input_2), /* control block */
6328     (void *) &SECONDARY_text_screen_text_input_2_properties /* extended properties */
6329 };
6330 
6331 GX_CONST GX_STUDIO_WIDGET SECONDARY_text_screen_text_view_1_define =
6332 {
6333     "text_view_1",
6334     GX_TYPE_MULTI_LINE_TEXT_VIEW,            /* widget type                    */
6335     ID_ML_VIEW,                              /* widget id                      */
6336     #if defined(GX_WIDGET_USER_DATA)
6337     0,                                       /* user data                      */
6338     #endif
6339     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
6340     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6341     sizeof(GX_MULTI_LINE_TEXT_VIEW),         /* control block size             */
6342     GX_COLOR_ID_TEXT_INPUT_FILL,             /* normal color id                */
6343     GX_COLOR_ID_TEXT_INPUT_FILL,             /* selected color id              */
6344     GX_COLOR_ID_TEXT_INPUT_FILL,             /* disabled color id              */
6345     gx_studio_multi_line_text_view_create,     /* create function              */
6346     GX_NULL,                                 /* drawing function override      */
6347     GX_NULL,                                 /* event function override        */
6348     {56, 242, 306, 394},                     /* widget size                    */
6349     &SECONDARY_text_screen_text_input_2_define, /* next widget definition      */
6350     GX_NULL,                                 /* no child widgets               */
6351     offsetof(SECONDARY_TEXT_SCREEN_CONTROL_BLOCK, SECONDARY_text_screen_text_view_1), /* control block */
6352     (void *) &SECONDARY_text_screen_text_view_1_properties /* extended properties */
6353 };
6354 
6355 GX_CONST GX_STUDIO_WIDGET SECONDARY_text_screen_text_input_1_define =
6356 {
6357     "text_input_1",
6358     GX_TYPE_SINGLE_LINE_TEXT_INPUT,          /* widget type                    */
6359     ID_SL_INPUT,                             /* widget id                      */
6360     #if defined(GX_WIDGET_USER_DATA)
6361     0,                                       /* user data                      */
6362     #endif
6363     GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
6364     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6365     sizeof(GX_SINGLE_LINE_TEXT_INPUT),       /* control block size             */
6366     GX_COLOR_ID_TEXT_INPUT_FILL,             /* normal color id                */
6367     GX_COLOR_ID_TEXT_INPUT_FILL,             /* selected color id              */
6368     GX_COLOR_ID_TEXT_INPUT_FILL,             /* disabled color id              */
6369     gx_studio_text_input_create,             /* create function                */
6370     GX_NULL,                                 /* drawing function override      */
6371     GX_NULL,                                 /* event function override        */
6372     {56, 196, 363, 231},                     /* widget size                    */
6373     &SECONDARY_text_screen_text_view_1_define, /* next widget definition       */
6374     GX_NULL,                                 /* no child widgets               */
6375     offsetof(SECONDARY_TEXT_SCREEN_CONTROL_BLOCK, SECONDARY_text_screen_text_input_1), /* control block */
6376     (void *) &SECONDARY_text_screen_text_input_1_properties /* extended properties */
6377 };
6378 
6379 GX_CONST GX_STUDIO_WIDGET SECONDARY_text_screen_prompt_4_define =
6380 {
6381     "prompt_4",
6382     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
6383     ID_PROMPT_4,                             /* widget id                      */
6384     #if defined(GX_WIDGET_USER_DATA)
6385     0,                                       /* user data                      */
6386     #endif
6387     GX_STYLE_BORDER_NONE|GX_STYLE_TEXT_CENTER,   /* style flags                */
6388     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6389     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
6390     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6391     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6392     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
6393     gx_studio_pixelmap_prompt_create,        /* create function                */
6394     GX_NULL,                                 /* drawing function override      */
6395     GX_NULL,                                 /* event function override        */
6396     {56, 151, 363, 186},                     /* widget size                    */
6397     &SECONDARY_text_screen_text_input_1_define, /* next widget definition      */
6398     GX_NULL,                                 /* no child widgets               */
6399     offsetof(SECONDARY_TEXT_SCREEN_CONTROL_BLOCK, SECONDARY_text_screen_prompt_4), /* control block */
6400     (void *) &SECONDARY_text_screen_prompt_4_properties /* extended properties */
6401 };
6402 
6403 GX_CONST GX_STUDIO_WIDGET SECONDARY_text_screen_prompt_3_define =
6404 {
6405     "prompt_3",
6406     GX_TYPE_PROMPT,                          /* widget type                    */
6407     ID_PROMPT_3,                             /* widget id                      */
6408     #if defined(GX_WIDGET_USER_DATA)
6409     0,                                       /* user data                      */
6410     #endif
6411     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6412     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6413     sizeof(GX_PROMPT),                       /* control block size             */
6414     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6415     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6416     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
6417     gx_studio_prompt_create,                 /* create function                */
6418     GX_NULL,                                 /* drawing function override      */
6419     GX_NULL,                                 /* event function override        */
6420     {56, 64, 363, 88},                       /* widget size                    */
6421     &SECONDARY_text_screen_prompt_4_define,  /* next widget definition         */
6422     GX_NULL,                                 /* no child widgets               */
6423     offsetof(SECONDARY_TEXT_SCREEN_CONTROL_BLOCK, SECONDARY_text_screen_prompt_3), /* control block */
6424     (void *) &SECONDARY_text_screen_prompt_3_properties /* extended properties */
6425 };
6426 
6427 GX_CONST GX_STUDIO_WIDGET SECONDARY_text_screen_prompt_2_define =
6428 {
6429     "prompt_2",
6430     GX_TYPE_PROMPT,                          /* widget type                    */
6431     ID_PROMPT_2,                             /* widget id                      */
6432     #if defined(GX_WIDGET_USER_DATA)
6433     0,                                       /* user data                      */
6434     #endif
6435     GX_STYLE_BORDER_THICK|GX_STYLE_TEXT_CENTER,   /* style flags               */
6436     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6437     sizeof(GX_PROMPT),                       /* control block size             */
6438     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6439     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6440     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
6441     gx_studio_prompt_create,                 /* create function                */
6442     GX_NULL,                                 /* drawing function override      */
6443     GX_NULL,                                 /* event function override        */
6444     {56, 98, 363, 141},                      /* widget size                    */
6445     &SECONDARY_text_screen_prompt_3_define,  /* next widget definition         */
6446     GX_NULL,                                 /* no child widgets               */
6447     offsetof(SECONDARY_TEXT_SCREEN_CONTROL_BLOCK, SECONDARY_text_screen_prompt_2), /* control block */
6448     (void *) &SECONDARY_text_screen_prompt_2_properties /* extended properties */
6449 };
6450 
6451 GX_CONST GX_STUDIO_WIDGET SECONDARY_text_screen_prompt_1_define =
6452 {
6453     "prompt_1",
6454     GX_TYPE_PROMPT,                          /* widget type                    */
6455     ID_PROMPT_1,                             /* widget id                      */
6456     #if defined(GX_WIDGET_USER_DATA)
6457     0,                                       /* user data                      */
6458     #endif
6459     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6460     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6461     sizeof(GX_PROMPT),                       /* control block size             */
6462     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6463     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6464     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
6465     gx_studio_prompt_create,                 /* create function                */
6466     GX_NULL,                                 /* drawing function override      */
6467     GX_NULL,                                 /* event function override        */
6468     {56, 31, 363, 54},                       /* widget size                    */
6469     &SECONDARY_text_screen_prompt_2_define,  /* next widget definition         */
6470     GX_NULL,                                 /* no child widgets               */
6471     offsetof(SECONDARY_TEXT_SCREEN_CONTROL_BLOCK, SECONDARY_text_screen_prompt_1), /* control block */
6472     (void *) &SECONDARY_text_screen_prompt_1_properties /* extended properties */
6473 };
6474 
6475 GX_STUDIO_ACTION SECONDARY_text_screen__idb_next_gx_event_clicked_actions[2] = {
6476     {GX_ACTION_TYPE_TOGGLE, 0, &SECONDARY_root_window, &SECONDARY_sprite_screen, GX_NULL},
6477     {0, 0, GX_NULL, GX_NULL, GX_NULL}
6478 };
6479 
6480 static GX_STUDIO_EVENT_ENTRY gx_studio_SECONDARY_text_screen_event_table[] = {
6481     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, SECONDARY_text_screen__idb_next_gx_event_clicked_actions},
6482     {0, 0, GX_NULL}
6483 };
6484 
6485 GX_STUDIO_EVENT_PROCESS SECONDARY_text_screen_event_chain = {gx_studio_SECONDARY_text_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_SECONDARY_text_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)6486 static UINT gx_studio_SECONDARY_text_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
6487 {
6488     return (gx_studio_auto_event_handler(target, event_ptr, &SECONDARY_text_screen_event_chain));
6489 }
6490 
6491 
6492 GX_CONST GX_STUDIO_WIDGET SECONDARY_text_screen_define =
6493 {
6494     "SECONDARY_text_screen",
6495     GX_TYPE_WINDOW,                          /* widget type                    */
6496     ID_TEXT_SCREEN,                          /* widget id                      */
6497     #if defined(GX_WIDGET_USER_DATA)
6498     0,                                       /* user data                      */
6499     #endif
6500     GX_STYLE_BORDER_THIN,                    /* style flags                    */
6501     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6502     sizeof(SECONDARY_TEXT_SCREEN_CONTROL_BLOCK), /* control block size         */
6503     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
6504     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
6505     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
6506     gx_studio_window_create,                 /* create function                */
6507     GX_NULL,                                 /* drawing function override      */
6508     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_SECONDARY_text_screen_event_process, /* event function override */
6509     {39, 25, 582, 443},                      /* widget size                    */
6510     GX_NULL,                                 /* next widget                    */
6511     &SECONDARY_text_screen_prompt_1_define,  /* child widget                   */
6512     0,                                       /* control block                  */
6513     (void *) &SECONDARY_text_screen_properties /* extended properties          */
6514 };
6515 GX_WINDOW_PROPERTIES SECONDARY_window_screen_properties =
6516 {
6517     0                                        /* wallpaper pixelmap id          */
6518 };
6519 GX_WINDOW_PROPERTIES SECONDARY_window_screen_window_5_properties =
6520 {
6521     0                                        /* wallpaper pixelmap id          */
6522 };
6523 GX_WINDOW_PROPERTIES SECONDARY_window_screen_window_6_properties =
6524 {
6525     0                                        /* wallpaper pixelmap id          */
6526 };
6527 GX_WINDOW_PROPERTIES SECONDARY_window_screen_window_8_properties =
6528 {
6529     0                                        /* wallpaper pixelmap id          */
6530 };
6531 GX_WINDOW_PROPERTIES SECONDARY_window_screen_scroll_frame_1_properties =
6532 {
6533     0                                        /* wallpaper pixelmap id          */
6534 };
6535 GX_WINDOW_PROPERTIES SECONDARY_window_screen_window_4_properties =
6536 {
6537     GX_PIXELMAP_ID_SECONDARY_FISH            /* wallpaper pixelmap id          */
6538 };
6539 GX_SCROLLBAR_APPEARANCE  SECONDARY_window_screen_hscroll_1_properties =
6540 {
6541     20,                                      /* scroll width                   */
6542     10,                                      /* thumb width                    */
6543     2,                                       /* thumb travel min               */
6544     2,                                       /* thumb travel max               */
6545     4,                                       /* thumb border style             */
6546     GX_PIXELMAP_ID_SECONDARY_I_ORANGEFILL_MIDDLE_HORIZONTAL, /* scroll fill pixelmap */
6547     0,                                       /* scroll thumb pixelmap          */
6548     0,                                       /* scroll up pixelmap             */
6549     0,                                       /* scroll down pixelmap           */
6550     GX_COLOR_ID_SCROLL_BUTTON,               /* scroll thumb color             */
6551     GX_COLOR_ID_SCROLL_BUTTON,               /* scroll thumb border color      */
6552     GX_COLOR_ID_BTN_UPPER,                   /* scroll button color            */
6553 };
6554 GX_SCROLLBAR_APPEARANCE  SECONDARY_window_screen_vertical_scroll_1_properties =
6555 {
6556     20,                                      /* scroll width                   */
6557     12,                                      /* thumb width                    */
6558     20,                                      /* thumb travel min               */
6559     20,                                      /* thumb travel max               */
6560     4,                                       /* thumb border style             */
6561     0,                                       /* scroll fill pixelmap           */
6562     0,                                       /* scroll thumb pixelmap          */
6563     0,                                       /* scroll up pixelmap             */
6564     0,                                       /* scroll down pixelmap           */
6565     GX_COLOR_ID_SCROLL_BUTTON,               /* scroll thumb color             */
6566     GX_COLOR_ID_SCROLL_BUTTON,               /* scroll thumb border color      */
6567     GX_COLOR_ID_SECONDARY_ORANGE,            /* scroll button color            */
6568 };
6569 GX_VERTICAL_LIST_PROPERTIES SECONDARY_window_screen_vertical_list_properties =
6570 {
6571     0,                                       /* wallpaper id                   */
6572     GX_NULL,                                 /* callback function              */
6573     4                                        /* total rows                     */
6574 };
6575 GX_TEXT_BUTTON_PROPERTIES SECONDARY_window_screen_button_1_properties =
6576 {
6577     GX_STRING_ID_SECONDARY_STRING_19,        /* string id                      */
6578     GX_FONT_ID_BUTTON,                       /* font id                        */
6579     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
6580     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
6581     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
6582 };
6583 GX_TEXT_BUTTON_PROPERTIES SECONDARY_window_screen_button_2_properties =
6584 {
6585     GX_STRING_ID_SECONDARY_STRING_20,        /* string id                      */
6586     GX_FONT_ID_BUTTON,                       /* font id                        */
6587     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
6588     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
6589     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
6590 };
6591 GX_TEXT_BUTTON_PROPERTIES SECONDARY_window_screen_button_3_properties =
6592 {
6593     GX_STRING_ID_SECONDARY_STRING_21,        /* string id                      */
6594     GX_FONT_ID_BUTTON,                       /* font id                        */
6595     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
6596     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
6597     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
6598 };
6599 GX_TEXT_BUTTON_PROPERTIES SECONDARY_window_screen_button_4_properties =
6600 {
6601     GX_STRING_ID_SECONDARY_STRING_22,        /* string id                      */
6602     GX_FONT_ID_BUTTON,                       /* font id                        */
6603     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
6604     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
6605     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
6606 };
6607 GX_PROMPT_PROPERTIES SECONDARY_window_screen_nested_label_1_properties =
6608 {
6609     GX_STRING_ID_SECONDARY_STRING_16,        /* string id                      */
6610     GX_FONT_ID_PROMPT,                       /* font id                        */
6611     GX_COLOR_ID_TEXT,                        /* normal text color              */
6612     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6613     GX_COLOR_ID_TEXT                         /* disabled text color            */
6614 };
6615 GX_PROMPT_PROPERTIES SECONDARY_window_screen_frame_label_1_properties =
6616 {
6617     GX_STRING_ID_SECONDARY_STRING_17,        /* string id                      */
6618     GX_FONT_ID_PROMPT,                       /* font id                        */
6619     GX_COLOR_ID_TEXT,                        /* normal text color              */
6620     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6621     GX_COLOR_ID_TEXT                         /* disabled text color            */
6622 };
6623 GX_PROMPT_PROPERTIES SECONDARY_window_screen_vlist_label_1_properties =
6624 {
6625     GX_STRING_ID_SECONDARY_STRING_18,        /* string id                      */
6626     GX_FONT_ID_PROMPT,                       /* font id                        */
6627     GX_COLOR_ID_TEXT,                        /* normal text color              */
6628     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6629     GX_COLOR_ID_TEXT                         /* disabled text color            */
6630 };
6631 GX_HORIZONTAL_LIST_PROPERTIES SECONDARY_window_screen_horizontal_list_1_properties =
6632 {
6633     0,                                       /* wallpaper id                   */
6634     GX_NULL,                                 /* callback function              */
6635     5                                        /* total columns                  */
6636 };
6637 GX_ICON_BUTTON_PROPERTIES SECONDARY_window_screen_icon_button_1_properties =
6638 {
6639     GX_PIXELMAP_ID_SECONDARY_I_HISTORY_LG    /* pixelmap id                    */
6640 };
6641 GX_ICON_BUTTON_PROPERTIES SECONDARY_window_screen_icon_button_2_properties =
6642 {
6643     GX_PIXELMAP_ID_SECONDARY_I_MEDICATIONSGREEN_LG  /* pixelmap id             */
6644 };
6645 GX_ICON_BUTTON_PROPERTIES SECONDARY_window_screen_icon_button_3_properties =
6646 {
6647     GX_PIXELMAP_ID_SECONDARY_I_PATIENTLIST_LG  /* pixelmap id                  */
6648 };
6649 GX_ICON_BUTTON_PROPERTIES SECONDARY_window_screen_icon_button_4_properties =
6650 {
6651     GX_PIXELMAP_ID_SECONDARY_I_MEDICATIONSRED_LG  /* pixelmap id               */
6652 };
6653 GX_ICON_BUTTON_PROPERTIES SECONDARY_window_screen_icon_button_5_properties =
6654 {
6655     GX_PIXELMAP_ID_SECONDARY_BLACK_PAUSE     /* pixelmap id                    */
6656 };
6657 GX_PROMPT_PROPERTIES SECONDARY_window_screen_hlist_label_1_properties =
6658 {
6659     GX_STRING_ID_SECONDARY_STRING_23,        /* string id                      */
6660     GX_FONT_ID_PROMPT,                       /* font id                        */
6661     GX_COLOR_ID_TEXT,                        /* normal text color              */
6662     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6663     GX_COLOR_ID_TEXT                         /* disabled text color            */
6664 };
6665 GX_TEXT_BUTTON_PROPERTIES SECONDARY_window_screen_next_button_1_properties =
6666 {
6667     GX_STRING_ID_SECONDARY_STRING_36,        /* string id                      */
6668     GX_FONT_ID_BUTTON,                       /* font id                        */
6669     GX_COLOR_ID_SECONDARY_WHITE,             /* normal text color              */
6670     GX_COLOR_ID_SECONDARY_WHITE,             /* selected text color            */
6671     GX_COLOR_ID_SECONDARY_WHITE              /* disabled text color            */
6672 };
6673 GX_DROP_LIST_PROPERTIES SECONDARY_window_screen_drop_list_properties =
6674 {
6675     GX_PIXELMAP_ID_SECONDARY_TOP_BAR_BACKGROUND, /* widget pixelmap id         */
6676     GX_PIXELMAP_ID_SECONDARY_DROP_LIST_BG,   /* popup list wallpaper pixelmap id */
6677     drop_list_row_create,                    /* callback function              */
6678     100,                                     /* total rows                     */
6679     100                                      /* open height                    */
6680 };
6681 GX_PIXELMAP_BUTTON_PROPERTIES SECONDARY_window_screen_pixelmap_button_properties =
6682 {
6683     GX_PIXELMAP_ID_SECONDARY_DROP_LIST_BUTTON, /* normal pixelmap id           */
6684     0,                                       /* selected pixelmap id           */
6685     0                                        /* disabled pixelmap id           */
6686 };
6687 GX_PROMPT_PROPERTIES SECONDARY_window_screen_hlist_label_properties =
6688 {
6689     GX_STRING_ID_SECONDARY_STRING_37,        /* string id                      */
6690     GX_FONT_ID_PROMPT,                       /* font id                        */
6691     GX_COLOR_ID_TEXT,                        /* normal text color              */
6692     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6693     GX_COLOR_ID_TEXT                         /* disabled text color            */
6694 };
6695 GX_LINE_CHART_INFO SECONDARY_window_screen_line_chart_properties =
6696 {
6697     0,                                       /* min data value                 */
6698     100,                                     /* max data value                 */
6699     GX_NULL,                                 /* data pointer                   */
6700     0,                                       /* left margin                    */
6701     0,                                       /* top margin                     */
6702     0,                                       /* right margin                   */
6703     0,                                       /* bottom margin                  */
6704     100,                                     /* max data items                 */
6705     0,                                       /* active data items              */
6706     3,                                       /* axis line width                */
6707     2,                                       /* data line width                */
6708     GX_COLOR_ID_DEFAULT_BORDER,              /* axis line color                */
6709     GX_COLOR_ID_SHINE                        /* data line color                */
6710 };
6711 
6712 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_window_8_define =
6713 {
6714     "window_8",
6715     GX_TYPE_WINDOW,                          /* widget type                    */
6716     GX_ID_NONE,                              /* widget id                      */
6717     #if defined(GX_WIDGET_USER_DATA)
6718     0,                                       /* user data                      */
6719     #endif
6720     GX_STYLE_BORDER_THIN,                    /* style flags                    */
6721     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6722     sizeof(GX_WINDOW),                       /* control block size             */
6723     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
6724     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
6725     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
6726     gx_studio_window_create,                 /* create function                */
6727     GX_NULL,                                 /* drawing function override      */
6728     GX_NULL,                                 /* event function override        */
6729     {211, 88, 304, 160},                     /* widget size                    */
6730     GX_NULL,                                 /* no next widget                 */
6731     GX_NULL,                                 /* no child widgets               */
6732     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_window_8), /* control block */
6733     (void *) &SECONDARY_window_screen_window_8_properties /* extended properties */
6734 };
6735 
6736 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_window_6_define =
6737 {
6738     "window_6",
6739     GX_TYPE_WINDOW,                          /* widget type                    */
6740     GX_ID_NONE,                              /* widget id                      */
6741     #if defined(GX_WIDGET_USER_DATA)
6742     0,                                       /* user data                      */
6743     #endif
6744     GX_STYLE_BORDER_THIN,                    /* style flags                    */
6745     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6746     sizeof(GX_WINDOW),                       /* control block size             */
6747     GX_COLOR_ID_SECONDARY_BLACK,             /* normal color id                */
6748     GX_COLOR_ID_SECONDARY_BLACK,             /* selected color id              */
6749     GX_COLOR_ID_SECONDARY_BLACK,             /* disabled color id              */
6750     gx_studio_window_create,                 /* create function                */
6751     GX_NULL,                                 /* drawing function override      */
6752     GX_NULL,                                 /* event function override        */
6753     {73, 56, 319, 170},                      /* widget size                    */
6754     GX_NULL,                                 /* no next widget                 */
6755     &SECONDARY_window_screen_window_8_define, /* child widget definition       */
6756     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_window_6), /* control block */
6757     (void *) &SECONDARY_window_screen_window_6_properties /* extended properties */
6758 };
6759 
6760 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_vertical_scroll_1_define =
6761 {
6762     "vertical_scroll_1",
6763     GX_TYPE_VERTICAL_SCROLL,                 /* widget type                    */
6764     ID_VERTICAL_SCROLLBAR,                   /* widget id                      */
6765     #if defined(GX_WIDGET_USER_DATA)
6766     0,                                       /* user data                      */
6767     #endif
6768     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_SCROLLBAR_RELATIVE_THUMB|GX_SCROLLBAR_END_BUTTONS|GX_SCROLLBAR_VERTICAL,   /* style flags */
6769     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6770     sizeof(GX_SCROLLBAR),                    /* control block size             */
6771     GX_COLOR_ID_SCROLL_FILL,                 /* normal color id                */
6772     GX_COLOR_ID_SCROLL_FILL,                 /* selected color id              */
6773     GX_COLOR_ID_SCROLL_FILL,                 /* disabled color id              */
6774     gx_studio_vertical_scrollbar_create,     /* create function                */
6775     GX_NULL,                                 /* drawing function override      */
6776     GX_NULL,                                 /* event function override        */
6777     {542, 46, 561, 159},                     /* widget size                    */
6778     GX_NULL,                                 /* no next widget                 */
6779     GX_NULL,                                 /* no child widgets               */
6780     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_vertical_scroll_1), /* control block */
6781     (void *) &SECONDARY_window_screen_vertical_scroll_1_properties /* extended properties */
6782 };
6783 
6784 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_hscroll_1_define =
6785 {
6786     "hscroll_1",
6787     GX_TYPE_HORIZONTAL_SCROLL,               /* widget type                    */
6788     ID_HORIZONTAL_SCROLLBAR,                 /* widget id                      */
6789     #if defined(GX_WIDGET_USER_DATA)
6790     0,                                       /* user data                      */
6791     #endif
6792     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TILE_BACKGROUND|GX_SCROLLBAR_RELATIVE_THUMB|GX_SCROLLBAR_HORIZONTAL,   /* style flags */
6793     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6794     sizeof(GX_SCROLLBAR),                    /* control block size             */
6795     GX_COLOR_ID_SECONDARY_ORANGE,            /* normal color id                */
6796     GX_COLOR_ID_SCROLL_FILL,                 /* selected color id              */
6797     GX_COLOR_ID_SECONDARY_ORANGE,            /* disabled color id              */
6798     gx_studio_horizontal_scrollbar_create,     /* create function              */
6799     GX_NULL,                                 /* drawing function override      */
6800     GX_NULL,                                 /* event function override        */
6801     {352, 160, 541, 179},                    /* widget size                    */
6802     &SECONDARY_window_screen_vertical_scroll_1_define, /* next widget definition */
6803     GX_NULL,                                 /* no child widgets               */
6804     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_hscroll_1), /* control block */
6805     (void *) &SECONDARY_window_screen_hscroll_1_properties /* extended properties */
6806 };
6807 
6808 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_window_4_define =
6809 {
6810     "window_4",
6811     GX_TYPE_WINDOW,                          /* widget type                    */
6812     GX_ID_NONE,                              /* widget id                      */
6813     #if defined(GX_WIDGET_USER_DATA)
6814     0,                                       /* user data                      */
6815     #endif
6816     GX_STYLE_BORDER_THIN,                    /* style flags                    */
6817     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6818     sizeof(GX_WINDOW),                       /* control block size             */
6819     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
6820     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
6821     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
6822     gx_studio_window_create,                 /* create function                */
6823     GX_NULL,                                 /* drawing function override      */
6824     GX_NULL,                                 /* event function override        */
6825     {351, 45, 750, 444},                     /* widget size                    */
6826     &SECONDARY_window_screen_hscroll_1_define, /* next widget definition       */
6827     GX_NULL,                                 /* no child widgets               */
6828     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_window_4), /* control block */
6829     (void *) &SECONDARY_window_screen_window_4_properties /* extended properties */
6830 };
6831 
6832 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_button_4_define =
6833 {
6834     "button_4",
6835     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
6836     GX_ID_NONE,                              /* widget id                      */
6837     #if defined(GX_WIDGET_USER_DATA)
6838     0,                                       /* user data                      */
6839     #endif
6840     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
6841     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6842     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
6843     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6844     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6845     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
6846     gx_studio_text_button_create,            /* create function                */
6847     GX_NULL,                                 /* drawing function override      */
6848     GX_NULL,                                 /* event function override        */
6849     {59, 324, 156, 358},                     /* widget size                    */
6850     GX_NULL,                                 /* no next widget                 */
6851     GX_NULL,                                 /* no child widgets               */
6852     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_button_4), /* control block */
6853     (void *) &SECONDARY_window_screen_button_4_properties /* extended properties */
6854 };
6855 
6856 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_button_3_define =
6857 {
6858     "button_3",
6859     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
6860     GX_ID_NONE,                              /* widget id                      */
6861     #if defined(GX_WIDGET_USER_DATA)
6862     0,                                       /* user data                      */
6863     #endif
6864     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
6865     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6866     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
6867     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6868     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6869     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
6870     gx_studio_text_button_create,            /* create function                */
6871     GX_NULL,                                 /* drawing function override      */
6872     GX_NULL,                                 /* event function override        */
6873     {59, 289, 156, 323},                     /* widget size                    */
6874     &SECONDARY_window_screen_button_4_define, /* next widget definition        */
6875     GX_NULL,                                 /* no child widgets               */
6876     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_button_3), /* control block */
6877     (void *) &SECONDARY_window_screen_button_3_properties /* extended properties */
6878 };
6879 
6880 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_button_2_define =
6881 {
6882     "button_2",
6883     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
6884     GX_ID_NONE,                              /* widget id                      */
6885     #if defined(GX_WIDGET_USER_DATA)
6886     0,                                       /* user data                      */
6887     #endif
6888     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
6889     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6890     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
6891     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6892     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6893     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
6894     gx_studio_text_button_create,            /* create function                */
6895     GX_NULL,                                 /* drawing function override      */
6896     GX_NULL,                                 /* event function override        */
6897     {59, 254, 156, 288},                     /* widget size                    */
6898     &SECONDARY_window_screen_button_3_define, /* next widget definition        */
6899     GX_NULL,                                 /* no child widgets               */
6900     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_button_2), /* control block */
6901     (void *) &SECONDARY_window_screen_button_2_properties /* extended properties */
6902 };
6903 
6904 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_button_1_define =
6905 {
6906     "button_1",
6907     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
6908     GX_ID_NONE,                              /* widget id                      */
6909     #if defined(GX_WIDGET_USER_DATA)
6910     0,                                       /* user data                      */
6911     #endif
6912     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
6913     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6914     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
6915     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6916     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6917     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
6918     gx_studio_text_button_create,            /* create function                */
6919     GX_NULL,                                 /* drawing function override      */
6920     GX_NULL,                                 /* event function override        */
6921     {59, 219, 156, 253},                     /* widget size                    */
6922     &SECONDARY_window_screen_button_2_define, /* next widget definition        */
6923     GX_NULL,                                 /* no child widgets               */
6924     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_button_1), /* control block */
6925     (void *) &SECONDARY_window_screen_button_1_properties /* extended properties */
6926 };
6927 
6928 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_icon_button_5_define =
6929 {
6930     "icon_button_5",
6931     GX_TYPE_ICON_BUTTON,                     /* widget type                    */
6932     GX_ID_NONE,                              /* widget id                      */
6933     #if defined(GX_WIDGET_USER_DATA)
6934     0,                                       /* user data                      */
6935     #endif
6936     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
6937     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6938     sizeof(GX_ICON_BUTTON),                  /* control block size             */
6939     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6940     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6941     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
6942     gx_studio_icon_button_create,            /* create function                */
6943     GX_NULL,                                 /* drawing function override      */
6944     GX_NULL,                                 /* event function override        */
6945     {385, 218, 435, 279},                    /* widget size                    */
6946     GX_NULL,                                 /* no next widget                 */
6947     GX_NULL,                                 /* no child widgets               */
6948     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_icon_button_5), /* control block */
6949     (void *) &SECONDARY_window_screen_icon_button_5_properties /* extended properties */
6950 };
6951 
6952 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_icon_button_4_define =
6953 {
6954     "icon_button_4",
6955     GX_TYPE_ICON_BUTTON,                     /* widget type                    */
6956     GX_ID_NONE,                              /* widget id                      */
6957     #if defined(GX_WIDGET_USER_DATA)
6958     0,                                       /* user data                      */
6959     #endif
6960     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
6961     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6962     sizeof(GX_ICON_BUTTON),                  /* control block size             */
6963     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6964     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6965     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
6966     gx_studio_icon_button_create,            /* create function                */
6967     GX_NULL,                                 /* drawing function override      */
6968     GX_NULL,                                 /* event function override        */
6969     {334, 218, 384, 279},                    /* widget size                    */
6970     &SECONDARY_window_screen_icon_button_5_define, /* next widget definition   */
6971     GX_NULL,                                 /* no child widgets               */
6972     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_icon_button_4), /* control block */
6973     (void *) &SECONDARY_window_screen_icon_button_4_properties /* extended properties */
6974 };
6975 
6976 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_icon_button_3_define =
6977 {
6978     "icon_button_3",
6979     GX_TYPE_ICON_BUTTON,                     /* widget type                    */
6980     GX_ID_NONE,                              /* widget id                      */
6981     #if defined(GX_WIDGET_USER_DATA)
6982     0,                                       /* user data                      */
6983     #endif
6984     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
6985     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6986     sizeof(GX_ICON_BUTTON),                  /* control block size             */
6987     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6988     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6989     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
6990     gx_studio_icon_button_create,            /* create function                */
6991     GX_NULL,                                 /* drawing function override      */
6992     GX_NULL,                                 /* event function override        */
6993     {283, 218, 333, 279},                    /* widget size                    */
6994     &SECONDARY_window_screen_icon_button_4_define, /* next widget definition   */
6995     GX_NULL,                                 /* no child widgets               */
6996     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_icon_button_3), /* control block */
6997     (void *) &SECONDARY_window_screen_icon_button_3_properties /* extended properties */
6998 };
6999 
7000 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_icon_button_2_define =
7001 {
7002     "icon_button_2",
7003     GX_TYPE_ICON_BUTTON,                     /* widget type                    */
7004     GX_ID_NONE,                              /* widget id                      */
7005     #if defined(GX_WIDGET_USER_DATA)
7006     0,                                       /* user data                      */
7007     #endif
7008     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
7009     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7010     sizeof(GX_ICON_BUTTON),                  /* control block size             */
7011     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
7012     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
7013     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
7014     gx_studio_icon_button_create,            /* create function                */
7015     GX_NULL,                                 /* drawing function override      */
7016     GX_NULL,                                 /* event function override        */
7017     {232, 218, 282, 279},                    /* widget size                    */
7018     &SECONDARY_window_screen_icon_button_3_define, /* next widget definition   */
7019     GX_NULL,                                 /* no child widgets               */
7020     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_icon_button_2), /* control block */
7021     (void *) &SECONDARY_window_screen_icon_button_2_properties /* extended properties */
7022 };
7023 
7024 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_icon_button_1_define =
7025 {
7026     "icon_button_1",
7027     GX_TYPE_ICON_BUTTON,                     /* widget type                    */
7028     GX_ID_NONE,                              /* widget id                      */
7029     #if defined(GX_WIDGET_USER_DATA)
7030     0,                                       /* user data                      */
7031     #endif
7032     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
7033     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7034     sizeof(GX_ICON_BUTTON),                  /* control block size             */
7035     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
7036     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
7037     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
7038     gx_studio_icon_button_create,            /* create function                */
7039     GX_NULL,                                 /* drawing function override      */
7040     GX_NULL,                                 /* event function override        */
7041     {181, 218, 231, 279},                    /* widget size                    */
7042     &SECONDARY_window_screen_icon_button_2_define, /* next widget definition   */
7043     GX_NULL,                                 /* no child widgets               */
7044     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_icon_button_1), /* control block */
7045     (void *) &SECONDARY_window_screen_icon_button_1_properties /* extended properties */
7046 };
7047 
7048 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_pixelmap_button_define =
7049 {
7050     "pixelmap_button",
7051     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
7052     ID_DROP_LIST_BUTTON,                     /* widget id                      */
7053     #if defined(GX_WIDGET_USER_DATA)
7054     0,                                       /* user data                      */
7055     #endif
7056     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
7057     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7058     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
7059     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
7060     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
7061     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
7062     gx_studio_pixelmap_button_create,        /* create function                */
7063     GX_NULL,                                 /* drawing function override      */
7064     GX_NULL,                                 /* event function override        */
7065     {393, 319, 434, 360},                    /* widget size                    */
7066     GX_NULL,                                 /* no next widget                 */
7067     GX_NULL,                                 /* no child widgets               */
7068     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_pixelmap_button), /* control block */
7069     (void *) &SECONDARY_window_screen_pixelmap_button_properties /* extended properties */
7070 };
7071 
7072 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_line_chart_define =
7073 {
7074     "line_chart",
7075     GX_TYPE_LINE_CHART,                      /* widget type                    */
7076     GX_ID_NONE,                              /* widget id                      */
7077     #if defined(GX_WIDGET_USER_DATA)
7078     0,                                       /* user data                      */
7079     #endif
7080     GX_STYLE_BORDER_NONE,                    /* style flags                    */
7081     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7082     sizeof(GX_LINE_CHART),                   /* control block size             */
7083     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
7084     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
7085     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
7086     gx_studio_line_chart_create,             /* create function                */
7087     GX_NULL,                                 /* drawing function override      */
7088     GX_NULL,                                 /* event function override        */
7089     {53, 387, 144, 445},                     /* widget size                    */
7090     GX_NULL,                                 /* no next widget                 */
7091     GX_NULL,                                 /* no child widgets               */
7092     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_line_chart), /* control block */
7093     (void *) &SECONDARY_window_screen_line_chart_properties /* extended properties */
7094 };
7095 
7096 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_hlist_label_define =
7097 {
7098     "hlist_label",
7099     GX_TYPE_PROMPT,                          /* widget type                    */
7100     GX_ID_NONE,                              /* widget id                      */
7101     #if defined(GX_WIDGET_USER_DATA)
7102     0,                                       /* user data                      */
7103     #endif
7104     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7105     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7106     sizeof(GX_PROMPT),                       /* control block size             */
7107     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7108     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7109     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
7110     gx_studio_prompt_create,                 /* create function                */
7111     GX_NULL,                                 /* drawing function override      */
7112     GX_NULL,                                 /* event function override        */
7113     {253, 296, 341, 319},                    /* widget size                    */
7114     &SECONDARY_window_screen_line_chart_define, /* next widget definition      */
7115     GX_NULL,                                 /* no child widgets               */
7116     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_hlist_label), /* control block */
7117     (void *) &SECONDARY_window_screen_hlist_label_properties /* extended properties */
7118 };
7119 
7120 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_drop_list_define =
7121 {
7122     "drop_list",
7123     GX_TYPE_DROP_LIST,                       /* widget type                    */
7124     ID_DROP_LIST,                            /* widget id                      */
7125     #if defined(GX_WIDGET_USER_DATA)
7126     0,                                       /* user data                      */
7127     #endif
7128     GX_STYLE_BORDER_THIN|GX_STYLE_TRANSPARENT|GX_STYLE_TILE_BACKGROUND,   /* style flags */
7129     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7130     sizeof(GX_DROP_LIST),                    /* control block size             */
7131     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7132     GX_COLOR_ID_WIDGET_FILL,                 /* selected color id              */
7133     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
7134     gx_studio_drop_list_create,              /* create function                */
7135     GX_NULL,                                 /* drawing function override      */
7136     GX_NULL,                                 /* event function override        */
7137     {183, 319, 430, 356},                    /* widget size                    */
7138     &SECONDARY_window_screen_hlist_label_define, /* next widget definition     */
7139     &SECONDARY_window_screen_pixelmap_button_define, /* child widget definition */
7140     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_drop_list), /* control block */
7141     (void *) &SECONDARY_window_screen_drop_list_properties /* extended properties */
7142 };
7143 
7144 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_next_button_1_define =
7145 {
7146     "next_button_1",
7147     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
7148     IDB_NEXT,                                /* widget id                      */
7149     #if defined(GX_WIDGET_USER_DATA)
7150     0,                                       /* user data                      */
7151     #endif
7152     GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
7153     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7154     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
7155     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* normal color id            */
7156     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_UPPER,     /* selected color id          */
7157     GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER,     /* disabled color id          */
7158     gx_studio_text_button_create,            /* create function                */
7159     GX_NULL,                                 /* drawing function override      */
7160     GX_NULL,                                 /* event function override        */
7161     {491, 432, 570, 456},                    /* widget size                    */
7162     &SECONDARY_window_screen_drop_list_define, /* next widget definition       */
7163     GX_NULL,                                 /* no child widgets               */
7164     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_next_button_1), /* control block */
7165     (void *) &SECONDARY_window_screen_next_button_1_properties /* extended properties */
7166 };
7167 
7168 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_hlist_label_1_define =
7169 {
7170     "hlist_label_1",
7171     GX_TYPE_PROMPT,                          /* widget type                    */
7172     GX_ID_NONE,                              /* widget id                      */
7173     #if defined(GX_WIDGET_USER_DATA)
7174     0,                                       /* user data                      */
7175     #endif
7176     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7177     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7178     sizeof(GX_PROMPT),                       /* control block size             */
7179     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7180     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7181     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
7182     gx_studio_prompt_create,                 /* create function                */
7183     GX_NULL,                                 /* drawing function override      */
7184     GX_NULL,                                 /* event function override        */
7185     {242, 191, 373, 214},                    /* widget size                    */
7186     &SECONDARY_window_screen_next_button_1_define, /* next widget definition   */
7187     GX_NULL,                                 /* no child widgets               */
7188     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_hlist_label_1), /* control block */
7189     (void *) &SECONDARY_window_screen_hlist_label_1_properties /* extended properties */
7190 };
7191 
7192 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_horizontal_list_1_define =
7193 {
7194     "horizontal_list_1",
7195     GX_TYPE_HORIZONTAL_LIST,                 /* widget type                    */
7196     GX_ID_NONE,                              /* widget id                      */
7197     #if defined(GX_WIDGET_USER_DATA)
7198     0,                                       /* user data                      */
7199     #endif
7200     GX_STYLE_BORDER_THIN,                    /* style flags                    */
7201     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7202     sizeof(GX_HORIZONTAL_LIST),              /* control block size             */
7203     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
7204     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
7205     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
7206     gx_studio_horizontal_list_create,        /* create function                */
7207     GX_NULL,                                 /* drawing function override      */
7208     GX_NULL,                                 /* event function override        */
7209     {180, 217, 437, 280},                    /* widget size                    */
7210     &SECONDARY_window_screen_hlist_label_1_define, /* next widget definition   */
7211     &SECONDARY_window_screen_icon_button_1_define, /* child widget definition  */
7212     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_horizontal_list_1), /* control block */
7213     (void *) &SECONDARY_window_screen_horizontal_list_1_properties /* extended properties */
7214 };
7215 
7216 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_vlist_label_1_define =
7217 {
7218     "vlist_label_1",
7219     GX_TYPE_PROMPT,                          /* widget type                    */
7220     GX_ID_NONE,                              /* widget id                      */
7221     #if defined(GX_WIDGET_USER_DATA)
7222     0,                                       /* user data                      */
7223     #endif
7224     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7225     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7226     sizeof(GX_PROMPT),                       /* control block size             */
7227     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7228     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7229     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
7230     gx_studio_prompt_create,                 /* create function                */
7231     GX_NULL,                                 /* drawing function override      */
7232     GX_NULL,                                 /* event function override        */
7233     {45, 191, 176, 214},                     /* widget size                    */
7234     &SECONDARY_window_screen_horizontal_list_1_define, /* next widget definition */
7235     GX_NULL,                                 /* no child widgets               */
7236     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_vlist_label_1), /* control block */
7237     (void *) &SECONDARY_window_screen_vlist_label_1_properties /* extended properties */
7238 };
7239 
7240 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_frame_label_1_define =
7241 {
7242     "frame_label_1",
7243     GX_TYPE_PROMPT,                          /* widget type                    */
7244     GX_ID_NONE,                              /* widget id                      */
7245     #if defined(GX_WIDGET_USER_DATA)
7246     0,                                       /* user data                      */
7247     #endif
7248     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7249     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7250     sizeof(GX_PROMPT),                       /* control block size             */
7251     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7252     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7253     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
7254     gx_studio_prompt_create,                 /* create function                */
7255     GX_NULL,                                 /* drawing function override      */
7256     GX_NULL,                                 /* event function override        */
7257     {389, 19, 520, 42},                      /* widget size                    */
7258     &SECONDARY_window_screen_vlist_label_1_define, /* next widget definition   */
7259     GX_NULL,                                 /* no child widgets               */
7260     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_frame_label_1), /* control block */
7261     (void *) &SECONDARY_window_screen_frame_label_1_properties /* extended properties */
7262 };
7263 
7264 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_nested_label_1_define =
7265 {
7266     "nested_label_1",
7267     GX_TYPE_PROMPT,                          /* widget type                    */
7268     GX_ID_NONE,                              /* widget id                      */
7269     #if defined(GX_WIDGET_USER_DATA)
7270     0,                                       /* user data                      */
7271     #endif
7272     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7273     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7274     sizeof(GX_PROMPT),                       /* control block size             */
7275     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7276     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7277     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
7278     gx_studio_prompt_create,                 /* create function                */
7279     GX_NULL,                                 /* drawing function override      */
7280     GX_NULL,                                 /* event function override        */
7281     {118, 19, 249, 42},                      /* widget size                    */
7282     &SECONDARY_window_screen_frame_label_1_define, /* next widget definition   */
7283     GX_NULL,                                 /* no child widgets               */
7284     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_nested_label_1), /* control block */
7285     (void *) &SECONDARY_window_screen_nested_label_1_properties /* extended properties */
7286 };
7287 
7288 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_vertical_list_define =
7289 {
7290     "vertical_list",
7291     GX_TYPE_VERTICAL_LIST,                   /* widget type                    */
7292     ID_VERTICAL_LIST,                        /* widget id                      */
7293     #if defined(GX_WIDGET_USER_DATA)
7294     0,                                       /* user data                      */
7295     #endif
7296     GX_STYLE_BORDER_RAISED,                  /* style flags                    */
7297     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7298     sizeof(GX_VERTICAL_LIST),                /* control block size             */
7299     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
7300     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
7301     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
7302     gx_studio_vertical_list_create,          /* create function                */
7303     GX_NULL,                                 /* drawing function override      */
7304     GX_NULL,                                 /* event function override        */
7305     {57, 217, 158, 360},                     /* widget size                    */
7306     &SECONDARY_window_screen_nested_label_1_define, /* next widget definition  */
7307     &SECONDARY_window_screen_button_1_define, /* child widget definition       */
7308     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_vertical_list), /* control block */
7309     (void *) &SECONDARY_window_screen_vertical_list_properties /* extended properties */
7310 };
7311 
7312 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_scroll_frame_1_define =
7313 {
7314     "scroll_frame_1",
7315     GX_TYPE_WINDOW,                          /* widget type                    */
7316     GX_ID_NONE,                              /* widget id                      */
7317     #if defined(GX_WIDGET_USER_DATA)
7318     0,                                       /* user data                      */
7319     #endif
7320     GX_STYLE_BORDER_THIN,                    /* style flags                    */
7321     0,                                       /* status flags                   */
7322     sizeof(GX_WINDOW),                       /* control block size             */
7323     GX_COLOR_ID_SCROLL_FILL,                 /* normal color id                */
7324     GX_COLOR_ID_SCROLL_FILL,                 /* selected color id              */
7325     GX_COLOR_ID_SCROLL_FILL,                 /* disabled color id              */
7326     gx_studio_window_create,                 /* create function                */
7327     GX_NULL,                                 /* drawing function override      */
7328     GX_NULL,                                 /* event function override        */
7329     {351, 45, 562, 180},                     /* widget size                    */
7330     &SECONDARY_window_screen_vertical_list_define, /* next widget definition   */
7331     &SECONDARY_window_screen_window_4_define, /* child widget definition       */
7332     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_scroll_frame_1), /* control block */
7333     (void *) &SECONDARY_window_screen_scroll_frame_1_properties /* extended properties */
7334 };
7335 
7336 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_window_5_define =
7337 {
7338     "window_5",
7339     GX_TYPE_WINDOW,                          /* widget type                    */
7340     GX_ID_NONE,                              /* widget id                      */
7341     #if defined(GX_WIDGET_USER_DATA)
7342     0,                                       /* user data                      */
7343     #endif
7344     GX_STYLE_BORDER_THICK,                   /* style flags                    */
7345     0,                                       /* status flags                   */
7346     sizeof(GX_WINDOW),                       /* control block size             */
7347     GX_COLOR_ID_SECONDARY_ORANGE,            /* normal color id                */
7348     GX_COLOR_ID_SECONDARY_ORANGE,            /* selected color id              */
7349     GX_COLOR_ID_SECONDARY_ORANGE,            /* disabled color id              */
7350     gx_studio_window_create,                 /* create function                */
7351     GX_NULL,                                 /* drawing function override      */
7352     GX_NULL,                                 /* event function override        */
7353     {56, 44, 341, 182},                      /* widget size                    */
7354     &SECONDARY_window_screen_scroll_frame_1_define, /* next widget definition  */
7355     &SECONDARY_window_screen_window_6_define, /* child widget definition       */
7356     offsetof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK, SECONDARY_window_screen_window_5), /* control block */
7357     (void *) &SECONDARY_window_screen_window_5_properties /* extended properties */
7358 };
7359 
7360 GX_STUDIO_ACTION SECONDARY_window_screen__idb_next_gx_event_clicked_actions[2] = {
7361     {GX_ACTION_TYPE_TOGGLE, 0, &SECONDARY_root_window, &SECONDARY_text_screen, GX_NULL},
7362     {0, 0, GX_NULL, GX_NULL, GX_NULL}
7363 };
7364 
7365 static GX_STUDIO_EVENT_ENTRY gx_studio_SECONDARY_window_screen_event_table[] = {
7366     {GX_SIGNAL(IDB_NEXT, GX_EVENT_CLICKED), 0, SECONDARY_window_screen__idb_next_gx_event_clicked_actions},
7367     {0, 0, GX_NULL}
7368 };
7369 
7370 GX_STUDIO_EVENT_PROCESS SECONDARY_window_screen_event_chain = {gx_studio_SECONDARY_window_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))gx_window_event_process};
gx_studio_SECONDARY_window_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)7371 static UINT gx_studio_SECONDARY_window_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
7372 {
7373     return (gx_studio_auto_event_handler(target, event_ptr, &SECONDARY_window_screen_event_chain));
7374 }
7375 
7376 
7377 GX_CONST GX_STUDIO_WIDGET SECONDARY_window_screen_define =
7378 {
7379     "SECONDARY_window_screen",
7380     GX_TYPE_WINDOW,                          /* widget type                    */
7381     ID_WINDOW_SCREEN,                        /* widget id                      */
7382     #if defined(GX_WIDGET_USER_DATA)
7383     0,                                       /* user data                      */
7384     #endif
7385     GX_STYLE_BORDER_THIN,                    /* style flags                    */
7386     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7387     sizeof(SECONDARY_WINDOW_SCREEN_CONTROL_BLOCK), /* control block size       */
7388     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
7389     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
7390     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
7391     gx_studio_window_create,                 /* create function                */
7392     GX_NULL,                                 /* drawing function override      */
7393     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_SECONDARY_window_screen_event_process, /* event function override */
7394     {24, 10, 578, 464},                      /* widget size                    */
7395     GX_NULL,                                 /* next widget                    */
7396     &SECONDARY_window_screen_window_5_define, /* child widget                  */
7397     0,                                       /* control block                  */
7398     (void *) &SECONDARY_window_screen_properties /* extended properties        */
7399 };
7400 GX_CONST GX_STUDIO_WIDGET_ENTRY folder_output_test_widget_table[] =
7401 {
7402     { &MAIN_DISPLAY_popup_modal_derived_1_define, (GX_WIDGET *) &MAIN_DISPLAY_popup_modal_derived_1 },
7403     { &MAIN_DISPLAY_popup_modal_derived_derived_1_define, (GX_WIDGET *) &MAIN_DISPLAY_popup_modal_derived_derived_1 },
7404     { &MAIN_DISPLAY_base_derived_1_define, (GX_WIDGET *) &MAIN_DISPLAY_base_derived_1 },
7405     { &MAIN_DISPLAY_window_screen_define, (GX_WIDGET *) &MAIN_DISPLAY_window_screen },
7406     { &MAIN_DISPLAY_child_template_screen_define, (GX_WIDGET *) &MAIN_DISPLAY_child_template_screen },
7407     { &MAIN_DISPLAY_menu_screen_define, (GX_WIDGET *) &MAIN_DISPLAY_menu_screen },
7408     { &MAIN_DISPLAY_sprite_screen_define, (GX_WIDGET *) &MAIN_DISPLAY_sprite_screen },
7409     { &MAIN_DISPLAY_indicator_screen_define, GX_NULL },
7410     { &MAIN_DISPLAY_popup_modal_derived_derived_define, GX_NULL },
7411     { &MAIN_DISPLAY_rotate_screen_define, (GX_WIDGET *) &MAIN_DISPLAY_rotate_screen },
7412     { &MAIN_DISPLAY_scroll_wheel_screen_define, GX_NULL },
7413     { &MAIN_DISPLAY_gauge_screen_define, (GX_WIDGET *) &MAIN_DISPLAY_gauge_screen },
7414     { &MAIN_DISPLAY_text_screen_define, (GX_WIDGET *) &MAIN_DISPLAY_text_screen },
7415     { &MAIN_DISPLAY_button_screen_define, (GX_WIDGET *) &MAIN_DISPLAY_button_screen },
7416     { &SECONDARY_popup_modal_derived_1_define, (GX_WIDGET *) &SECONDARY_popup_modal_derived_1 },
7417     { &SECONDARY_sprite_screen_define, (GX_WIDGET *) &SECONDARY_sprite_screen },
7418     { &SECONDARY_menu_screen_define, (GX_WIDGET *) &SECONDARY_menu_screen },
7419     { &SECONDARY_button_screen_define, (GX_WIDGET *) &SECONDARY_button_screen },
7420     { &SECONDARY_indicator_screen_define, GX_NULL },
7421     { &SECONDARY_popup_modal_derived_derived_define, GX_NULL },
7422     { &SECONDARY_rotate_screen_define, (GX_WIDGET *) &SECONDARY_rotate_screen },
7423     { &SECONDARY_scroll_wheel_screen_define, GX_NULL },
7424     { &SECONDARY_gauge_screen_define, (GX_WIDGET *) &SECONDARY_gauge_screen },
7425     { &SECONDARY_text_screen_define, (GX_WIDGET *) &SECONDARY_text_screen },
7426     { &SECONDARY_window_screen_define, (GX_WIDGET *) &SECONDARY_window_screen },
7427     {GX_NULL, GX_NULL}
7428 };
7429 
gx_studio_nested_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)7430 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
7431 {
7432     UINT status = GX_SUCCESS;
7433     GX_WIDGET *widget = GX_NULL;
7434     GX_VALUE   list_count = 0;
7435     GX_VALUE   list_total_count = 0;
7436 
7437     if(parent && (parent->gx_widget_type == GX_TYPE_MENU))
7438     {
7439         list_total_count = ((GX_MENU *)parent)->gx_menu_list_total_count;
7440     }
7441 
7442     while(definition && status == GX_SUCCESS)
7443     {
7444         if (definition->create_function)
7445         {
7446             if (definition->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
7447             {
7448                 status = gx_widget_allocate(&widget, definition->control_block_size);
7449                 if (status != GX_SUCCESS)
7450                 {
7451                     return GX_NULL;
7452                 }
7453             }
7454             else
7455             {
7456                 if (control == GX_NULL)
7457                 {
7458                     return GX_NULL;
7459                 }
7460                 widget = (GX_WIDGET *) (control + definition->control_block_offset);
7461             }
7462 
7463             status = definition->create_function(definition, widget, parent);
7464 
7465             if(list_count < list_total_count)
7466             {
7467                 gx_menu_insert((GX_MENU *)parent, widget);
7468                 ((GX_MENU *)parent)->gx_menu_list_total_count--;
7469                 list_count++;
7470             }
7471 
7472             if (status == GX_SUCCESS)
7473             {
7474                 if (definition->widget_type != GX_TYPE_TEMPLATE)
7475                 {
7476 #if defined(GUIX_5_4_0_COMPATIBILITY)
7477                     gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id);
7478 #else
7479                     gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id, definition->disabled_fill_color_id);
7480 #endif
7481                 }
7482 
7483                 if (!(definition->status & GX_STATUS_ACCEPTS_FOCUS))
7484                 {
7485                     gx_widget_status_remove(widget, GX_STATUS_ACCEPTS_FOCUS);
7486                 }
7487 
7488                 if (definition->draw_function)
7489                 {
7490                     gx_widget_draw_set(widget, definition->draw_function);
7491                 }
7492                 if (definition->event_function)
7493                 {
7494                     gx_widget_event_process_set(widget, definition->event_function);
7495                 }
7496 
7497                 #if defined(GX_WIDGET_USER_DATA)
7498                 widget->gx_widget_user_data = definition->user_data;
7499                 #endif
7500 
7501                 if (definition->child_widget)
7502                 {
7503                     gx_studio_nested_widget_create(control, definition->child_widget, widget);
7504                 }
7505             }
7506             definition = definition->next_widget;
7507         }
7508     }
7509     return widget;
7510 }
7511 
gx_studio_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)7512 GX_WIDGET *gx_studio_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
7513 {
7514     GX_WIDGET *widget;
7515     widget = gx_studio_nested_widget_create(control, definition, GX_NULL);
7516 
7517     if (parent && widget)
7518     {
7519         gx_widget_attach(parent, widget);
7520     }
7521     return widget;
7522 }
7523 
gx_studio_named_widget_create(char * name,GX_WIDGET * parent,GX_WIDGET ** new_widget)7524 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget)
7525 {
7526     UINT status = GX_FAILURE;
7527     GX_CONST GX_STUDIO_WIDGET_ENTRY *entry = folder_output_test_widget_table;
7528     GX_WIDGET *widget = GX_NULL;
7529 
7530     while(entry->widget_information)
7531     {
7532         if (!strcmp(name, entry->widget_information->widget_name))
7533         {
7534             widget = gx_studio_widget_create((GX_BYTE *) entry->widget, entry->widget_information, parent);
7535             if (widget)
7536             {
7537                 status = GX_SUCCESS;
7538             }
7539             break;
7540         }
7541         entry++;
7542     }
7543 
7544     if (new_widget)
7545     {
7546         *new_widget = widget;
7547     }
7548     return status;
7549 }
7550 
7551 
gx_studio_display_configure(USHORT display,UINT (* driver)(GX_DISPLAY *),GX_UBYTE language,USHORT theme,GX_WINDOW_ROOT ** return_root)7552 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *),
7553     GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root)
7554 {
7555     GX_CONST GX_THEME *theme_ptr;
7556     GX_RECTANGLE size;
7557 
7558     GX_STUDIO_DISPLAY_INFO *display_info = &folder_output_test_display_table[display];
7559 
7560 
7561 /* create the requested display                                                */
7562 
7563     gx_display_create(display_info->display,
7564                       display_info->name,
7565                       driver,
7566                       (GX_VALUE) display_info->x_resolution,
7567                       (GX_VALUE) display_info->y_resolution);
7568 
7569 
7570 /* install the request theme                                                   */
7571 
7572     if(display_info->theme_table)
7573     {
7574         theme_ptr = display_info->theme_table[theme];
7575         if(theme_ptr)
7576         {
7577             gx_display_color_table_set(display_info->display, theme_ptr->theme_color_table, theme_ptr->theme_color_table_size);
7578 
7579 /* install the color palette if required                                       */
7580             if (display_info->display->gx_display_driver_palette_set &&
7581                 theme_ptr->theme_palette != NULL)
7582             {
7583                 display_info->display->gx_display_driver_palette_set(display_info->display, theme_ptr->theme_palette, theme_ptr->theme_palette_size);
7584             }
7585 
7586             gx_display_font_table_set(display_info->display, theme_ptr->theme_font_table, theme_ptr->theme_font_table_size);
7587             gx_display_pixelmap_table_set(display_info->display, theme_ptr->theme_pixelmap_table, theme_ptr->theme_pixelmap_table_size);
7588             gx_system_scroll_appearance_set(theme_ptr->theme_vertical_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_vertical_scrollbar_appearance);
7589             gx_system_scroll_appearance_set(theme_ptr->theme_horizontal_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_horizontal_scrollbar_appearance);
7590         }
7591     }
7592 
7593 /* Install the language table.                                                 */
7594 
7595     if(display_info->language_table)
7596     {
7597         gx_display_language_table_set_ext(display_info->display, display_info->language_table, (GX_UBYTE) display_info->language_table_size, display_info->string_table_size);
7598         gx_display_active_language_set(display_info->display, language);
7599     }
7600 
7601 /* Set screen rotation angle.                                                  */
7602 
7603     display_info->display->gx_display_rotation_angle = display_info->rotation_angle;
7604 
7605 /* create the canvas for this display                                          */
7606 
7607     gx_canvas_create(display_info->canvas,
7608                      display_info->canvas_name,
7609                      display_info->display,
7610                      GX_CANVAS_MANAGED | GX_CANVAS_VISIBLE,
7611                      display_info->x_resolution,
7612                      display_info->y_resolution,
7613                      display_info->canvas_memory,
7614                      display_info->canvas_memory_size);
7615 
7616 /* Create the root window for this canvas                                      */
7617 
7618     gx_utility_rectangle_define(&size,
7619                                 0, 0,
7620                                 (GX_VALUE) (display_info->x_resolution - 1),
7621                                 (GX_VALUE) (display_info->y_resolution - 1));
7622 
7623     gx_window_root_create(display_info->root_window,
7624                           display_info->name,
7625                           display_info->canvas, GX_STYLE_NONE, 0, &size);
7626     if (return_root)
7627     {
7628         *return_root = display_info->root_window;
7629     }
7630     return GX_SUCCESS;
7631 }
7632 #undef GUIX_STUDIO_GENERATED_FILE
7633