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.3.0.1                                               */
9 /*  Date (dd.mm.yyyy): 22.12.2023   Time (hh:mm): 16:01                        */
10 /*******************************************************************************/
11 
12 
13 #define GUIX_STUDIO_GENERATED_FILE
14 #include <stddef.h>
15 #include "demo_guix_home_automation_resources.h"
16 #include "demo_guix_home_automation_specifications.h"
17 
18 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
19 THERMOSTAT_PAGE_4_CONTROL_BLOCK thermostat_page_4;
20 THERMOSTAT_PAGE_3_CONTROL_BLOCK thermostat_page_3;
21 THERMOSTAT_PAGE_2_CONTROL_BLOCK thermostat_page_2;
22 THERMOSTAT_PAGE_1_CONTROL_BLOCK thermostat_page_1;
23 THERMOSTAT_SCREEN_CONTROL_BLOCK thermostat_screen;
24 LIGHTS_PAGE_3_CONTROL_BLOCK lights_page_3;
25 LIGHTS_PAGE_2_CONTROL_BLOCK lights_page_2;
26 LIGHTS_PAGE_4_CONTROL_BLOCK lights_page_4;
27 LIGHTS_PAGE_1_CONTROL_BLOCK lights_page_1;
28 LIGHTS_SCREEN_CONTROL_BLOCK lights_screen;
29 LOCKS_PAGE_3_CONTROL_BLOCK locks_page_3;
30 LOCKS_PAGE_2_CONTROL_BLOCK locks_page_2;
31 LOCKS_PAGE_1_CONTROL_BLOCK locks_page_1;
32 LOCKS_SCREEN_CONTROL_BLOCK locks_screen;
33 WIN_SAN_DIEGO_CONTROL_BLOCK win_San_Diego;
34 WIN_NEW_YORK_CONTROL_BLOCK win_New_York;
35 WIN_LAS_VEGAS_CONTROL_BLOCK win_Las_Vegas;
36 WEATHER_SCREEN_CONTROL_BLOCK weather_screen;
37 PASSCODE_SCREEN_CONTROL_BLOCK passcode_screen;
38 MAIN_SCREEN_CONTROL_BLOCK main_screen;
39 GX_DISPLAY display_1_control_block;
40 GX_WINDOW_ROOT display_1_root_window;
41 GX_CANVAS  display_1_canvas_control_block;
42 ULONG      display_1_canvas_memory[307200];
43 
44 extern GX_CONST GX_THEME *display_1_theme_table[];
45 extern GX_CONST GX_STRING *display_1_language_table[];
46 
47 GX_STUDIO_DISPLAY_INFO demo_guix_home_automation_display_table[1] =
48 {
49     {
50     "display_1",
51     "display_1_canvas",
52     display_1_theme_table,
53     display_1_language_table,
54     DISPLAY_1_THEME_TABLE_SIZE,
55     DISPLAY_1_LANGUAGE_TABLE_SIZE,
56     DISPLAY_1_STRING_TABLE_SIZE,
57     640,                                     /* x resolution                   */
58     480,                                     /* y resolution                   */
59     &display_1_control_block,
60     &display_1_canvas_control_block,
61     &display_1_root_window,
62     display_1_canvas_memory,                 /* canvas memory area             */
63     1228800,                                 /* canvas memory size in bytes    */
64     GX_SCREEN_ROTATION_NONE                  /* rotation angle                 */
65     }
66 };
67 
gx_studio_action_target_get(GX_WIDGET * current,GX_CONST GX_STUDIO_ACTION * action)68 static GX_WIDGET *gx_studio_action_target_get(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
69 {
70     GX_WIDGET *parent = GX_NULL;
71     GX_WIDGET *target = GX_NULL;
72     INT        search_depth;
73     GX_STUDIO_WIDGET *widget_define;
74 
75     if (action->flags & GX_ACTION_FLAG_DYNAMIC_TARGET)
76     {
77                                              /* dynamically create the target widget */
78         widget_define = (GX_STUDIO_WIDGET *) action->target;
79         if(action->flags & GX_ACTION_FLAG_DYNAMIC_PARENT)
80         {
81             gx_window_root_find(current, (GX_WINDOW_ROOT **)&parent);
82             search_depth = GX_SEARCH_DEPTH_INFINITE;
83         }
84         else
85         {
86             parent = (GX_WIDGET *)action->parent;
87             search_depth = 1;
88         }
89         gx_widget_find(parent, widget_define->widget_id, search_depth, &target);
90         if (target == GX_NULL)
91         {
92             target = gx_studio_widget_create(GX_NULL, widget_define, GX_NULL);
93         }
94         if (target)
95         {
96             target->gx_widget_status |= GX_STATUS_STUDIO_CREATED;
97         }
98     }
99     else
100     {
101         target = (GX_WIDGET *) action->target;
102     }
103     return target;
104 }
105 
gx_studio_action_target_find(GX_WIDGET * current,GX_CONST GX_STUDIO_ACTION * action)106 static GX_WIDGET *gx_studio_action_target_find(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
107 {
108     GX_WIDGET *parent = GX_NULL;
109     GX_WIDGET *target = GX_NULL;
110     GX_STUDIO_WIDGET *widget_define;
111 
112     if (action->flags & GX_ACTION_FLAG_DYNAMIC_TARGET)
113     {
114                                              /* Find the dynamically created target */
115         widget_define = (GX_STUDIO_WIDGET *) action->target;
116         if(action->flags & GX_ACTION_FLAG_DYNAMIC_PARENT)
117         {
118             gx_window_root_find(current, (GX_WINDOW_ROOT **)&parent);
119         }
120         else
121         {
122             parent = (GX_WIDGET *)action->parent;
123         }
124         gx_widget_find(parent, widget_define->widget_id, GX_SEARCH_DEPTH_INFINITE, &target);
125     }
126     else
127     {
128         target = (GX_WIDGET *) action->target;
129     }
130     return target;
131 }
132 
gx_studio_action_parent_find(GX_WIDGET * current,GX_CONST GX_STUDIO_ACTION * action)133 static GX_WIDGET *gx_studio_action_parent_find(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
134 {
135 GX_WIDGET *parent = GX_NULL;
136 GX_STUDIO_WIDGET *widget_define;
137 
138     if (action->flags & GX_ACTION_FLAG_DYNAMIC_PARENT)
139     {
140                                              /* Find the dynamically created target */
141         widget_define = (GX_STUDIO_WIDGET *)action->parent;
142         gx_window_root_find(current, (GX_WINDOW_ROOT **)&parent);
143         gx_widget_find(parent, widget_define->widget_id, GX_SEARCH_DEPTH_INFINITE, &parent);
144     }
145     else
146     {
147         parent = (GX_WIDGET *)action->parent;
148     }
149     return parent;
150 }
151 
gx_studio_animation_execute(GX_WIDGET * current,GX_CONST GX_STUDIO_ACTION * action)152 static VOID gx_studio_animation_execute(GX_WIDGET *current, GX_CONST GX_STUDIO_ACTION *action)
153 {
154     GX_ANIMATION *animation;
155     GX_ANIMATION_INFO animation_info;
156     GX_WIDGET *parent = GX_NULL;
157     GX_WIDGET *target = GX_NULL;
158     gx_system_animation_get(&animation);
159     if (animation)
160     {
161         animation_info = *action->animation;
162 
163         if((action->flags & GX_ACTION_FLAG_POP_TARGET) ||
164            (action->flags & GX_ACTION_FLAG_POP_PARENT))
165         {
166             gx_system_screen_stack_get((GX_WIDGET **)&parent, &target);
167         }
168 
169         if(action->flags & GX_ACTION_FLAG_POP_TARGET)
170         {
171             animation_info.gx_animation_target = target;
172         }
173 
174         if(action->flags & GX_ACTION_FLAG_POP_PARENT)
175         {
176             animation_info.gx_animation_parent = (GX_WIDGET *)parent;
177         }
178 
179         if ((!animation_info.gx_animation_target) &&
180             (action->flags & GX_ACTION_FLAG_DYNAMIC_TARGET))
181         {
182             target = gx_studio_action_target_get(current, action);
183             animation_info.gx_animation_target = target;
184         }
185 
186         if (!animation_info.gx_animation_parent)
187         {
188             animation_info.gx_animation_parent = gx_studio_action_parent_find(current, action);
189         }
190 
191         if (animation_info.gx_animation_target &&
192             animation_info.gx_animation_parent)
193         {
194             gx_animation_start(animation, &animation_info);
195         }
196     }
197 }
198 
gx_studio_auto_event_handler(GX_WIDGET * widget,GX_EVENT * event_ptr,GX_CONST GX_STUDIO_EVENT_PROCESS * record)199 UINT gx_studio_auto_event_handler(GX_WIDGET *widget, GX_EVENT *event_ptr, GX_CONST GX_STUDIO_EVENT_PROCESS *record)
200 {
201     UINT status = GX_SUCCESS;
202     GX_CONST GX_STUDIO_ACTION *action;
203     GX_CONST GX_WIDGET *parent = GX_NULL;
204     GX_WIDGET *target = GX_NULL;
205     GX_CONST GX_STUDIO_EVENT_ENTRY *entry = record->event_table;
206 
207     while(entry->event_type)
208     {
209         if (entry->event_type == event_ptr->gx_event_type)
210         {
211             if((entry->event_type == GX_EVENT_ANIMATION_COMPLETE) &&
212                (entry->event_sender != event_ptr->gx_event_sender))
213             {
214                 entry++;
215                 continue;
216             }
217             action = entry->action_list;
218 
219             while(action->opcode)
220             {
221                 switch(action->opcode)
222                 {
223                 case GX_ACTION_TYPE_ATTACH:
224                     if((action->flags & GX_ACTION_FLAG_POP_TARGET) ||
225                        (action->flags & GX_ACTION_FLAG_POP_PARENT))
226                     {
227                         gx_system_screen_stack_get((GX_WIDGET **)&parent, &target);
228                     }
229 
230                     if(!(action->flags & GX_ACTION_FLAG_POP_PARENT))
231                     {
232                         parent = action->parent;
233                     }
234                     if(!(action->flags & GX_ACTION_FLAG_POP_TARGET))
235                     {
236                         target = gx_studio_action_target_get(widget, action);
237                     }
238                     if (parent && target)
239                     {
240                         gx_widget_attach(parent, target);
241                     }
242                     break;
243 
244                 case GX_ACTION_TYPE_DETACH:
245                     target = gx_studio_action_target_find(widget, action);
246                     if (target)
247                     {
248                         gx_widget_detach(target);
249                         if (target->gx_widget_status & GX_STATUS_STUDIO_CREATED)
250                         {
251                             if (widget == target)
252                             {
253                                 widget = GX_NULL;
254                             }
255 
256                             gx_widget_delete(target);
257                         }
258                     }
259                     break;
260 
261                 case GX_ACTION_TYPE_TOGGLE:
262                     if(action->flags & GX_ACTION_FLAG_POP_TARGET)
263                     {
264                        gx_system_screen_stack_get(GX_NULL, &target);
265                     }
266                     else
267                     {
268                         target = gx_studio_action_target_get(widget, action);
269                     }
270                     parent = widget->gx_widget_parent;
271                     if (parent)
272                     {
273                         gx_widget_detach(widget);
274                         gx_widget_attach(parent, target);
275                         if (widget->gx_widget_status & GX_STATUS_STUDIO_CREATED)
276                         {
277                             gx_widget_delete(widget);
278                             widget = GX_NULL;
279                         }
280                     }
281                     break;
282 
283                 case GX_ACTION_TYPE_SHOW:
284                     target = gx_studio_action_target_get(widget, action);
285                     if(target)
286                     {
287                         gx_widget_show(target);
288                     }
289                     break;
290 
291                 case GX_ACTION_TYPE_HIDE:
292                     target = gx_studio_action_target_find(widget, action);
293                     if(target)
294                     {
295                         gx_widget_hide(target);
296                     }
297                     break;
298 
299                 case GX_ACTION_TYPE_ANIMATION:
300                     gx_studio_animation_execute(widget, action);
301                     break;
302 
303                 case GX_ACTION_TYPE_WINDOW_EXECUTE:
304                     if((action->flags & GX_ACTION_FLAG_POP_TARGET) ||
305                        (action->flags & GX_ACTION_FLAG_POP_PARENT))
306                     {
307                         gx_system_screen_stack_get((GX_WIDGET **)&parent, &target);
308                     }
309 
310                     if(!(action->flags & GX_ACTION_FLAG_POP_PARENT))
311                     {
312                         parent = widget->gx_widget_parent;
313                     }
314                     if(!(action->flags & GX_ACTION_FLAG_POP_TARGET))
315                     {
316                         target = gx_studio_action_target_get(widget, action);
317                     }
318                     if (parent && target)
319                     {
320                         gx_widget_attach(parent, target);
321                         gx_window_execute((GX_WINDOW *) target, GX_NULL);
322                     }
323                     break;
324 
325                 case GX_ACTION_TYPE_WINDOW_EXECUTE_STOP:
326                     return event_ptr->gx_event_sender;
327 
328                 case GX_ACTION_TYPE_SCREEN_STACK_PUSH:
329                     target = gx_studio_action_target_get(widget, action);
330                     if(target)
331                     {
332                         gx_system_screen_stack_push(target);
333                     }
334                     break;
335 
336                 case GX_ACTION_TYPE_SCREEN_STACK_POP:
337                     gx_system_screen_stack_pop();
338                     break;
339 
340                 case GX_ACTION_TYPE_SCREEN_STACK_RESET:
341                     gx_system_screen_stack_reset();
342                     break;
343 
344                 default:
345                     break;
346                 }
347                 action++;
348             }
349         }
350         entry++;
351     }
352 
353     if (widget && record->chain_event_handler)
354     {
355         status = record->chain_event_handler(widget, event_ptr);
356     }
357     return status;
358 }
359 
360 
gx_studio_multi_line_text_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)361 UINT gx_studio_multi_line_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
362 {
363     UINT status;
364     GX_MULTI_LINE_TEXT_BUTTON *button = (GX_MULTI_LINE_TEXT_BUTTON *) control_block;
365     GX_ML_TEXT_BUTTON_PROPERTIES *props = (GX_ML_TEXT_BUTTON_PROPERTIES *) info->properties;
366     status = gx_multi_line_text_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
367     if (status == GX_SUCCESS)
368     {
369         gx_text_button_font_set((GX_TEXT_BUTTON *) button, props->font_id);
370 #if defined(GUIX_5_4_0_COMPATIBILITY)
371         gx_text_button_text_color_set((GX_TEXT_BUTTON *) button, props->normal_text_color_id, props->selected_text_color_id);
372 #else
373         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);
374 #endif
375     }
376     return status;
377 }
378 
gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)379 UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
380 {
381     UINT status;
382     GX_RADIO_BUTTON *button = (GX_RADIO_BUTTON *) control_block;
383     GX_TEXT_BUTTON *text_button = (GX_TEXT_BUTTON *) button;
384     GX_RADIO_BUTTON_PROPERTIES *props = (GX_RADIO_BUTTON_PROPERTIES *) info->properties;
385     status = gx_radio_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
386     if (status == GX_SUCCESS)
387     {
388         gx_text_button_font_set(text_button, props->font_id);
389 #if defined(GUIX_5_4_0_COMPATIBILITY)
390         gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id);
391 #else
392         gx_text_button_text_color_set(text_button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
393 #endif
394 
395         if (props->off_pixelmap_id ||
396             props->on_pixelmap_id ||
397             props->off_disabled_pixelmap_id ||
398             props->on_disabled_pixelmap_id)
399         {
400             gx_radio_button_pixelmap_set(button,
401                                      props->off_pixelmap_id,
402                                      props->on_pixelmap_id,
403                                      props->off_disabled_pixelmap_id,
404                                      props->on_disabled_pixelmap_id);
405         }
406     }
407     return status;
408 }
409 
gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)410 UINT gx_studio_pixelmap_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
411 {
412     UINT status;
413     GX_PIXELMAP_BUTTON *button = (GX_PIXELMAP_BUTTON *) control_block;
414     GX_PIXELMAP_BUTTON_PROPERTIES *props = (GX_PIXELMAP_BUTTON_PROPERTIES *) info->properties;
415     status = gx_pixelmap_button_create(button, info->widget_name, parent,
416                props->normal_pixelmap_id,
417                props->selected_pixelmap_id,
418                props->disabled_pixelmap_id,
419                info->style, info->widget_id, &info->size);
420     return status;
421 }
422 
gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)423 UINT gx_studio_icon_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
424 {
425     UINT status;
426     GX_ICON *icon = (GX_ICON *) control_block;
427     GX_ICON_PROPERTIES *props = (GX_ICON_PROPERTIES *) info->properties;
428     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);
429     if (props->selected_pixelmap_id)
430     {
431         gx_icon_pixelmap_set(icon, props->normal_pixelmap_id, props->selected_pixelmap_id);
432     }
433     else
434     {
435         gx_widget_resize((GX_WIDGET *)icon, (GX_RECTANGLE *)&info->size);
436     }
437     return status;
438 }
439 
gx_studio_radial_slider_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)440 UINT gx_studio_radial_slider_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
441 {
442     UINT status;
443     GX_RADIAL_SLIDER *slider = (GX_RADIAL_SLIDER *) control_block;
444     GX_RADIAL_SLIDER_INFO slider_info;
445     GX_RADIAL_SLIDER_PROPERTIES *props = (GX_RADIAL_SLIDER_PROPERTIES *)info->properties;
446     memset(&slider_info, 0, sizeof(GX_RADIAL_SLIDER_INFO));
447     slider_info.gx_radial_slider_info_xcenter = props->xcenter;
448     slider_info.gx_radial_slider_info_ycenter = props->ycenter;
449     slider_info.gx_radial_slider_info_radius = props->radius;
450     slider_info.gx_radial_slider_info_track_width = props->track_width;
451     slider_info.gx_radial_slider_info_current_angle = props->current_angle;
452     slider_info.gx_radial_slider_info_min_angle = props->min_angle;
453     slider_info.gx_radial_slider_info_max_angle = props->max_angle;
454     slider_info.gx_radial_slider_info_background_pixelmap = props->background_pixelmap;
455     slider_info.gx_radial_slider_info_needle_pixelmap = props->needle_pixelmap;
456     status = gx_radial_slider_create(slider,
457                     info->widget_name,
458                     parent,
459                     &slider_info,
460                     info->style,
461                     info->widget_id,
462                     &info->size);
463     gx_radial_slider_animation_set(slider, props->animation_total_steps, props->animation_delay, props->animation_style, props->animation_update_callback);
464     return status;
465 }
466 
gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)467 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
468 {
469     UINT status;
470     GX_PROMPT *prompt = (GX_PROMPT *) control_block;
471     GX_PROMPT_PROPERTIES *props = (GX_PROMPT_PROPERTIES *) info->properties;
472     status = gx_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
473     if (status == GX_SUCCESS)
474     {
475         gx_prompt_font_set(prompt, props->font_id);
476 #if defined(GUIX_5_4_0_COMPATIBILITY)
477         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
478 #else
479         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
480 #endif
481     }
482     return status;
483 }
484 
gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)485 UINT gx_studio_numeric_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
486 {
487     UINT status;
488     GX_NUMERIC_PROMPT *prompt = (GX_NUMERIC_PROMPT *) control_block;
489     GX_NUMERIC_PROMPT_PROPERTIES *props = (GX_NUMERIC_PROMPT_PROPERTIES *) info->properties;
490     status = gx_numeric_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
491     if (status == GX_SUCCESS)
492     {
493         gx_prompt_font_set((GX_PROMPT *)prompt, props->font_id);
494 #if defined(GUIX_5_4_0_COMPATIBILITY)
495         gx_prompt_text_color_set((GX_PROMPT *)prompt, props->normal_text_color_id, props->selected_text_color_id);
496 #else
497         gx_prompt_text_color_set((GX_PROMPT *)prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
498 #endif
499         if(!props->string_id)
500         {
501             gx_numeric_prompt_value_set(prompt, props->numeric_prompt_value);
502         }
503         if(props->format_func)
504         {
505             gx_numeric_prompt_format_function_set(prompt, props->format_func);
506         }
507     }
508     return status;
509 }
510 
gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)511 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
512 {
513     UINT status;
514     GX_WINDOW *window = (GX_WINDOW *) control_block;
515     GX_WINDOW_PROPERTIES *props = (GX_WINDOW_PROPERTIES *) info->properties;
516     status = gx_window_create(window, info->widget_name, parent, info->style, info->widget_id, &info->size);
517     if (status == GX_SUCCESS)
518     {
519         if (props->wallpaper_id)
520         {
521             gx_window_wallpaper_set(window, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
522         }
523     }
524     return status;
525 }
526 
gx_studio_template_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)527 UINT gx_studio_template_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
528 {
529     UINT status = GX_SUCCESS;
530     GX_STUDIO_WIDGET derived;
531     GX_TEMPLATE_PROPERTIES *props = (GX_TEMPLATE_PROPERTIES *) info->properties;
532 
533                                              /* create base widget and children */
534     derived =            *props->base_info;
535     derived.widget_id =   info->widget_id;
536     derived.widget_name = info->widget_name;
537 
538     if (info->style & GX_STYLE_ENABLED)
539     {
540         derived.style |= GX_STYLE_ENABLED;
541     }
542     else
543     {
544         derived.style &= ~GX_STYLE_ENABLED;
545     }
546     if (info->status & GX_STATUS_ACCEPTS_FOCUS)
547     {
548         derived.status |= GX_STATUS_ACCEPTS_FOCUS;
549     }
550     else
551     {
552         derived.status &= ~GX_STATUS_ACCEPTS_FOCUS;
553     }
554 
555     #if defined(GX_WIDGET_USER_DATA)
556     derived.user_data =   info->user_data;
557     #endif
558 
559     control_block = gx_studio_widget_create((GX_BYTE *) control_block, &derived, parent);
560     if (control_block)
561     {
562         if (info->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
563         {
564             control_block->gx_widget_status |= GX_STATUS_DYNAMICALLY_ALLOCATED;
565         }
566         if (derived.size.gx_rectangle_left != info->size.gx_rectangle_left ||
567             derived.size.gx_rectangle_top != info->size.gx_rectangle_top)
568         {
569             gx_widget_shift(control_block,
570                 info->size.gx_rectangle_left - derived.size.gx_rectangle_left,
571                 info->size.gx_rectangle_top - derived.size.gx_rectangle_top, GX_FALSE);
572         }
573     }
574     else
575     {
576         status = GX_FAILURE;
577     }
578     return status;
579 }
580 GX_WINDOW_PROPERTIES weather_base_properties =
581 {
582     0                                        /* wallpaper pixelmap id          */
583 };
584 GX_WINDOW_PROPERTIES weather_base_window_bg_properties =
585 {
586     GX_PIXELMAP_ID_BOX_WIDE_50               /* wallpaper pixelmap id          */
587 };
588 GX_PROMPT_PROPERTIES weather_base_city_name_properties =
589 {
590     GX_STRING_ID_SANDIEGO,                   /* string id                      */
591     GX_FONT_ID_CITY,                         /* font id                        */
592     GX_COLOR_ID_TEXT,                        /* normal text color              */
593     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
594     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
595 };
596 GX_NUMERIC_PROMPT_PROPERTIES weather_base_temperature_properties =
597 {
598     0,                                       /* string id                      */
599     GX_FONT_ID_TIME,                         /* font id                        */
600     GX_COLOR_ID_TEXT,                        /* normal text color              */
601     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
602     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
603     GX_NULL,                                 /* format function                */
604     75                                       /* numeric prompt value           */
605 };
606 GX_PROMPT_PROPERTIES weather_base_degree_lable_properties =
607 {
608     GX_STRING_ID_STRING_16,                  /* string id                      */
609     GX_FONT_ID_NORMAL,                       /* font id                        */
610     GX_COLOR_ID_TEXT,                        /* normal text color              */
611     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
612     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
613 };
614 GX_WINDOW_PROPERTIES weather_base_weather_win_properties =
615 {
616     0                                        /* wallpaper pixelmap id          */
617 };
618 GX_ICON_PROPERTIES weather_base_weather_icon_properties =
619 {
620     GX_PIXELMAP_ID_WEATHER_ICON_CLOUDY,      /* normal pixelmap id             */
621     0                                        /* selected pixelmap id           */
622 };
623 GX_PROMPT_PROPERTIES weather_base_weather_text_properties =
624 {
625     GX_STRING_ID_PARTLY_CLOUDY,              /* string id                      */
626     GX_FONT_ID_SMALL,                        /* font id                        */
627     GX_COLOR_ID_TEXT,                        /* normal text color              */
628     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
629     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
630 };
631 GX_WINDOW_PROPERTIES weather_base_wind_win_properties =
632 {
633     0                                        /* wallpaper pixelmap id          */
634 };
635 GX_ICON_PROPERTIES weather_base_wind_icon_properties =
636 {
637     GX_PIXELMAP_ID_WEATHER_ICON_WIND,        /* normal pixelmap id             */
638     0                                        /* selected pixelmap id           */
639 };
640 GX_PROMPT_PROPERTIES weather_base_prompt_14_1_properties =
641 {
642     GX_STRING_ID_STRING_23,                  /* string id                      */
643     GX_FONT_ID_SMALL,                        /* font id                        */
644     GX_COLOR_ID_TEXT,                        /* normal text color              */
645     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
646     GX_COLOR_ID_GRAY                         /* disabled text color            */
647 };
648 GX_PROMPT_PROPERTIES weather_base_prompt_14_3_properties =
649 {
650     GX_STRING_ID_STRING_25,                  /* string id                      */
651     GX_FONT_ID_SMALL,                        /* font id                        */
652     GX_COLOR_ID_TEXT,                        /* normal text color              */
653     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
654     GX_COLOR_ID_GRAY                         /* disabled text color            */
655 };
656 GX_NUMERIC_PROMPT_PROPERTIES weather_base_wind_speed_properties =
657 {
658     0,                                       /* string id                      */
659     GX_FONT_ID_PROMPT,                       /* font id                        */
660     GX_COLOR_ID_TEXT,                        /* normal text color              */
661     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
662     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
663     GX_NULL,                                 /* format function                */
664     19                                       /* numeric prompt value           */
665 };
666 GX_WINDOW_PROPERTIES weather_base_humdity_win_properties =
667 {
668     0                                        /* wallpaper pixelmap id          */
669 };
670 GX_ICON_PROPERTIES weather_base_humidity_icon_properties =
671 {
672     GX_PIXELMAP_ID_WEATHER_ICON_HUMIDITY,    /* normal pixelmap id             */
673     0                                        /* selected pixelmap id           */
674 };
675 GX_PROMPT_PROPERTIES weather_base_prompt_14_2_properties =
676 {
677     GX_STRING_ID_STRING_26,                  /* string id                      */
678     GX_FONT_ID_SMALL,                        /* font id                        */
679     GX_COLOR_ID_TEXT,                        /* normal text color              */
680     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
681     GX_COLOR_ID_GRAY                         /* disabled text color            */
682 };
683 GX_NUMERIC_PROMPT_PROPERTIES weather_base_humidity_value_properties =
684 {
685     0,                                       /* string id                      */
686     GX_FONT_ID_PROMPT,                       /* font id                        */
687     GX_COLOR_ID_TEXT,                        /* normal text color              */
688     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
689     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
690     GX_NULL,                                 /* format function                */
691     58                                       /* numeric prompt value           */
692 };
693 GX_PROMPT_PROPERTIES weather_base_prompt_14_4_properties =
694 {
695     GX_STRING_ID_STRING_27,                  /* string id                      */
696     GX_FONT_ID_SMALL,                        /* font id                        */
697     GX_COLOR_ID_TEXT,                        /* normal text color              */
698     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
699     GX_COLOR_ID_GRAY                         /* disabled text color            */
700 };
701 GX_WINDOW_PROPERTIES weather_base_thu_win_properties =
702 {
703     0                                        /* wallpaper pixelmap id          */
704 };
705 GX_PROMPT_PROPERTIES weather_base_thu_properties =
706 {
707     GX_STRING_ID_STRING_28,                  /* string id                      */
708     GX_FONT_ID_SMALL,                        /* font id                        */
709     GX_COLOR_ID_TEXT,                        /* normal text color              */
710     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
711     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
712 };
713 GX_ICON_PROPERTIES weather_base_thu_wicon_properties =
714 {
715     GX_PIXELMAP_ID_WEATHER_7DAY_ICON_SUN,    /* normal pixelmap id             */
716     0                                        /* selected pixelmap id           */
717 };
718 GX_NUMERIC_PROMPT_PROPERTIES weather_base_thu_hi_value_properties =
719 {
720     0,                                       /* string id                      */
721     GX_FONT_ID_SMALL,                        /* font id                        */
722     GX_COLOR_ID_TEXT,                        /* normal text color              */
723     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
724     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
725     GX_NULL,                                 /* format function                */
726     81                                       /* numeric prompt value           */
727 };
728 GX_NUMERIC_PROMPT_PROPERTIES weather_base_thu_low_value_properties =
729 {
730     0,                                       /* string id                      */
731     GX_FONT_ID_SMALL,                        /* font id                        */
732     GX_COLOR_ID_TEXT,                        /* normal text color              */
733     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
734     GX_COLOR_ID_GRAY,                        /* disabled text color            */
735     GX_NULL,                                 /* format function                */
736     70                                       /* numeric prompt value           */
737 };
738 GX_PROMPT_PROPERTIES weather_base_prompt_17_properties =
739 {
740     GX_STRING_ID_STRING_18,                  /* string id                      */
741     GX_FONT_ID_TINY,                         /* font id                        */
742     GX_COLOR_ID_TEXT,                        /* normal text color              */
743     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
744     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
745 };
746 GX_PROMPT_PROPERTIES weather_base_prompt_17_1_properties =
747 {
748     GX_STRING_ID_STRING_18,                  /* string id                      */
749     GX_FONT_ID_TINY,                         /* font id                        */
750     GX_COLOR_ID_TEXT,                        /* normal text color              */
751     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
752     GX_COLOR_ID_GRAY                         /* disabled text color            */
753 };
754 GX_WINDOW_PROPERTIES weather_base_fri_win_properties =
755 {
756     0                                        /* wallpaper pixelmap id          */
757 };
758 GX_PROMPT_PROPERTIES weather_base_prompt_14_5_properties =
759 {
760     GX_STRING_ID_STRING_29,                  /* string id                      */
761     GX_FONT_ID_SMALL,                        /* font id                        */
762     GX_COLOR_ID_TEXT,                        /* normal text color              */
763     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
764     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
765 };
766 GX_ICON_PROPERTIES weather_base_fri_wicon_properties =
767 {
768     GX_PIXELMAP_ID_WEATHER_7DAY_ICON_SUN,    /* normal pixelmap id             */
769     0                                        /* selected pixelmap id           */
770 };
771 GX_NUMERIC_PROMPT_PROPERTIES weather_base_fri_hi_value_properties =
772 {
773     0,                                       /* string id                      */
774     GX_FONT_ID_SMALL,                        /* font id                        */
775     GX_COLOR_ID_TEXT,                        /* normal text color              */
776     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
777     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
778     GX_NULL,                                 /* format function                */
779     81                                       /* numeric prompt value           */
780 };
781 GX_NUMERIC_PROMPT_PROPERTIES weather_base_fri_low_value_properties =
782 {
783     0,                                       /* string id                      */
784     GX_FONT_ID_SMALL,                        /* font id                        */
785     GX_COLOR_ID_TEXT,                        /* normal text color              */
786     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
787     GX_COLOR_ID_GRAY,                        /* disabled text color            */
788     GX_NULL,                                 /* format function                */
789     70                                       /* numeric prompt value           */
790 };
791 GX_PROMPT_PROPERTIES weather_base_prompt_17_2_properties =
792 {
793     GX_STRING_ID_STRING_18,                  /* string id                      */
794     GX_FONT_ID_TINY,                         /* font id                        */
795     GX_COLOR_ID_TEXT,                        /* normal text color              */
796     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
797     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
798 };
799 GX_PROMPT_PROPERTIES weather_base_prompt_17_3_properties =
800 {
801     GX_STRING_ID_STRING_18,                  /* string id                      */
802     GX_FONT_ID_TINY,                         /* font id                        */
803     GX_COLOR_ID_TEXT,                        /* normal text color              */
804     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
805     GX_COLOR_ID_GRAY                         /* disabled text color            */
806 };
807 GX_WINDOW_PROPERTIES weather_base_sat_win_properties =
808 {
809     0                                        /* wallpaper pixelmap id          */
810 };
811 GX_PROMPT_PROPERTIES weather_base_prompt_14_6_properties =
812 {
813     GX_STRING_ID_STRING_30,                  /* string id                      */
814     GX_FONT_ID_SMALL,                        /* font id                        */
815     GX_COLOR_ID_TEXT,                        /* normal text color              */
816     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
817     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
818 };
819 GX_ICON_PROPERTIES weather_base_sat_wicon_properties =
820 {
821     GX_PIXELMAP_ID_WEATHER_7DAY_ICON_CLOUDY, /* normal pixelmap id             */
822     0                                        /* selected pixelmap id           */
823 };
824 GX_NUMERIC_PROMPT_PROPERTIES weather_base_sat_hi_value_properties =
825 {
826     0,                                       /* string id                      */
827     GX_FONT_ID_SMALL,                        /* font id                        */
828     GX_COLOR_ID_TEXT,                        /* normal text color              */
829     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
830     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
831     GX_NULL,                                 /* format function                */
832     81                                       /* numeric prompt value           */
833 };
834 GX_NUMERIC_PROMPT_PROPERTIES weather_base_sat_low_value_properties =
835 {
836     0,                                       /* string id                      */
837     GX_FONT_ID_SMALL,                        /* font id                        */
838     GX_COLOR_ID_TEXT,                        /* normal text color              */
839     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
840     GX_COLOR_ID_GRAY,                        /* disabled text color            */
841     GX_NULL,                                 /* format function                */
842     70                                       /* numeric prompt value           */
843 };
844 GX_PROMPT_PROPERTIES weather_base_prompt_17_4_properties =
845 {
846     GX_STRING_ID_STRING_18,                  /* string id                      */
847     GX_FONT_ID_TINY,                         /* font id                        */
848     GX_COLOR_ID_TEXT,                        /* normal text color              */
849     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
850     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
851 };
852 GX_PROMPT_PROPERTIES weather_base_prompt_17_5_properties =
853 {
854     GX_STRING_ID_STRING_18,                  /* string id                      */
855     GX_FONT_ID_TINY,                         /* font id                        */
856     GX_COLOR_ID_TEXT,                        /* normal text color              */
857     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
858     GX_COLOR_ID_GRAY                         /* disabled text color            */
859 };
860 GX_WINDOW_PROPERTIES weather_base_sun_win_properties =
861 {
862     0                                        /* wallpaper pixelmap id          */
863 };
864 GX_PROMPT_PROPERTIES weather_base_prompt_14_7_properties =
865 {
866     GX_STRING_ID_STRING_31,                  /* string id                      */
867     GX_FONT_ID_SMALL,                        /* font id                        */
868     GX_COLOR_ID_TEXT,                        /* normal text color              */
869     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
870     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
871 };
872 GX_ICON_PROPERTIES weather_base_sun_wicon_properties =
873 {
874     GX_PIXELMAP_ID_WEATHER_7DAY_ICON_CLOUDY, /* normal pixelmap id             */
875     0                                        /* selected pixelmap id           */
876 };
877 GX_NUMERIC_PROMPT_PROPERTIES weather_base_sun_hi_value_properties =
878 {
879     0,                                       /* string id                      */
880     GX_FONT_ID_SMALL,                        /* font id                        */
881     GX_COLOR_ID_TEXT,                        /* normal text color              */
882     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
883     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
884     GX_NULL,                                 /* format function                */
885     81                                       /* numeric prompt value           */
886 };
887 GX_NUMERIC_PROMPT_PROPERTIES weather_base_sun_low_value_properties =
888 {
889     0,                                       /* string id                      */
890     GX_FONT_ID_SMALL,                        /* font id                        */
891     GX_COLOR_ID_TEXT,                        /* normal text color              */
892     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
893     GX_COLOR_ID_GRAY,                        /* disabled text color            */
894     GX_NULL,                                 /* format function                */
895     70                                       /* numeric prompt value           */
896 };
897 GX_PROMPT_PROPERTIES weather_base_prompt_17_6_properties =
898 {
899     GX_STRING_ID_STRING_18,                  /* string id                      */
900     GX_FONT_ID_TINY,                         /* font id                        */
901     GX_COLOR_ID_TEXT,                        /* normal text color              */
902     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
903     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
904 };
905 GX_PROMPT_PROPERTIES weather_base_prompt_17_7_properties =
906 {
907     GX_STRING_ID_STRING_18,                  /* string id                      */
908     GX_FONT_ID_TINY,                         /* font id                        */
909     GX_COLOR_ID_TEXT,                        /* normal text color              */
910     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
911     GX_COLOR_ID_GRAY                         /* disabled text color            */
912 };
913 GX_WINDOW_PROPERTIES weather_base_mon_win_properties =
914 {
915     0                                        /* wallpaper pixelmap id          */
916 };
917 GX_PROMPT_PROPERTIES weather_base_prompt_14_8_properties =
918 {
919     GX_STRING_ID_STRING_32,                  /* string id                      */
920     GX_FONT_ID_SMALL,                        /* font id                        */
921     GX_COLOR_ID_TEXT,                        /* normal text color              */
922     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
923     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
924 };
925 GX_ICON_PROPERTIES weather_base_mon_wicon_properties =
926 {
927     GX_PIXELMAP_ID_WEATHER_7DAY_ICON_CLOUDY, /* normal pixelmap id             */
928     0                                        /* selected pixelmap id           */
929 };
930 GX_NUMERIC_PROMPT_PROPERTIES weather_base_mon_hi_value_properties =
931 {
932     0,                                       /* string id                      */
933     GX_FONT_ID_SMALL,                        /* font id                        */
934     GX_COLOR_ID_TEXT,                        /* normal text color              */
935     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
936     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
937     GX_NULL,                                 /* format function                */
938     81                                       /* numeric prompt value           */
939 };
940 GX_NUMERIC_PROMPT_PROPERTIES weather_base_mon_low_value_properties =
941 {
942     0,                                       /* string id                      */
943     GX_FONT_ID_SMALL,                        /* font id                        */
944     GX_COLOR_ID_TEXT,                        /* normal text color              */
945     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
946     GX_COLOR_ID_GRAY,                        /* disabled text color            */
947     GX_NULL,                                 /* format function                */
948     70                                       /* numeric prompt value           */
949 };
950 GX_PROMPT_PROPERTIES weather_base_prompt_17_8_properties =
951 {
952     GX_STRING_ID_STRING_18,                  /* string id                      */
953     GX_FONT_ID_TINY,                         /* font id                        */
954     GX_COLOR_ID_TEXT,                        /* normal text color              */
955     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
956     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
957 };
958 GX_PROMPT_PROPERTIES weather_base_prompt_17_9_properties =
959 {
960     GX_STRING_ID_STRING_18,                  /* string id                      */
961     GX_FONT_ID_TINY,                         /* font id                        */
962     GX_COLOR_ID_TEXT,                        /* normal text color              */
963     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
964     GX_COLOR_ID_GRAY                         /* disabled text color            */
965 };
966 GX_WINDOW_PROPERTIES weather_base_tue_win_properties =
967 {
968     0                                        /* wallpaper pixelmap id          */
969 };
970 GX_PROMPT_PROPERTIES weather_base_prompt_14_9_properties =
971 {
972     GX_STRING_ID_STRING_34,                  /* string id                      */
973     GX_FONT_ID_SMALL,                        /* font id                        */
974     GX_COLOR_ID_TEXT,                        /* normal text color              */
975     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
976     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
977 };
978 GX_ICON_PROPERTIES weather_base_tue_wicon_properties =
979 {
980     GX_PIXELMAP_ID_WEATHER_7DAY_ICON_SUN,    /* normal pixelmap id             */
981     0                                        /* selected pixelmap id           */
982 };
983 GX_NUMERIC_PROMPT_PROPERTIES weather_base_tue_hi_value_properties =
984 {
985     0,                                       /* string id                      */
986     GX_FONT_ID_SMALL,                        /* font id                        */
987     GX_COLOR_ID_TEXT,                        /* normal text color              */
988     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
989     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
990     GX_NULL,                                 /* format function                */
991     81                                       /* numeric prompt value           */
992 };
993 GX_NUMERIC_PROMPT_PROPERTIES weather_base_tue_low_value_properties =
994 {
995     0,                                       /* string id                      */
996     GX_FONT_ID_SMALL,                        /* font id                        */
997     GX_COLOR_ID_TEXT,                        /* normal text color              */
998     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
999     GX_COLOR_ID_GRAY,                        /* disabled text color            */
1000     GX_NULL,                                 /* format function                */
1001     70                                       /* numeric prompt value           */
1002 };
1003 GX_PROMPT_PROPERTIES weather_base_prompt_17_10_properties =
1004 {
1005     GX_STRING_ID_STRING_18,                  /* string id                      */
1006     GX_FONT_ID_TINY,                         /* font id                        */
1007     GX_COLOR_ID_TEXT,                        /* normal text color              */
1008     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1009     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
1010 };
1011 GX_PROMPT_PROPERTIES weather_base_prompt_17_11_properties =
1012 {
1013     GX_STRING_ID_STRING_18,                  /* string id                      */
1014     GX_FONT_ID_TINY,                         /* font id                        */
1015     GX_COLOR_ID_TEXT,                        /* normal text color              */
1016     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1017     GX_COLOR_ID_GRAY                         /* disabled text color            */
1018 };
1019 GX_WINDOW_PROPERTIES weather_base_wed_win_properties =
1020 {
1021     0                                        /* wallpaper pixelmap id          */
1022 };
1023 GX_PROMPT_PROPERTIES weather_base_prompt_14_10_properties =
1024 {
1025     GX_STRING_ID_STRING_33,                  /* string id                      */
1026     GX_FONT_ID_SMALL,                        /* font id                        */
1027     GX_COLOR_ID_TEXT,                        /* normal text color              */
1028     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1029     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
1030 };
1031 GX_ICON_PROPERTIES weather_base_wed_wicon_properties =
1032 {
1033     GX_PIXELMAP_ID_WEATHER_7DAY_ICON_SUN,    /* normal pixelmap id             */
1034     0                                        /* selected pixelmap id           */
1035 };
1036 GX_NUMERIC_PROMPT_PROPERTIES weather_base_wed_hi_value_properties =
1037 {
1038     0,                                       /* string id                      */
1039     GX_FONT_ID_SMALL,                        /* font id                        */
1040     GX_COLOR_ID_TEXT,                        /* normal text color              */
1041     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1042     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
1043     GX_NULL,                                 /* format function                */
1044     81                                       /* numeric prompt value           */
1045 };
1046 GX_NUMERIC_PROMPT_PROPERTIES weather_base_wed_low_value_properties =
1047 {
1048     0,                                       /* string id                      */
1049     GX_FONT_ID_SMALL,                        /* font id                        */
1050     GX_COLOR_ID_TEXT,                        /* normal text color              */
1051     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1052     GX_COLOR_ID_GRAY,                        /* disabled text color            */
1053     GX_NULL,                                 /* format function                */
1054     70                                       /* numeric prompt value           */
1055 };
1056 GX_PROMPT_PROPERTIES weather_base_prompt_17_12_properties =
1057 {
1058     GX_STRING_ID_STRING_18,                  /* string id                      */
1059     GX_FONT_ID_TINY,                         /* font id                        */
1060     GX_COLOR_ID_TEXT,                        /* normal text color              */
1061     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1062     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
1063 };
1064 GX_PROMPT_PROPERTIES weather_base_prompt_17_13_properties =
1065 {
1066     GX_STRING_ID_STRING_18,                  /* string id                      */
1067     GX_FONT_ID_TINY,                         /* font id                        */
1068     GX_COLOR_ID_TEXT,                        /* normal text color              */
1069     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1070     GX_COLOR_ID_GRAY                         /* disabled text color            */
1071 };
1072 GX_WINDOW_PROPERTIES weather_base_bottom_info_win_properties =
1073 {
1074     0                                        /* wallpaper pixelmap id          */
1075 };
1076 GX_PROMPT_PROPERTIES weather_base_hi_label_properties =
1077 {
1078     GX_STRING_ID_STRING_9,                   /* string id                      */
1079     GX_FONT_ID_SMALL,                        /* font id                        */
1080     GX_COLOR_ID_TEXT,                        /* normal text color              */
1081     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1082     GX_COLOR_ID_GRAY                         /* disabled text color            */
1083 };
1084 GX_NUMERIC_PROMPT_PROPERTIES weather_base_low_value_properties =
1085 {
1086     0,                                       /* string id                      */
1087     GX_FONT_ID_PROMPT,                       /* font id                        */
1088     GX_COLOR_ID_TEXT,                        /* normal text color              */
1089     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1090     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
1091     GX_NULL,                                 /* format function                */
1092     70                                       /* numeric prompt value           */
1093 };
1094 GX_PROMPT_PROPERTIES weather_base_low_label_properties =
1095 {
1096     GX_STRING_ID_STRING_10,                  /* string id                      */
1097     GX_FONT_ID_SMALL,                        /* font id                        */
1098     GX_COLOR_ID_TEXT,                        /* normal text color              */
1099     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1100     GX_COLOR_ID_GRAY                         /* disabled text color            */
1101 };
1102 GX_NUMERIC_PROMPT_PROPERTIES weather_base_rain_value_properties =
1103 {
1104     0,                                       /* string id                      */
1105     GX_FONT_ID_PROMPT,                       /* font id                        */
1106     GX_COLOR_ID_TEXT,                        /* normal text color              */
1107     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1108     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
1109     GX_NULL,                                 /* format function                */
1110     0                                        /* numeric prompt value           */
1111 };
1112 GX_NUMERIC_PROMPT_PROPERTIES weather_base_hi_value_properties =
1113 {
1114     0,                                       /* string id                      */
1115     GX_FONT_ID_PROMPT,                       /* font id                        */
1116     GX_COLOR_ID_TEXT,                        /* normal text color              */
1117     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1118     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
1119     GX_NULL,                                 /* format function                */
1120     82                                       /* numeric prompt value           */
1121 };
1122 GX_PROMPT_PROPERTIES weather_base_rain_label_properties =
1123 {
1124     GX_STRING_ID_RAIN,                       /* string id                      */
1125     GX_FONT_ID_SMALL,                        /* font id                        */
1126     GX_COLOR_ID_TEXT,                        /* normal text color              */
1127     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1128     GX_COLOR_ID_GRAY                         /* disabled text color            */
1129 };
1130 GX_PROMPT_PROPERTIES weather_base_percent_lable_properties =
1131 {
1132     GX_STRING_ID_STRING_27,                  /* string id                      */
1133     GX_FONT_ID_SMALL,                        /* font id                        */
1134     GX_COLOR_ID_TEXT,                        /* normal text color              */
1135     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1136     GX_COLOR_ID_GRAY                         /* disabled text color            */
1137 };
1138 GX_WINDOW_PROPERTIES weather_base_v_line_left_properties =
1139 {
1140     0                                        /* wallpaper pixelmap id          */
1141 };
1142 GX_WINDOW_PROPERTIES weather_base_v_line_right_properties =
1143 {
1144     0                                        /* wallpaper pixelmap id          */
1145 };
1146 
1147 GX_CONST GX_STUDIO_WIDGET weather_base_weather_text_define =
1148 {
1149     "weather_text",
1150     GX_TYPE_PROMPT,                          /* widget type                    */
1151     GX_ID_NONE,                              /* widget id                      */
1152     #if defined(GX_WIDGET_USER_DATA)
1153     0,                                       /* user data                      */
1154     #endif
1155     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1156     0,                                       /* status flags                   */
1157     sizeof(GX_PROMPT),                       /* control block size             */
1158     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1159     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1160     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1161     gx_studio_prompt_create,                 /* create function                */
1162     GX_NULL,                                 /* drawing function override      */
1163     GX_NULL,                                 /* event function override        */
1164     {68, 172, 146, 184},                     /* widget size                    */
1165     GX_NULL,                                 /* no next widget                 */
1166     GX_NULL,                                 /* no child widgets               */
1167     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_weather_text), /* control block */
1168     (void *) &weather_base_weather_text_properties /* extended properties      */
1169 };
1170 
1171 GX_CONST GX_STUDIO_WIDGET weather_base_weather_icon_define =
1172 {
1173     "weather_icon",
1174     GX_TYPE_ICON,                            /* widget type                    */
1175     GX_ID_NONE,                              /* widget id                      */
1176     #if defined(GX_WIDGET_USER_DATA)
1177     0,                                       /* user data                      */
1178     #endif
1179     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
1180     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1181     sizeof(GX_ICON),                         /* control block size             */
1182     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1183     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1184     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1185     gx_studio_icon_create,                   /* create function                */
1186     GX_NULL,                                 /* drawing function override      */
1187     GX_NULL,                                 /* event function override        */
1188     {77, 108, 140, 169},                     /* widget size                    */
1189     &weather_base_weather_text_define,       /* next widget definition         */
1190     GX_NULL,                                 /* no child widgets               */
1191     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_weather_icon), /* control block */
1192     (void *) &weather_base_weather_icon_properties /* extended properties      */
1193 };
1194 
1195 GX_CONST GX_STUDIO_WIDGET weather_base_wind_speed_define =
1196 {
1197     "wind_speed",
1198     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
1199     GX_ID_NONE,                              /* widget id                      */
1200     #if defined(GX_WIDGET_USER_DATA)
1201     0,                                       /* user data                      */
1202     #endif
1203     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1204     0,                                       /* status flags                   */
1205     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
1206     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1207     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1208     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1209     gx_studio_numeric_prompt_create,         /* create function                */
1210     GX_NULL,                                 /* drawing function override      */
1211     GX_NULL,                                 /* event function override        */
1212     {116, 254, 133, 271},                    /* widget size                    */
1213     GX_NULL,                                 /* no next widget                 */
1214     GX_NULL,                                 /* no child widgets               */
1215     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_wind_speed), /* control block */
1216     (void *) &weather_base_wind_speed_properties /* extended properties        */
1217 };
1218 
1219 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_14_3_define =
1220 {
1221     "prompt_14_3",
1222     GX_TYPE_PROMPT,                          /* widget type                    */
1223     GX_ID_NONE,                              /* widget id                      */
1224     #if defined(GX_WIDGET_USER_DATA)
1225     0,                                       /* user data                      */
1226     #endif
1227     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1228     0,                                       /* status flags                   */
1229     sizeof(GX_PROMPT),                       /* control block size             */
1230     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1231     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1232     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1233     gx_studio_prompt_create,                 /* create function                */
1234     GX_NULL,                                 /* drawing function override      */
1235     GX_NULL,                                 /* event function override        */
1236     {137, 258, 164, 270},                    /* widget size                    */
1237     &weather_base_wind_speed_define,         /* next widget definition         */
1238     GX_NULL,                                 /* no child widgets               */
1239     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_14_3), /* control block */
1240     (void *) &weather_base_prompt_14_3_properties /* extended properties       */
1241 };
1242 
1243 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_14_1_define =
1244 {
1245     "prompt_14_1",
1246     GX_TYPE_PROMPT,                          /* widget type                    */
1247     GX_ID_NONE,                              /* widget id                      */
1248     #if defined(GX_WIDGET_USER_DATA)
1249     0,                                       /* user data                      */
1250     #endif
1251     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1252     0,                                       /* status flags                   */
1253     sizeof(GX_PROMPT),                       /* control block size             */
1254     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1255     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1256     GX_COLOR_ID_GRAY,                        /* disabled color id              */
1257     gx_studio_prompt_create,                 /* create function                */
1258     GX_NULL,                                 /* drawing function override      */
1259     GX_NULL,                                 /* event function override        */
1260     {54, 258, 115, 270},                     /* widget size                    */
1261     &weather_base_prompt_14_3_define,        /* next widget definition         */
1262     GX_NULL,                                 /* no child widgets               */
1263     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_14_1), /* control block */
1264     (void *) &weather_base_prompt_14_1_properties /* extended properties       */
1265 };
1266 
1267 GX_CONST GX_STUDIO_WIDGET weather_base_wind_icon_define =
1268 {
1269     "wind_icon",
1270     GX_TYPE_ICON,                            /* widget type                    */
1271     GX_ID_NONE,                              /* widget id                      */
1272     #if defined(GX_WIDGET_USER_DATA)
1273     0,                                       /* user data                      */
1274     #endif
1275     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
1276     0,                                       /* status flags                   */
1277     sizeof(GX_ICON),                         /* control block size             */
1278     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1279     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1280     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1281     gx_studio_icon_create,                   /* create function                */
1282     GX_NULL,                                 /* drawing function override      */
1283     GX_NULL,                                 /* event function override        */
1284     {76, 203, 139, 249},                     /* widget size                    */
1285     &weather_base_prompt_14_1_define,        /* next widget definition         */
1286     GX_NULL,                                 /* no child widgets               */
1287     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_wind_icon), /* control block */
1288     (void *) &weather_base_wind_icon_properties /* extended properties         */
1289 };
1290 
1291 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_14_4_define =
1292 {
1293     "prompt_14_4",
1294     GX_TYPE_PROMPT,                          /* widget type                    */
1295     GX_ID_NONE,                              /* widget id                      */
1296     #if defined(GX_WIDGET_USER_DATA)
1297     0,                                       /* user data                      */
1298     #endif
1299     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1300     0,                                       /* status flags                   */
1301     sizeof(GX_PROMPT),                       /* control block size             */
1302     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1303     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1304     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1305     gx_studio_prompt_create,                 /* create function                */
1306     GX_NULL,                                 /* drawing function override      */
1307     GX_NULL,                                 /* event function override        */
1308     {144, 340, 154, 352},                    /* widget size                    */
1309     GX_NULL,                                 /* no next widget                 */
1310     GX_NULL,                                 /* no child widgets               */
1311     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_14_4), /* control block */
1312     (void *) &weather_base_prompt_14_4_properties /* extended properties       */
1313 };
1314 
1315 GX_CONST GX_STUDIO_WIDGET weather_base_humidity_value_define =
1316 {
1317     "humidity_value",
1318     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
1319     GX_ID_NONE,                              /* widget id                      */
1320     #if defined(GX_WIDGET_USER_DATA)
1321     0,                                       /* user data                      */
1322     #endif
1323     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1324     0,                                       /* status flags                   */
1325     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
1326     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1327     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1328     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1329     gx_studio_numeric_prompt_create,         /* create function                */
1330     GX_NULL,                                 /* drawing function override      */
1331     GX_NULL,                                 /* event function override        */
1332     {126, 339, 143, 356},                    /* widget size                    */
1333     &weather_base_prompt_14_4_define,        /* next widget definition         */
1334     GX_NULL,                                 /* no child widgets               */
1335     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_humidity_value), /* control block */
1336     (void *) &weather_base_humidity_value_properties /* extended properties    */
1337 };
1338 
1339 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_14_2_define =
1340 {
1341     "prompt_14_2",
1342     GX_TYPE_PROMPT,                          /* widget type                    */
1343     GX_ID_NONE,                              /* widget id                      */
1344     #if defined(GX_WIDGET_USER_DATA)
1345     0,                                       /* user data                      */
1346     #endif
1347     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1348     0,                                       /* status flags                   */
1349     sizeof(GX_PROMPT),                       /* control block size             */
1350     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1351     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1352     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1353     gx_studio_prompt_create,                 /* create function                */
1354     GX_NULL,                                 /* drawing function override      */
1355     GX_NULL,                                 /* event function override        */
1356     {62, 343, 120, 355},                     /* widget size                    */
1357     &weather_base_humidity_value_define,     /* next widget definition         */
1358     GX_NULL,                                 /* no child widgets               */
1359     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_14_2), /* control block */
1360     (void *) &weather_base_prompt_14_2_properties /* extended properties       */
1361 };
1362 
1363 GX_CONST GX_STUDIO_WIDGET weather_base_humidity_icon_define =
1364 {
1365     "humidity_icon",
1366     GX_TYPE_ICON,                            /* widget type                    */
1367     GX_ID_NONE,                              /* widget id                      */
1368     #if defined(GX_WIDGET_USER_DATA)
1369     0,                                       /* user data                      */
1370     #endif
1371     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
1372     0,                                       /* status flags                   */
1373     sizeof(GX_ICON),                         /* control block size             */
1374     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1375     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1376     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1377     gx_studio_icon_create,                   /* create function                */
1378     GX_NULL,                                 /* drawing function override      */
1379     GX_NULL,                                 /* event function override        */
1380     {79, 290, 142, 336},                     /* widget size                    */
1381     &weather_base_prompt_14_2_define,        /* next widget definition         */
1382     GX_NULL,                                 /* no child widgets               */
1383     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_humidity_icon), /* control block */
1384     (void *) &weather_base_humidity_icon_properties /* extended properties     */
1385 };
1386 
1387 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_1_define =
1388 {
1389     "prompt_17_1",
1390     GX_TYPE_PROMPT,                          /* widget type                    */
1391     GX_ID_NONE,                              /* widget id                      */
1392     #if defined(GX_WIDGET_USER_DATA)
1393     0,                                       /* user data                      */
1394     #endif
1395     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1396     0,                                       /* status flags                   */
1397     sizeof(GX_PROMPT),                       /* control block size             */
1398     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1399     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1400     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1401     gx_studio_prompt_create,                 /* create function                */
1402     GX_NULL,                                 /* drawing function override      */
1403     GX_NULL,                                 /* event function override        */
1404     {593, 111, 598, 120},                    /* widget size                    */
1405     GX_NULL,                                 /* no next widget                 */
1406     GX_NULL,                                 /* no child widgets               */
1407     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_1), /* control block */
1408     (void *) &weather_base_prompt_17_1_properties /* extended properties       */
1409 };
1410 
1411 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_define =
1412 {
1413     "prompt_17",
1414     GX_TYPE_PROMPT,                          /* widget type                    */
1415     GX_ID_NONE,                              /* widget id                      */
1416     #if defined(GX_WIDGET_USER_DATA)
1417     0,                                       /* user data                      */
1418     #endif
1419     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1420     0,                                       /* status flags                   */
1421     sizeof(GX_PROMPT),                       /* control block size             */
1422     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1423     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1424     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1425     gx_studio_prompt_create,                 /* create function                */
1426     GX_NULL,                                 /* drawing function override      */
1427     GX_NULL,                                 /* event function override        */
1428     {562, 111, 567, 120},                    /* widget size                    */
1429     &weather_base_prompt_17_1_define,        /* next widget definition         */
1430     GX_NULL,                                 /* no child widgets               */
1431     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17), /* control block */
1432     (void *) &weather_base_prompt_17_properties /* extended properties         */
1433 };
1434 
1435 GX_CONST GX_STUDIO_WIDGET weather_base_thu_low_value_define =
1436 {
1437     "thu_low_value",
1438     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
1439     GX_ID_NONE,                              /* widget id                      */
1440     #if defined(GX_WIDGET_USER_DATA)
1441     0,                                       /* user data                      */
1442     #endif
1443     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1444     0,                                       /* status flags                   */
1445     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
1446     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1447     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1448     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1449     gx_studio_numeric_prompt_create,         /* create function                */
1450     GX_NULL,                                 /* drawing function override      */
1451     GX_NULL,                                 /* event function override        */
1452     {578, 115, 593, 127},                    /* widget size                    */
1453     &weather_base_prompt_17_define,          /* next widget definition         */
1454     GX_NULL,                                 /* no child widgets               */
1455     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_thu_low_value), /* control block */
1456     (void *) &weather_base_thu_low_value_properties /* extended properties     */
1457 };
1458 
1459 GX_CONST GX_STUDIO_WIDGET weather_base_thu_hi_value_define =
1460 {
1461     "thu_hi_value",
1462     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
1463     GX_ID_NONE,                              /* widget id                      */
1464     #if defined(GX_WIDGET_USER_DATA)
1465     0,                                       /* user data                      */
1466     #endif
1467     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1468     0,                                       /* status flags                   */
1469     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
1470     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1471     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1472     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1473     gx_studio_numeric_prompt_create,         /* create function                */
1474     GX_NULL,                                 /* drawing function override      */
1475     GX_NULL,                                 /* event function override        */
1476     {547, 115, 562, 127},                    /* widget size                    */
1477     &weather_base_thu_low_value_define,      /* next widget definition         */
1478     GX_NULL,                                 /* no child widgets               */
1479     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_thu_hi_value), /* control block */
1480     (void *) &weather_base_thu_hi_value_properties /* extended properties      */
1481 };
1482 
1483 GX_CONST GX_STUDIO_WIDGET weather_base_thu_wicon_define =
1484 {
1485     "thu_wicon",
1486     GX_TYPE_ICON,                            /* widget type                    */
1487     GX_ID_NONE,                              /* widget id                      */
1488     #if defined(GX_WIDGET_USER_DATA)
1489     0,                                       /* user data                      */
1490     #endif
1491     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
1492     0,                                       /* status flags                   */
1493     sizeof(GX_ICON),                         /* control block size             */
1494     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1495     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1496     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1497     gx_studio_icon_create,                   /* create function                */
1498     GX_NULL,                                 /* drawing function override      */
1499     GX_NULL,                                 /* event function override        */
1500     {503, 107, 536, 136},                    /* widget size                    */
1501     &weather_base_thu_hi_value_define,       /* next widget definition         */
1502     GX_NULL,                                 /* no child widgets               */
1503     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_thu_wicon), /* control block */
1504     (void *) &weather_base_thu_wicon_properties /* extended properties         */
1505 };
1506 
1507 GX_CONST GX_STUDIO_WIDGET weather_base_thu_define =
1508 {
1509     "thu",
1510     GX_TYPE_PROMPT,                          /* widget type                    */
1511     GX_ID_NONE,                              /* widget id                      */
1512     #if defined(GX_WIDGET_USER_DATA)
1513     0,                                       /* user data                      */
1514     #endif
1515     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1516     0,                                       /* status flags                   */
1517     sizeof(GX_PROMPT),                       /* control block size             */
1518     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1519     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1520     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1521     gx_studio_prompt_create,                 /* create function                */
1522     GX_NULL,                                 /* drawing function override      */
1523     GX_NULL,                                 /* event function override        */
1524     {464, 115, 486, 127},                    /* widget size                    */
1525     &weather_base_thu_wicon_define,          /* next widget definition         */
1526     GX_NULL,                                 /* no child widgets               */
1527     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_thu), /* control block   */
1528     (void *) &weather_base_thu_properties    /* extended properties            */
1529 };
1530 
1531 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_3_define =
1532 {
1533     "prompt_17_3",
1534     GX_TYPE_PROMPT,                          /* widget type                    */
1535     GX_ID_NONE,                              /* widget id                      */
1536     #if defined(GX_WIDGET_USER_DATA)
1537     0,                                       /* user data                      */
1538     #endif
1539     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1540     0,                                       /* status flags                   */
1541     sizeof(GX_PROMPT),                       /* control block size             */
1542     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1543     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1544     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1545     gx_studio_prompt_create,                 /* create function                */
1546     GX_NULL,                                 /* drawing function override      */
1547     GX_NULL,                                 /* event function override        */
1548     {593, 149, 598, 158},                    /* widget size                    */
1549     GX_NULL,                                 /* no next widget                 */
1550     GX_NULL,                                 /* no child widgets               */
1551     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_3), /* control block */
1552     (void *) &weather_base_prompt_17_3_properties /* extended properties       */
1553 };
1554 
1555 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_2_define =
1556 {
1557     "prompt_17_2",
1558     GX_TYPE_PROMPT,                          /* widget type                    */
1559     GX_ID_NONE,                              /* widget id                      */
1560     #if defined(GX_WIDGET_USER_DATA)
1561     0,                                       /* user data                      */
1562     #endif
1563     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1564     0,                                       /* status flags                   */
1565     sizeof(GX_PROMPT),                       /* control block size             */
1566     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1567     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1568     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1569     gx_studio_prompt_create,                 /* create function                */
1570     GX_NULL,                                 /* drawing function override      */
1571     GX_NULL,                                 /* event function override        */
1572     {562, 149, 567, 158},                    /* widget size                    */
1573     &weather_base_prompt_17_3_define,        /* next widget definition         */
1574     GX_NULL,                                 /* no child widgets               */
1575     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_2), /* control block */
1576     (void *) &weather_base_prompt_17_2_properties /* extended properties       */
1577 };
1578 
1579 GX_CONST GX_STUDIO_WIDGET weather_base_fri_low_value_define =
1580 {
1581     "fri_low_value",
1582     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
1583     GX_ID_NONE,                              /* widget id                      */
1584     #if defined(GX_WIDGET_USER_DATA)
1585     0,                                       /* user data                      */
1586     #endif
1587     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1588     0,                                       /* status flags                   */
1589     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
1590     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1591     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1592     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1593     gx_studio_numeric_prompt_create,         /* create function                */
1594     GX_NULL,                                 /* drawing function override      */
1595     GX_NULL,                                 /* event function override        */
1596     {578, 153, 593, 165},                    /* widget size                    */
1597     &weather_base_prompt_17_2_define,        /* next widget definition         */
1598     GX_NULL,                                 /* no child widgets               */
1599     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_fri_low_value), /* control block */
1600     (void *) &weather_base_fri_low_value_properties /* extended properties     */
1601 };
1602 
1603 GX_CONST GX_STUDIO_WIDGET weather_base_fri_hi_value_define =
1604 {
1605     "fri_hi_value",
1606     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
1607     GX_ID_NONE,                              /* widget id                      */
1608     #if defined(GX_WIDGET_USER_DATA)
1609     0,                                       /* user data                      */
1610     #endif
1611     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1612     0,                                       /* status flags                   */
1613     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
1614     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1615     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1616     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1617     gx_studio_numeric_prompt_create,         /* create function                */
1618     GX_NULL,                                 /* drawing function override      */
1619     GX_NULL,                                 /* event function override        */
1620     {547, 153, 562, 165},                    /* widget size                    */
1621     &weather_base_fri_low_value_define,      /* next widget definition         */
1622     GX_NULL,                                 /* no child widgets               */
1623     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_fri_hi_value), /* control block */
1624     (void *) &weather_base_fri_hi_value_properties /* extended properties      */
1625 };
1626 
1627 GX_CONST GX_STUDIO_WIDGET weather_base_fri_wicon_define =
1628 {
1629     "fri_wicon",
1630     GX_TYPE_ICON,                            /* widget type                    */
1631     GX_ID_NONE,                              /* widget id                      */
1632     #if defined(GX_WIDGET_USER_DATA)
1633     0,                                       /* user data                      */
1634     #endif
1635     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
1636     0,                                       /* status flags                   */
1637     sizeof(GX_ICON),                         /* control block size             */
1638     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1639     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1640     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1641     gx_studio_icon_create,                   /* create function                */
1642     GX_NULL,                                 /* drawing function override      */
1643     GX_NULL,                                 /* event function override        */
1644     {502, 145, 535, 174},                    /* widget size                    */
1645     &weather_base_fri_hi_value_define,       /* next widget definition         */
1646     GX_NULL,                                 /* no child widgets               */
1647     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_fri_wicon), /* control block */
1648     (void *) &weather_base_fri_wicon_properties /* extended properties         */
1649 };
1650 
1651 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_14_5_define =
1652 {
1653     "prompt_14_5",
1654     GX_TYPE_PROMPT,                          /* widget type                    */
1655     GX_ID_NONE,                              /* widget id                      */
1656     #if defined(GX_WIDGET_USER_DATA)
1657     0,                                       /* user data                      */
1658     #endif
1659     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1660     0,                                       /* status flags                   */
1661     sizeof(GX_PROMPT),                       /* control block size             */
1662     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1663     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1664     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1665     gx_studio_prompt_create,                 /* create function                */
1666     GX_NULL,                                 /* drawing function override      */
1667     GX_NULL,                                 /* event function override        */
1668     {464, 153, 478, 165},                    /* widget size                    */
1669     &weather_base_fri_wicon_define,          /* next widget definition         */
1670     GX_NULL,                                 /* no child widgets               */
1671     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_14_5), /* control block */
1672     (void *) &weather_base_prompt_14_5_properties /* extended properties       */
1673 };
1674 
1675 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_5_define =
1676 {
1677     "prompt_17_5",
1678     GX_TYPE_PROMPT,                          /* widget type                    */
1679     GX_ID_NONE,                              /* widget id                      */
1680     #if defined(GX_WIDGET_USER_DATA)
1681     0,                                       /* user data                      */
1682     #endif
1683     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1684     0,                                       /* status flags                   */
1685     sizeof(GX_PROMPT),                       /* control block size             */
1686     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1687     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1688     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1689     gx_studio_prompt_create,                 /* create function                */
1690     GX_NULL,                                 /* drawing function override      */
1691     GX_NULL,                                 /* event function override        */
1692     {593, 187, 598, 196},                    /* widget size                    */
1693     GX_NULL,                                 /* no next widget                 */
1694     GX_NULL,                                 /* no child widgets               */
1695     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_5), /* control block */
1696     (void *) &weather_base_prompt_17_5_properties /* extended properties       */
1697 };
1698 
1699 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_4_define =
1700 {
1701     "prompt_17_4",
1702     GX_TYPE_PROMPT,                          /* widget type                    */
1703     GX_ID_NONE,                              /* widget id                      */
1704     #if defined(GX_WIDGET_USER_DATA)
1705     0,                                       /* user data                      */
1706     #endif
1707     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1708     0,                                       /* status flags                   */
1709     sizeof(GX_PROMPT),                       /* control block size             */
1710     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1711     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1712     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1713     gx_studio_prompt_create,                 /* create function                */
1714     GX_NULL,                                 /* drawing function override      */
1715     GX_NULL,                                 /* event function override        */
1716     {562, 187, 567, 196},                    /* widget size                    */
1717     &weather_base_prompt_17_5_define,        /* next widget definition         */
1718     GX_NULL,                                 /* no child widgets               */
1719     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_4), /* control block */
1720     (void *) &weather_base_prompt_17_4_properties /* extended properties       */
1721 };
1722 
1723 GX_CONST GX_STUDIO_WIDGET weather_base_sat_low_value_define =
1724 {
1725     "sat_low_value",
1726     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
1727     GX_ID_NONE,                              /* widget id                      */
1728     #if defined(GX_WIDGET_USER_DATA)
1729     0,                                       /* user data                      */
1730     #endif
1731     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1732     0,                                       /* status flags                   */
1733     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
1734     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1735     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1736     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1737     gx_studio_numeric_prompt_create,         /* create function                */
1738     GX_NULL,                                 /* drawing function override      */
1739     GX_NULL,                                 /* event function override        */
1740     {578, 191, 593, 203},                    /* widget size                    */
1741     &weather_base_prompt_17_4_define,        /* next widget definition         */
1742     GX_NULL,                                 /* no child widgets               */
1743     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_sat_low_value), /* control block */
1744     (void *) &weather_base_sat_low_value_properties /* extended properties     */
1745 };
1746 
1747 GX_CONST GX_STUDIO_WIDGET weather_base_sat_hi_value_define =
1748 {
1749     "sat_hi_value",
1750     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
1751     GX_ID_NONE,                              /* widget id                      */
1752     #if defined(GX_WIDGET_USER_DATA)
1753     0,                                       /* user data                      */
1754     #endif
1755     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1756     0,                                       /* status flags                   */
1757     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
1758     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1759     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1760     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1761     gx_studio_numeric_prompt_create,         /* create function                */
1762     GX_NULL,                                 /* drawing function override      */
1763     GX_NULL,                                 /* event function override        */
1764     {547, 191, 562, 203},                    /* widget size                    */
1765     &weather_base_sat_low_value_define,      /* next widget definition         */
1766     GX_NULL,                                 /* no child widgets               */
1767     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_sat_hi_value), /* control block */
1768     (void *) &weather_base_sat_hi_value_properties /* extended properties      */
1769 };
1770 
1771 GX_CONST GX_STUDIO_WIDGET weather_base_sat_wicon_define =
1772 {
1773     "sat_wicon",
1774     GX_TYPE_ICON,                            /* widget type                    */
1775     GX_ID_NONE,                              /* widget id                      */
1776     #if defined(GX_WIDGET_USER_DATA)
1777     0,                                       /* user data                      */
1778     #endif
1779     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
1780     0,                                       /* status flags                   */
1781     sizeof(GX_ICON),                         /* control block size             */
1782     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1783     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1784     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1785     gx_studio_icon_create,                   /* create function                */
1786     GX_NULL,                                 /* drawing function override      */
1787     GX_NULL,                                 /* event function override        */
1788     {501, 183, 534, 212},                    /* widget size                    */
1789     &weather_base_sat_hi_value_define,       /* next widget definition         */
1790     GX_NULL,                                 /* no child widgets               */
1791     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_sat_wicon), /* control block */
1792     (void *) &weather_base_sat_wicon_properties /* extended properties         */
1793 };
1794 
1795 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_14_6_define =
1796 {
1797     "prompt_14_6",
1798     GX_TYPE_PROMPT,                          /* widget type                    */
1799     GX_ID_NONE,                              /* widget id                      */
1800     #if defined(GX_WIDGET_USER_DATA)
1801     0,                                       /* user data                      */
1802     #endif
1803     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1804     0,                                       /* status flags                   */
1805     sizeof(GX_PROMPT),                       /* control block size             */
1806     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1807     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1808     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1809     gx_studio_prompt_create,                 /* create function                */
1810     GX_NULL,                                 /* drawing function override      */
1811     GX_NULL,                                 /* event function override        */
1812     {465, 191, 484, 203},                    /* widget size                    */
1813     &weather_base_sat_wicon_define,          /* next widget definition         */
1814     GX_NULL,                                 /* no child widgets               */
1815     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_14_6), /* control block */
1816     (void *) &weather_base_prompt_14_6_properties /* extended properties       */
1817 };
1818 
1819 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_7_define =
1820 {
1821     "prompt_17_7",
1822     GX_TYPE_PROMPT,                          /* widget type                    */
1823     GX_ID_NONE,                              /* widget id                      */
1824     #if defined(GX_WIDGET_USER_DATA)
1825     0,                                       /* user data                      */
1826     #endif
1827     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1828     0,                                       /* status flags                   */
1829     sizeof(GX_PROMPT),                       /* control block size             */
1830     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1831     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1832     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1833     gx_studio_prompt_create,                 /* create function                */
1834     GX_NULL,                                 /* drawing function override      */
1835     GX_NULL,                                 /* event function override        */
1836     {593, 226, 598, 235},                    /* widget size                    */
1837     GX_NULL,                                 /* no next widget                 */
1838     GX_NULL,                                 /* no child widgets               */
1839     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_7), /* control block */
1840     (void *) &weather_base_prompt_17_7_properties /* extended properties       */
1841 };
1842 
1843 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_6_define =
1844 {
1845     "prompt_17_6",
1846     GX_TYPE_PROMPT,                          /* widget type                    */
1847     GX_ID_NONE,                              /* widget id                      */
1848     #if defined(GX_WIDGET_USER_DATA)
1849     0,                                       /* user data                      */
1850     #endif
1851     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1852     0,                                       /* status flags                   */
1853     sizeof(GX_PROMPT),                       /* control block size             */
1854     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1855     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1856     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1857     gx_studio_prompt_create,                 /* create function                */
1858     GX_NULL,                                 /* drawing function override      */
1859     GX_NULL,                                 /* event function override        */
1860     {562, 226, 567, 235},                    /* widget size                    */
1861     &weather_base_prompt_17_7_define,        /* next widget definition         */
1862     GX_NULL,                                 /* no child widgets               */
1863     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_6), /* control block */
1864     (void *) &weather_base_prompt_17_6_properties /* extended properties       */
1865 };
1866 
1867 GX_CONST GX_STUDIO_WIDGET weather_base_sun_low_value_define =
1868 {
1869     "sun_low_value",
1870     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
1871     GX_ID_NONE,                              /* widget id                      */
1872     #if defined(GX_WIDGET_USER_DATA)
1873     0,                                       /* user data                      */
1874     #endif
1875     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1876     0,                                       /* status flags                   */
1877     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
1878     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1879     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1880     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1881     gx_studio_numeric_prompt_create,         /* create function                */
1882     GX_NULL,                                 /* drawing function override      */
1883     GX_NULL,                                 /* event function override        */
1884     {578, 230, 593, 242},                    /* widget size                    */
1885     &weather_base_prompt_17_6_define,        /* next widget definition         */
1886     GX_NULL,                                 /* no child widgets               */
1887     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_sun_low_value), /* control block */
1888     (void *) &weather_base_sun_low_value_properties /* extended properties     */
1889 };
1890 
1891 GX_CONST GX_STUDIO_WIDGET weather_base_sun_hi_value_define =
1892 {
1893     "sun_hi_value",
1894     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
1895     GX_ID_NONE,                              /* widget id                      */
1896     #if defined(GX_WIDGET_USER_DATA)
1897     0,                                       /* user data                      */
1898     #endif
1899     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1900     0,                                       /* status flags                   */
1901     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
1902     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1903     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1904     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1905     gx_studio_numeric_prompt_create,         /* create function                */
1906     GX_NULL,                                 /* drawing function override      */
1907     GX_NULL,                                 /* event function override        */
1908     {547, 230, 562, 242},                    /* widget size                    */
1909     &weather_base_sun_low_value_define,      /* next widget definition         */
1910     GX_NULL,                                 /* no child widgets               */
1911     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_sun_hi_value), /* control block */
1912     (void *) &weather_base_sun_hi_value_properties /* extended properties      */
1913 };
1914 
1915 GX_CONST GX_STUDIO_WIDGET weather_base_sun_wicon_define =
1916 {
1917     "sun_wicon",
1918     GX_TYPE_ICON,                            /* widget type                    */
1919     GX_ID_NONE,                              /* widget id                      */
1920     #if defined(GX_WIDGET_USER_DATA)
1921     0,                                       /* user data                      */
1922     #endif
1923     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
1924     0,                                       /* status flags                   */
1925     sizeof(GX_ICON),                         /* control block size             */
1926     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1927     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1928     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1929     gx_studio_icon_create,                   /* create function                */
1930     GX_NULL,                                 /* drawing function override      */
1931     GX_NULL,                                 /* event function override        */
1932     {502, 222, 535, 251},                    /* widget size                    */
1933     &weather_base_sun_hi_value_define,       /* next widget definition         */
1934     GX_NULL,                                 /* no child widgets               */
1935     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_sun_wicon), /* control block */
1936     (void *) &weather_base_sun_wicon_properties /* extended properties         */
1937 };
1938 
1939 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_14_7_define =
1940 {
1941     "prompt_14_7",
1942     GX_TYPE_PROMPT,                          /* widget type                    */
1943     GX_ID_NONE,                              /* widget id                      */
1944     #if defined(GX_WIDGET_USER_DATA)
1945     0,                                       /* user data                      */
1946     #endif
1947     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1948     0,                                       /* status flags                   */
1949     sizeof(GX_PROMPT),                       /* control block size             */
1950     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1951     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1952     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1953     gx_studio_prompt_create,                 /* create function                */
1954     GX_NULL,                                 /* drawing function override      */
1955     GX_NULL,                                 /* event function override        */
1956     {464, 229, 487, 241},                    /* widget size                    */
1957     &weather_base_sun_wicon_define,          /* next widget definition         */
1958     GX_NULL,                                 /* no child widgets               */
1959     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_14_7), /* control block */
1960     (void *) &weather_base_prompt_14_7_properties /* extended properties       */
1961 };
1962 
1963 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_9_define =
1964 {
1965     "prompt_17_9",
1966     GX_TYPE_PROMPT,                          /* widget type                    */
1967     GX_ID_NONE,                              /* widget id                      */
1968     #if defined(GX_WIDGET_USER_DATA)
1969     0,                                       /* user data                      */
1970     #endif
1971     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1972     0,                                       /* status flags                   */
1973     sizeof(GX_PROMPT),                       /* control block size             */
1974     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1975     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1976     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
1977     gx_studio_prompt_create,                 /* create function                */
1978     GX_NULL,                                 /* drawing function override      */
1979     GX_NULL,                                 /* event function override        */
1980     {593, 264, 598, 273},                    /* widget size                    */
1981     GX_NULL,                                 /* no next widget                 */
1982     GX_NULL,                                 /* no child widgets               */
1983     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_9), /* control block */
1984     (void *) &weather_base_prompt_17_9_properties /* extended properties       */
1985 };
1986 
1987 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_8_define =
1988 {
1989     "prompt_17_8",
1990     GX_TYPE_PROMPT,                          /* widget type                    */
1991     GX_ID_NONE,                              /* widget id                      */
1992     #if defined(GX_WIDGET_USER_DATA)
1993     0,                                       /* user data                      */
1994     #endif
1995     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
1996     0,                                       /* status flags                   */
1997     sizeof(GX_PROMPT),                       /* control block size             */
1998     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1999     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2000     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2001     gx_studio_prompt_create,                 /* create function                */
2002     GX_NULL,                                 /* drawing function override      */
2003     GX_NULL,                                 /* event function override        */
2004     {562, 264, 567, 273},                    /* widget size                    */
2005     &weather_base_prompt_17_9_define,        /* next widget definition         */
2006     GX_NULL,                                 /* no child widgets               */
2007     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_8), /* control block */
2008     (void *) &weather_base_prompt_17_8_properties /* extended properties       */
2009 };
2010 
2011 GX_CONST GX_STUDIO_WIDGET weather_base_mon_low_value_define =
2012 {
2013     "mon_low_value",
2014     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
2015     GX_ID_NONE,                              /* widget id                      */
2016     #if defined(GX_WIDGET_USER_DATA)
2017     0,                                       /* user data                      */
2018     #endif
2019     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2020     0,                                       /* status flags                   */
2021     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
2022     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2023     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2024     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2025     gx_studio_numeric_prompt_create,         /* create function                */
2026     GX_NULL,                                 /* drawing function override      */
2027     GX_NULL,                                 /* event function override        */
2028     {578, 268, 593, 280},                    /* widget size                    */
2029     &weather_base_prompt_17_8_define,        /* next widget definition         */
2030     GX_NULL,                                 /* no child widgets               */
2031     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_mon_low_value), /* control block */
2032     (void *) &weather_base_mon_low_value_properties /* extended properties     */
2033 };
2034 
2035 GX_CONST GX_STUDIO_WIDGET weather_base_mon_hi_value_define =
2036 {
2037     "mon_hi_value",
2038     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
2039     GX_ID_NONE,                              /* widget id                      */
2040     #if defined(GX_WIDGET_USER_DATA)
2041     0,                                       /* user data                      */
2042     #endif
2043     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2044     0,                                       /* status flags                   */
2045     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
2046     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2047     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2048     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2049     gx_studio_numeric_prompt_create,         /* create function                */
2050     GX_NULL,                                 /* drawing function override      */
2051     GX_NULL,                                 /* event function override        */
2052     {547, 268, 562, 280},                    /* widget size                    */
2053     &weather_base_mon_low_value_define,      /* next widget definition         */
2054     GX_NULL,                                 /* no child widgets               */
2055     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_mon_hi_value), /* control block */
2056     (void *) &weather_base_mon_hi_value_properties /* extended properties      */
2057 };
2058 
2059 GX_CONST GX_STUDIO_WIDGET weather_base_mon_wicon_define =
2060 {
2061     "mon_wicon",
2062     GX_TYPE_ICON,                            /* widget type                    */
2063     GX_ID_NONE,                              /* widget id                      */
2064     #if defined(GX_WIDGET_USER_DATA)
2065     0,                                       /* user data                      */
2066     #endif
2067     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
2068     0,                                       /* status flags                   */
2069     sizeof(GX_ICON),                         /* control block size             */
2070     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2071     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2072     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2073     gx_studio_icon_create,                   /* create function                */
2074     GX_NULL,                                 /* drawing function override      */
2075     GX_NULL,                                 /* event function override        */
2076     {502, 260, 535, 289},                    /* widget size                    */
2077     &weather_base_mon_hi_value_define,       /* next widget definition         */
2078     GX_NULL,                                 /* no child widgets               */
2079     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_mon_wicon), /* control block */
2080     (void *) &weather_base_mon_wicon_properties /* extended properties         */
2081 };
2082 
2083 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_14_8_define =
2084 {
2085     "prompt_14_8",
2086     GX_TYPE_PROMPT,                          /* widget type                    */
2087     GX_ID_NONE,                              /* widget id                      */
2088     #if defined(GX_WIDGET_USER_DATA)
2089     0,                                       /* user data                      */
2090     #endif
2091     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2092     0,                                       /* status flags                   */
2093     sizeof(GX_PROMPT),                       /* control block size             */
2094     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2095     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2096     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2097     gx_studio_prompt_create,                 /* create function                */
2098     GX_NULL,                                 /* drawing function override      */
2099     GX_NULL,                                 /* event function override        */
2100     {466, 268, 490, 280},                    /* widget size                    */
2101     &weather_base_mon_wicon_define,          /* next widget definition         */
2102     GX_NULL,                                 /* no child widgets               */
2103     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_14_8), /* control block */
2104     (void *) &weather_base_prompt_14_8_properties /* extended properties       */
2105 };
2106 
2107 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_11_define =
2108 {
2109     "prompt_17_11",
2110     GX_TYPE_PROMPT,                          /* widget type                    */
2111     GX_ID_NONE,                              /* widget id                      */
2112     #if defined(GX_WIDGET_USER_DATA)
2113     0,                                       /* user data                      */
2114     #endif
2115     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2116     0,                                       /* status flags                   */
2117     sizeof(GX_PROMPT),                       /* control block size             */
2118     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2119     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2120     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2121     gx_studio_prompt_create,                 /* create function                */
2122     GX_NULL,                                 /* drawing function override      */
2123     GX_NULL,                                 /* event function override        */
2124     {593, 302, 598, 311},                    /* widget size                    */
2125     GX_NULL,                                 /* no next widget                 */
2126     GX_NULL,                                 /* no child widgets               */
2127     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_11), /* control block */
2128     (void *) &weather_base_prompt_17_11_properties /* extended properties      */
2129 };
2130 
2131 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_10_define =
2132 {
2133     "prompt_17_10",
2134     GX_TYPE_PROMPT,                          /* widget type                    */
2135     GX_ID_NONE,                              /* widget id                      */
2136     #if defined(GX_WIDGET_USER_DATA)
2137     0,                                       /* user data                      */
2138     #endif
2139     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2140     0,                                       /* status flags                   */
2141     sizeof(GX_PROMPT),                       /* control block size             */
2142     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2143     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2144     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2145     gx_studio_prompt_create,                 /* create function                */
2146     GX_NULL,                                 /* drawing function override      */
2147     GX_NULL,                                 /* event function override        */
2148     {562, 302, 567, 311},                    /* widget size                    */
2149     &weather_base_prompt_17_11_define,       /* next widget definition         */
2150     GX_NULL,                                 /* no child widgets               */
2151     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_10), /* control block */
2152     (void *) &weather_base_prompt_17_10_properties /* extended properties      */
2153 };
2154 
2155 GX_CONST GX_STUDIO_WIDGET weather_base_tue_low_value_define =
2156 {
2157     "tue_low_value",
2158     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
2159     GX_ID_NONE,                              /* widget id                      */
2160     #if defined(GX_WIDGET_USER_DATA)
2161     0,                                       /* user data                      */
2162     #endif
2163     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2164     0,                                       /* status flags                   */
2165     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
2166     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2167     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2168     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2169     gx_studio_numeric_prompt_create,         /* create function                */
2170     GX_NULL,                                 /* drawing function override      */
2171     GX_NULL,                                 /* event function override        */
2172     {578, 306, 593, 318},                    /* widget size                    */
2173     &weather_base_prompt_17_10_define,       /* next widget definition         */
2174     GX_NULL,                                 /* no child widgets               */
2175     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_tue_low_value), /* control block */
2176     (void *) &weather_base_tue_low_value_properties /* extended properties     */
2177 };
2178 
2179 GX_CONST GX_STUDIO_WIDGET weather_base_tue_hi_value_define =
2180 {
2181     "tue_hi_value",
2182     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
2183     GX_ID_NONE,                              /* widget id                      */
2184     #if defined(GX_WIDGET_USER_DATA)
2185     0,                                       /* user data                      */
2186     #endif
2187     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2188     0,                                       /* status flags                   */
2189     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
2190     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2191     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2192     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2193     gx_studio_numeric_prompt_create,         /* create function                */
2194     GX_NULL,                                 /* drawing function override      */
2195     GX_NULL,                                 /* event function override        */
2196     {547, 306, 562, 318},                    /* widget size                    */
2197     &weather_base_tue_low_value_define,      /* next widget definition         */
2198     GX_NULL,                                 /* no child widgets               */
2199     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_tue_hi_value), /* control block */
2200     (void *) &weather_base_tue_hi_value_properties /* extended properties      */
2201 };
2202 
2203 GX_CONST GX_STUDIO_WIDGET weather_base_tue_wicon_define =
2204 {
2205     "tue_wicon",
2206     GX_TYPE_ICON,                            /* widget type                    */
2207     GX_ID_NONE,                              /* widget id                      */
2208     #if defined(GX_WIDGET_USER_DATA)
2209     0,                                       /* user data                      */
2210     #endif
2211     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
2212     0,                                       /* status flags                   */
2213     sizeof(GX_ICON),                         /* control block size             */
2214     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2215     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2216     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2217     gx_studio_icon_create,                   /* create function                */
2218     GX_NULL,                                 /* drawing function override      */
2219     GX_NULL,                                 /* event function override        */
2220     {502, 298, 535, 327},                    /* widget size                    */
2221     &weather_base_tue_hi_value_define,       /* next widget definition         */
2222     GX_NULL,                                 /* no child widgets               */
2223     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_tue_wicon), /* control block */
2224     (void *) &weather_base_tue_wicon_properties /* extended properties         */
2225 };
2226 
2227 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_14_9_define =
2228 {
2229     "prompt_14_9",
2230     GX_TYPE_PROMPT,                          /* widget type                    */
2231     GX_ID_NONE,                              /* widget id                      */
2232     #if defined(GX_WIDGET_USER_DATA)
2233     0,                                       /* user data                      */
2234     #endif
2235     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2236     0,                                       /* status flags                   */
2237     sizeof(GX_PROMPT),                       /* control block size             */
2238     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2239     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2240     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2241     gx_studio_prompt_create,                 /* create function                */
2242     GX_NULL,                                 /* drawing function override      */
2243     GX_NULL,                                 /* event function override        */
2244     {466, 304, 487, 316},                    /* widget size                    */
2245     &weather_base_tue_wicon_define,          /* next widget definition         */
2246     GX_NULL,                                 /* no child widgets               */
2247     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_14_9), /* control block */
2248     (void *) &weather_base_prompt_14_9_properties /* extended properties       */
2249 };
2250 
2251 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_13_define =
2252 {
2253     "prompt_17_13",
2254     GX_TYPE_PROMPT,                          /* widget type                    */
2255     GX_ID_NONE,                              /* widget id                      */
2256     #if defined(GX_WIDGET_USER_DATA)
2257     0,                                       /* user data                      */
2258     #endif
2259     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2260     0,                                       /* status flags                   */
2261     sizeof(GX_PROMPT),                       /* control block size             */
2262     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2263     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2264     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2265     gx_studio_prompt_create,                 /* create function                */
2266     GX_NULL,                                 /* drawing function override      */
2267     GX_NULL,                                 /* event function override        */
2268     {593, 339, 598, 348},                    /* widget size                    */
2269     GX_NULL,                                 /* no next widget                 */
2270     GX_NULL,                                 /* no child widgets               */
2271     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_13), /* control block */
2272     (void *) &weather_base_prompt_17_13_properties /* extended properties      */
2273 };
2274 
2275 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_17_12_define =
2276 {
2277     "prompt_17_12",
2278     GX_TYPE_PROMPT,                          /* widget type                    */
2279     GX_ID_NONE,                              /* widget id                      */
2280     #if defined(GX_WIDGET_USER_DATA)
2281     0,                                       /* user data                      */
2282     #endif
2283     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2284     0,                                       /* status flags                   */
2285     sizeof(GX_PROMPT),                       /* control block size             */
2286     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2287     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2288     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2289     gx_studio_prompt_create,                 /* create function                */
2290     GX_NULL,                                 /* drawing function override      */
2291     GX_NULL,                                 /* event function override        */
2292     {562, 339, 567, 348},                    /* widget size                    */
2293     &weather_base_prompt_17_13_define,       /* next widget definition         */
2294     GX_NULL,                                 /* no child widgets               */
2295     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_17_12), /* control block */
2296     (void *) &weather_base_prompt_17_12_properties /* extended properties      */
2297 };
2298 
2299 GX_CONST GX_STUDIO_WIDGET weather_base_wed_low_value_define =
2300 {
2301     "wed_low_value",
2302     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
2303     GX_ID_NONE,                              /* widget id                      */
2304     #if defined(GX_WIDGET_USER_DATA)
2305     0,                                       /* user data                      */
2306     #endif
2307     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2308     0,                                       /* status flags                   */
2309     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
2310     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2311     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2312     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2313     gx_studio_numeric_prompt_create,         /* create function                */
2314     GX_NULL,                                 /* drawing function override      */
2315     GX_NULL,                                 /* event function override        */
2316     {578, 343, 593, 355},                    /* widget size                    */
2317     &weather_base_prompt_17_12_define,       /* next widget definition         */
2318     GX_NULL,                                 /* no child widgets               */
2319     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_wed_low_value), /* control block */
2320     (void *) &weather_base_wed_low_value_properties /* extended properties     */
2321 };
2322 
2323 GX_CONST GX_STUDIO_WIDGET weather_base_wed_hi_value_define =
2324 {
2325     "wed_hi_value",
2326     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
2327     GX_ID_NONE,                              /* widget id                      */
2328     #if defined(GX_WIDGET_USER_DATA)
2329     0,                                       /* user data                      */
2330     #endif
2331     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2332     0,                                       /* status flags                   */
2333     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
2334     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2335     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2336     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2337     gx_studio_numeric_prompt_create,         /* create function                */
2338     GX_NULL,                                 /* drawing function override      */
2339     GX_NULL,                                 /* event function override        */
2340     {547, 343, 562, 355},                    /* widget size                    */
2341     &weather_base_wed_low_value_define,      /* next widget definition         */
2342     GX_NULL,                                 /* no child widgets               */
2343     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_wed_hi_value), /* control block */
2344     (void *) &weather_base_wed_hi_value_properties /* extended properties      */
2345 };
2346 
2347 GX_CONST GX_STUDIO_WIDGET weather_base_wed_wicon_define =
2348 {
2349     "wed_wicon",
2350     GX_TYPE_ICON,                            /* widget type                    */
2351     GX_ID_NONE,                              /* widget id                      */
2352     #if defined(GX_WIDGET_USER_DATA)
2353     0,                                       /* user data                      */
2354     #endif
2355     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
2356     0,                                       /* status flags                   */
2357     sizeof(GX_ICON),                         /* control block size             */
2358     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2359     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2360     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2361     gx_studio_icon_create,                   /* create function                */
2362     GX_NULL,                                 /* drawing function override      */
2363     GX_NULL,                                 /* event function override        */
2364     {502, 334, 535, 363},                    /* widget size                    */
2365     &weather_base_wed_hi_value_define,       /* next widget definition         */
2366     GX_NULL,                                 /* no child widgets               */
2367     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_wed_wicon), /* control block */
2368     (void *) &weather_base_wed_wicon_properties /* extended properties         */
2369 };
2370 
2371 GX_CONST GX_STUDIO_WIDGET weather_base_prompt_14_10_define =
2372 {
2373     "prompt_14_10",
2374     GX_TYPE_PROMPT,                          /* widget type                    */
2375     GX_ID_NONE,                              /* widget id                      */
2376     #if defined(GX_WIDGET_USER_DATA)
2377     0,                                       /* user data                      */
2378     #endif
2379     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2380     0,                                       /* status flags                   */
2381     sizeof(GX_PROMPT),                       /* control block size             */
2382     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2383     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2384     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2385     gx_studio_prompt_create,                 /* create function                */
2386     GX_NULL,                                 /* drawing function override      */
2387     GX_NULL,                                 /* event function override        */
2388     {465, 343, 491, 355},                    /* widget size                    */
2389     &weather_base_wed_wicon_define,          /* next widget definition         */
2390     GX_NULL,                                 /* no child widgets               */
2391     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_prompt_14_10), /* control block */
2392     (void *) &weather_base_prompt_14_10_properties /* extended properties      */
2393 };
2394 
2395 GX_CONST GX_STUDIO_WIDGET weather_base_percent_lable_define =
2396 {
2397     "percent_lable",
2398     GX_TYPE_PROMPT,                          /* widget type                    */
2399     GX_ID_NONE,                              /* widget id                      */
2400     #if defined(GX_WIDGET_USER_DATA)
2401     0,                                       /* user data                      */
2402     #endif
2403     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2404     0,                                       /* status flags                   */
2405     sizeof(GX_PROMPT),                       /* control block size             */
2406     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2407     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2408     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2409     gx_studio_prompt_create,                 /* create function                */
2410     GX_NULL,                                 /* drawing function override      */
2411     GX_NULL,                                 /* event function override        */
2412     {397, 341, 407, 353},                    /* widget size                    */
2413     GX_NULL,                                 /* no next widget                 */
2414     GX_NULL,                                 /* no child widgets               */
2415     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_percent_lable), /* control block */
2416     (void *) &weather_base_percent_lable_properties /* extended properties     */
2417 };
2418 
2419 GX_CONST GX_STUDIO_WIDGET weather_base_rain_label_define =
2420 {
2421     "rain_label",
2422     GX_TYPE_PROMPT,                          /* widget type                    */
2423     GX_ID_NONE,                              /* widget id                      */
2424     #if defined(GX_WIDGET_USER_DATA)
2425     0,                                       /* user data                      */
2426     #endif
2427     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2428     0,                                       /* status flags                   */
2429     sizeof(GX_PROMPT),                       /* control block size             */
2430     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2431     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2432     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2433     gx_studio_prompt_create,                 /* create function                */
2434     GX_NULL,                                 /* drawing function override      */
2435     GX_NULL,                                 /* event function override        */
2436     {349, 343, 374, 355},                    /* widget size                    */
2437     &weather_base_percent_lable_define,      /* next widget definition         */
2438     GX_NULL,                                 /* no child widgets               */
2439     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_rain_label), /* control block */
2440     (void *) &weather_base_rain_label_properties /* extended properties        */
2441 };
2442 
2443 GX_CONST GX_STUDIO_WIDGET weather_base_hi_value_define =
2444 {
2445     "hi_value",
2446     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
2447     GX_ID_NONE,                              /* widget id                      */
2448     #if defined(GX_WIDGET_USER_DATA)
2449     0,                                       /* user data                      */
2450     #endif
2451     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2452     0,                                       /* status flags                   */
2453     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
2454     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2455     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2456     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2457     gx_studio_numeric_prompt_create,         /* create function                */
2458     GX_NULL,                                 /* drawing function override      */
2459     GX_NULL,                                 /* event function override        */
2460     {260, 340, 277, 357},                    /* widget size                    */
2461     &weather_base_rain_label_define,         /* next widget definition         */
2462     GX_NULL,                                 /* no child widgets               */
2463     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_hi_value), /* control block */
2464     (void *) &weather_base_hi_value_properties /* extended properties          */
2465 };
2466 
2467 GX_CONST GX_STUDIO_WIDGET weather_base_rain_value_define =
2468 {
2469     "rain_value",
2470     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
2471     GX_ID_NONE,                              /* widget id                      */
2472     #if defined(GX_WIDGET_USER_DATA)
2473     0,                                       /* user data                      */
2474     #endif
2475     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2476     0,                                       /* status flags                   */
2477     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
2478     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2479     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2480     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2481     gx_studio_numeric_prompt_create,         /* create function                */
2482     GX_NULL,                                 /* drawing function override      */
2483     GX_NULL,                                 /* event function override        */
2484     {378, 340, 398, 357},                    /* widget size                    */
2485     &weather_base_hi_value_define,           /* next widget definition         */
2486     GX_NULL,                                 /* no child widgets               */
2487     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_rain_value), /* control block */
2488     (void *) &weather_base_rain_value_properties /* extended properties        */
2489 };
2490 
2491 GX_CONST GX_STUDIO_WIDGET weather_base_low_label_define =
2492 {
2493     "low_label",
2494     GX_TYPE_PROMPT,                          /* widget type                    */
2495     GX_ID_NONE,                              /* widget id                      */
2496     #if defined(GX_WIDGET_USER_DATA)
2497     0,                                       /* user data                      */
2498     #endif
2499     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2500     0,                                       /* status flags                   */
2501     sizeof(GX_PROMPT),                       /* control block size             */
2502     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2503     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2504     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2505     gx_studio_prompt_create,                 /* create function                */
2506     GX_NULL,                                 /* drawing function override      */
2507     GX_NULL,                                 /* event function override        */
2508     {286, 344, 309, 356},                    /* widget size                    */
2509     &weather_base_rain_value_define,         /* next widget definition         */
2510     GX_NULL,                                 /* no child widgets               */
2511     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_low_label), /* control block */
2512     (void *) &weather_base_low_label_properties /* extended properties         */
2513 };
2514 
2515 GX_CONST GX_STUDIO_WIDGET weather_base_low_value_define =
2516 {
2517     "low_value",
2518     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
2519     GX_ID_NONE,                              /* widget id                      */
2520     #if defined(GX_WIDGET_USER_DATA)
2521     0,                                       /* user data                      */
2522     #endif
2523     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2524     0,                                       /* status flags                   */
2525     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
2526     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2527     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2528     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2529     gx_studio_numeric_prompt_create,         /* create function                */
2530     GX_NULL,                                 /* drawing function override      */
2531     GX_NULL,                                 /* event function override        */
2532     {313, 340, 330, 357},                    /* widget size                    */
2533     &weather_base_low_label_define,          /* next widget definition         */
2534     GX_NULL,                                 /* no child widgets               */
2535     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_low_value), /* control block */
2536     (void *) &weather_base_low_value_properties /* extended properties         */
2537 };
2538 
2539 GX_CONST GX_STUDIO_WIDGET weather_base_hi_label_define =
2540 {
2541     "hi_label",
2542     GX_TYPE_PROMPT,                          /* widget type                    */
2543     GX_ID_NONE,                              /* widget id                      */
2544     #if defined(GX_WIDGET_USER_DATA)
2545     0,                                       /* user data                      */
2546     #endif
2547     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2548     0,                                       /* status flags                   */
2549     sizeof(GX_PROMPT),                       /* control block size             */
2550     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2551     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2552     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2553     gx_studio_prompt_create,                 /* create function                */
2554     GX_NULL,                                 /* drawing function override      */
2555     GX_NULL,                                 /* event function override        */
2556     {244, 344, 255, 356},                    /* widget size                    */
2557     &weather_base_low_value_define,          /* next widget definition         */
2558     GX_NULL,                                 /* no child widgets               */
2559     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_hi_label), /* control block */
2560     (void *) &weather_base_hi_label_properties /* extended properties          */
2561 };
2562 
2563 GX_CONST GX_STUDIO_WIDGET weather_base_v_line_right_define =
2564 {
2565     "v_line_right",
2566     GX_TYPE_WINDOW,                          /* widget type                    */
2567     ID_V_LINE,                               /* widget id                      */
2568     #if defined(GX_WIDGET_USER_DATA)
2569     0,                                       /* user data                      */
2570     #endif
2571     GX_STYLE_BORDER_NONE,                    /* style flags                    */
2572     0,                                       /* status flags                   */
2573     sizeof(GX_WINDOW),                       /* control block size             */
2574     GX_COLOR_ID_GRAY,                        /* normal color id                */
2575     GX_COLOR_ID_GRAY,                        /* selected color id              */
2576     GX_COLOR_ID_GRAY,                        /* disabled color id              */
2577     gx_studio_window_create,                 /* create function                */
2578     GX_NULL,                                 /* drawing function override      */
2579     GX_NULL,                                 /* event function override        */
2580     {441, 116, 441, 358},                    /* widget size                    */
2581     GX_NULL,                                 /* no next widget                 */
2582     GX_NULL,                                 /* no child widgets               */
2583     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_v_line_right), /* control block */
2584     (void *) &weather_base_v_line_right_properties /* extended properties      */
2585 };
2586 
2587 GX_CONST GX_STUDIO_WIDGET weather_base_v_line_left_define =
2588 {
2589     "v_line_left",
2590     GX_TYPE_WINDOW,                          /* widget type                    */
2591     ID_V_LINE,                               /* widget id                      */
2592     #if defined(GX_WIDGET_USER_DATA)
2593     0,                                       /* user data                      */
2594     #endif
2595     GX_STYLE_BORDER_NONE,                    /* style flags                    */
2596     0,                                       /* status flags                   */
2597     sizeof(GX_WINDOW),                       /* control block size             */
2598     GX_COLOR_ID_GRAY,                        /* normal color id                */
2599     GX_COLOR_ID_GRAY,                        /* selected color id              */
2600     GX_COLOR_ID_GRAY,                        /* disabled color id              */
2601     gx_studio_window_create,                 /* create function                */
2602     GX_NULL,                                 /* drawing function override      */
2603     GX_NULL,                                 /* event function override        */
2604     {196, 118, 196, 360},                    /* widget size                    */
2605     &weather_base_v_line_right_define,       /* next widget definition         */
2606     GX_NULL,                                 /* no child widgets               */
2607     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_v_line_left), /* control block */
2608     (void *) &weather_base_v_line_left_properties /* extended properties       */
2609 };
2610 
2611 GX_CONST GX_STUDIO_WIDGET weather_base_bottom_info_win_define =
2612 {
2613     "bottom_info_win",
2614     GX_TYPE_WINDOW,                          /* widget type                    */
2615     ID_BOTTOM_INFO_WIN,                      /* widget id                      */
2616     #if defined(GX_WIDGET_USER_DATA)
2617     0,                                       /* user data                      */
2618     #endif
2619     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
2620     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2621     sizeof(GX_WINDOW),                       /* control block size             */
2622     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2623     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2624     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2625     gx_studio_window_create,                 /* create function                */
2626     GX_NULL,                                 /* drawing function override      */
2627     GX_NULL,                                 /* event function override        */
2628     {234, 328, 414, 366},                    /* widget size                    */
2629     &weather_base_v_line_left_define,        /* next widget definition         */
2630     &weather_base_hi_label_define,           /* child widget definition        */
2631     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_bottom_info_win), /* control block */
2632     (void *) &weather_base_bottom_info_win_properties /* extended properties   */
2633 };
2634 
2635 GX_CONST GX_STUDIO_WIDGET weather_base_wed_win_define =
2636 {
2637     "wed_win",
2638     GX_TYPE_WINDOW,                          /* widget type                    */
2639     ID_WED_WIN,                              /* widget id                      */
2640     #if defined(GX_WIDGET_USER_DATA)
2641     0,                                       /* user data                      */
2642     #endif
2643     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
2644     0,                                       /* status flags                   */
2645     sizeof(GX_WINDOW),                       /* control block size             */
2646     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2647     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2648     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2649     gx_studio_window_create,                 /* create function                */
2650     GX_NULL,                                 /* drawing function override      */
2651     GX_NULL,                                 /* event function override        */
2652     {455, 333, 611, 366},                    /* widget size                    */
2653     &weather_base_bottom_info_win_define,    /* next widget definition         */
2654     &weather_base_prompt_14_10_define,       /* child widget definition        */
2655     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_wed_win), /* control block */
2656     (void *) &weather_base_wed_win_properties /* extended properties           */
2657 };
2658 
2659 GX_CONST GX_STUDIO_WIDGET weather_base_tue_win_define =
2660 {
2661     "tue_win",
2662     GX_TYPE_WINDOW,                          /* widget type                    */
2663     ID_TUE_WIN,                              /* widget id                      */
2664     #if defined(GX_WIDGET_USER_DATA)
2665     0,                                       /* user data                      */
2666     #endif
2667     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
2668     0,                                       /* status flags                   */
2669     sizeof(GX_WINDOW),                       /* control block size             */
2670     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2671     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2672     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2673     gx_studio_window_create,                 /* create function                */
2674     GX_NULL,                                 /* drawing function override      */
2675     GX_NULL,                                 /* event function override        */
2676     {455, 296, 611, 329},                    /* widget size                    */
2677     &weather_base_wed_win_define,            /* next widget definition         */
2678     &weather_base_prompt_14_9_define,        /* child widget definition        */
2679     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_tue_win), /* control block */
2680     (void *) &weather_base_tue_win_properties /* extended properties           */
2681 };
2682 
2683 GX_CONST GX_STUDIO_WIDGET weather_base_mon_win_define =
2684 {
2685     "mon_win",
2686     GX_TYPE_WINDOW,                          /* widget type                    */
2687     ID_MON_WIN,                              /* widget id                      */
2688     #if defined(GX_WIDGET_USER_DATA)
2689     0,                                       /* user data                      */
2690     #endif
2691     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
2692     0,                                       /* status flags                   */
2693     sizeof(GX_WINDOW),                       /* control block size             */
2694     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2695     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2696     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2697     gx_studio_window_create,                 /* create function                */
2698     GX_NULL,                                 /* drawing function override      */
2699     GX_NULL,                                 /* event function override        */
2700     {455, 258, 611, 291},                    /* widget size                    */
2701     &weather_base_tue_win_define,            /* next widget definition         */
2702     &weather_base_prompt_14_8_define,        /* child widget definition        */
2703     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_mon_win), /* control block */
2704     (void *) &weather_base_mon_win_properties /* extended properties           */
2705 };
2706 
2707 GX_CONST GX_STUDIO_WIDGET weather_base_sun_win_define =
2708 {
2709     "sun_win",
2710     GX_TYPE_WINDOW,                          /* widget type                    */
2711     ID_SUN_WIN,                              /* widget id                      */
2712     #if defined(GX_WIDGET_USER_DATA)
2713     0,                                       /* user data                      */
2714     #endif
2715     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
2716     0,                                       /* status flags                   */
2717     sizeof(GX_WINDOW),                       /* control block size             */
2718     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2719     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2720     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2721     gx_studio_window_create,                 /* create function                */
2722     GX_NULL,                                 /* drawing function override      */
2723     GX_NULL,                                 /* event function override        */
2724     {455, 220, 611, 253},                    /* widget size                    */
2725     &weather_base_mon_win_define,            /* next widget definition         */
2726     &weather_base_prompt_14_7_define,        /* child widget definition        */
2727     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_sun_win), /* control block */
2728     (void *) &weather_base_sun_win_properties /* extended properties           */
2729 };
2730 
2731 GX_CONST GX_STUDIO_WIDGET weather_base_sat_win_define =
2732 {
2733     "sat_win",
2734     GX_TYPE_WINDOW,                          /* widget type                    */
2735     ID_SAT_WIN,                              /* widget id                      */
2736     #if defined(GX_WIDGET_USER_DATA)
2737     0,                                       /* user data                      */
2738     #endif
2739     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
2740     0,                                       /* status flags                   */
2741     sizeof(GX_WINDOW),                       /* control block size             */
2742     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2743     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2744     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2745     gx_studio_window_create,                 /* create function                */
2746     GX_NULL,                                 /* drawing function override      */
2747     GX_NULL,                                 /* event function override        */
2748     {455, 181, 611, 214},                    /* widget size                    */
2749     &weather_base_sun_win_define,            /* next widget definition         */
2750     &weather_base_prompt_14_6_define,        /* child widget definition        */
2751     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_sat_win), /* control block */
2752     (void *) &weather_base_sat_win_properties /* extended properties           */
2753 };
2754 
2755 GX_CONST GX_STUDIO_WIDGET weather_base_fri_win_define =
2756 {
2757     "fri_win",
2758     GX_TYPE_WINDOW,                          /* widget type                    */
2759     ID_FRI_WIN,                              /* widget id                      */
2760     #if defined(GX_WIDGET_USER_DATA)
2761     0,                                       /* user data                      */
2762     #endif
2763     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
2764     0,                                       /* status flags                   */
2765     sizeof(GX_WINDOW),                       /* control block size             */
2766     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2767     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2768     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2769     gx_studio_window_create,                 /* create function                */
2770     GX_NULL,                                 /* drawing function override      */
2771     GX_NULL,                                 /* event function override        */
2772     {455, 143, 611, 176},                    /* widget size                    */
2773     &weather_base_sat_win_define,            /* next widget definition         */
2774     &weather_base_prompt_14_5_define,        /* child widget definition        */
2775     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_fri_win), /* control block */
2776     (void *) &weather_base_fri_win_properties /* extended properties           */
2777 };
2778 
2779 GX_CONST GX_STUDIO_WIDGET weather_base_thu_win_define =
2780 {
2781     "thu_win",
2782     GX_TYPE_WINDOW,                          /* widget type                    */
2783     ID_THU_WIN,                              /* widget id                      */
2784     #if defined(GX_WIDGET_USER_DATA)
2785     0,                                       /* user data                      */
2786     #endif
2787     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
2788     0,                                       /* status flags                   */
2789     sizeof(GX_WINDOW),                       /* control block size             */
2790     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2791     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2792     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2793     gx_studio_window_create,                 /* create function                */
2794     GX_NULL,                                 /* drawing function override      */
2795     GX_NULL,                                 /* event function override        */
2796     {455, 105, 611, 138},                    /* widget size                    */
2797     &weather_base_fri_win_define,            /* next widget definition         */
2798     &weather_base_thu_define,                /* child widget definition        */
2799     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_thu_win), /* control block */
2800     (void *) &weather_base_thu_win_properties /* extended properties           */
2801 };
2802 
2803 GX_CONST GX_STUDIO_WIDGET weather_base_humdity_win_define =
2804 {
2805     "humdity_win",
2806     GX_TYPE_WINDOW,                          /* widget type                    */
2807     ID_HUMIDITY_WIN,                         /* widget id                      */
2808     #if defined(GX_WIDGET_USER_DATA)
2809     0,                                       /* user data                      */
2810     #endif
2811     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
2812     0,                                       /* status flags                   */
2813     sizeof(GX_WINDOW),                       /* control block size             */
2814     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2815     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2816     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2817     gx_studio_window_create,                 /* create function                */
2818     GX_NULL,                                 /* drawing function override      */
2819     GX_NULL,                                 /* event function override        */
2820     {48, 287, 174, 367},                     /* widget size                    */
2821     &weather_base_thu_win_define,            /* next widget definition         */
2822     &weather_base_humidity_icon_define,      /* child widget definition        */
2823     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_humdity_win), /* control block */
2824     (void *) &weather_base_humdity_win_properties /* extended properties       */
2825 };
2826 
2827 GX_CONST GX_STUDIO_WIDGET weather_base_wind_win_define =
2828 {
2829     "wind_win",
2830     GX_TYPE_WINDOW,                          /* widget type                    */
2831     ID_WIND_WIN,                             /* widget id                      */
2832     #if defined(GX_WIDGET_USER_DATA)
2833     0,                                       /* user data                      */
2834     #endif
2835     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
2836     0,                                       /* status flags                   */
2837     sizeof(GX_WINDOW),                       /* control block size             */
2838     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2839     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2840     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2841     gx_studio_window_create,                 /* create function                */
2842     GX_NULL,                                 /* drawing function override      */
2843     GX_NULL,                                 /* event function override        */
2844     {48, 200, 174, 280},                     /* widget size                    */
2845     &weather_base_humdity_win_define,        /* next widget definition         */
2846     &weather_base_wind_icon_define,          /* child widget definition        */
2847     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_wind_win), /* control block */
2848     (void *) &weather_base_wind_win_properties /* extended properties          */
2849 };
2850 
2851 GX_CONST GX_STUDIO_WIDGET weather_base_weather_win_define =
2852 {
2853     "weather_win",
2854     GX_TYPE_WINDOW,                          /* widget type                    */
2855     ID_WEATHER_WIN,                          /* widget id                      */
2856     #if defined(GX_WIDGET_USER_DATA)
2857     0,                                       /* user data                      */
2858     #endif
2859     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
2860     0,                                       /* status flags                   */
2861     sizeof(GX_WINDOW),                       /* control block size             */
2862     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2863     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2864     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2865     gx_studio_window_create,                 /* create function                */
2866     GX_NULL,                                 /* drawing function override      */
2867     GX_NULL,                                 /* event function override        */
2868     {48, 113, 174, 193},                     /* widget size                    */
2869     &weather_base_wind_win_define,           /* next widget definition         */
2870     &weather_base_weather_icon_define,       /* child widget definition        */
2871     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_weather_win), /* control block */
2872     (void *) &weather_base_weather_win_properties /* extended properties       */
2873 };
2874 
2875 GX_CONST GX_STUDIO_WIDGET weather_base_degree_lable_define =
2876 {
2877     "degree_lable",
2878     GX_TYPE_PROMPT,                          /* widget type                    */
2879     GX_ID_NONE,                              /* widget id                      */
2880     #if defined(GX_WIDGET_USER_DATA)
2881     0,                                       /* user data                      */
2882     #endif
2883     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2884     0,                                       /* status flags                   */
2885     sizeof(GX_PROMPT),                       /* control block size             */
2886     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2887     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2888     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2889     gx_studio_prompt_create,                 /* create function                */
2890     GX_NULL,                                 /* drawing function override      */
2891     GX_NULL,                                 /* event function override        */
2892     {398, 180, 414, 202},                    /* widget size                    */
2893     &weather_base_weather_win_define,        /* next widget definition         */
2894     GX_NULL,                                 /* no child widgets               */
2895     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_degree_lable), /* control block */
2896     (void *) &weather_base_degree_lable_properties /* extended properties      */
2897 };
2898 
2899 GX_CONST GX_STUDIO_WIDGET weather_base_temperature_define =
2900 {
2901     "temperature",
2902     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
2903     GX_ID_NONE,                              /* widget id                      */
2904     #if defined(GX_WIDGET_USER_DATA)
2905     0,                                       /* user data                      */
2906     #endif
2907     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2908     0,                                       /* status flags                   */
2909     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
2910     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2911     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2912     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2913     gx_studio_numeric_prompt_create,         /* create function                */
2914     GX_NULL,                                 /* drawing function override      */
2915     GX_NULL,                                 /* event function override        */
2916     {244, 185, 403, 279},                    /* widget size                    */
2917     &weather_base_degree_lable_define,       /* next widget definition         */
2918     GX_NULL,                                 /* no child widgets               */
2919     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_temperature), /* control block */
2920     (void *) &weather_base_temperature_properties /* extended properties       */
2921 };
2922 
2923 GX_CONST GX_STUDIO_WIDGET weather_base_city_name_define =
2924 {
2925     "city_name",
2926     GX_TYPE_PROMPT,                          /* widget type                    */
2927     ID_TITLE,                                /* widget id                      */
2928     #if defined(GX_WIDGET_USER_DATA)
2929     0,                                       /* user data                      */
2930     #endif
2931     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
2932     0,                                       /* status flags                   */
2933     sizeof(GX_PROMPT),                       /* control block size             */
2934     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2935     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2936     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
2937     gx_studio_prompt_create,                 /* create function                */
2938     GX_NULL,                                 /* drawing function override      */
2939     GX_NULL,                                 /* event function override        */
2940     {221, 114, 424, 155},                    /* widget size                    */
2941     &weather_base_temperature_define,        /* next widget definition         */
2942     GX_NULL,                                 /* no child widgets               */
2943     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_city_name), /* control block */
2944     (void *) &weather_base_city_name_properties /* extended properties         */
2945 };
2946 
2947 GX_CONST GX_STUDIO_WIDGET weather_base_window_bg_define =
2948 {
2949     "window_bg",
2950     GX_TYPE_WINDOW,                          /* widget type                    */
2951     ID_WEATHER_BG,                           /* widget id                      */
2952     #if defined(GX_WIDGET_USER_DATA)
2953     0,                                       /* user data                      */
2954     #endif
2955     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TILE_WALLPAPER,   /* style flags */
2956     0,                                       /* status flags                   */
2957     sizeof(GX_WINDOW),                       /* control block size             */
2958     GX_COLOR_ID_BLACK,                       /* normal color id                */
2959     GX_COLOR_ID_BLACK,                       /* selected color id              */
2960     GX_COLOR_ID_BLACK,                       /* disabled color id              */
2961     gx_studio_window_create,                 /* create function                */
2962     GX_NULL,                                 /* drawing function override      */
2963     GX_NULL,                                 /* event function override        */
2964     {21, 90, 620, 384},                      /* widget size                    */
2965     &weather_base_city_name_define,          /* next widget definition         */
2966     GX_NULL,                                 /* no child widgets               */
2967     offsetof(WEATHER_BASE_CONTROL_BLOCK, weather_base_window_bg), /* control block */
2968     (void *) &weather_base_window_bg_properties /* extended properties         */
2969 };
2970 
2971 GX_CONST GX_STUDIO_WIDGET weather_base_define =
2972 {
2973     "weather_base",
2974     GX_TYPE_WINDOW,                          /* widget type                    */
2975     GX_ID_NONE,                              /* widget id                      */
2976     #if defined(GX_WIDGET_USER_DATA)
2977     0,                                       /* user data                      */
2978     #endif
2979     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
2980     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2981     sizeof(WEATHER_BASE_CONTROL_BLOCK),      /* control block size             */
2982     GX_COLOR_ID_TEXT,                        /* normal color id                */
2983     GX_COLOR_ID_TEXT,                        /* selected color id              */
2984     GX_COLOR_ID_TEXT,                        /* disabled color id              */
2985     gx_studio_window_create,                 /* create function                */
2986     GX_NULL,                                 /* drawing function override      */
2987     GX_NULL,                                 /* event function override        */
2988     {21, 90, 631, 384},                      /* widget size                    */
2989     GX_NULL,                                 /* next widget                    */
2990     &weather_base_window_bg_define,          /* child widget                   */
2991     0,                                       /* control block                  */
2992     (void *) &weather_base_properties        /* extended properties            */
2993 };
2994 GX_WINDOW_PROPERTIES passcode_screen_properties =
2995 {
2996     GX_PIXELMAP_ID_OVERLAY_PASSCODE_BG       /* wallpaper pixelmap id          */
2997 };
2998 GX_ICON_PROPERTIES passcode_screen_passcode_1_properties =
2999 {
3000     GX_PIXELMAP_ID_PASSCODE_ASTERIC,         /* normal pixelmap id             */
3001     0                                        /* selected pixelmap id           */
3002 };
3003 GX_ICON_PROPERTIES passcode_screen_passcode_4_properties =
3004 {
3005     GX_PIXELMAP_ID_PASSCODE_ASTERIC,         /* normal pixelmap id             */
3006     0                                        /* selected pixelmap id           */
3007 };
3008 GX_ICON_PROPERTIES passcode_screen_passcode_3_properties =
3009 {
3010     GX_PIXELMAP_ID_PASSCODE_ASTERIC,         /* normal pixelmap id             */
3011     0                                        /* selected pixelmap id           */
3012 };
3013 GX_ICON_PROPERTIES passcode_screen_passcode_2_properties =
3014 {
3015     GX_PIXELMAP_ID_PASSCODE_ASTERIC,         /* normal pixelmap id             */
3016     0                                        /* selected pixelmap id           */
3017 };
3018 GX_WINDOW_PROPERTIES passcode_screen_num_pad_properties =
3019 {
3020     0                                        /* wallpaper pixelmap id          */
3021 };
3022 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_num_0_properties =
3023 {
3024     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3025     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3026     0                                        /* disabled pixelmap id           */
3027 };
3028 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_10_properties =
3029 {
3030     GX_STRING_ID_STRING_80,                  /* string id                      */
3031     GX_FONT_ID_NORMAL,                       /* font id                        */
3032     GX_COLOR_ID_TEXT,                        /* normal text color              */
3033     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3034     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3035 };
3036 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_num_1_properties =
3037 {
3038     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3039     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3040     0                                        /* disabled pixelmap id           */
3041 };
3042 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_properties =
3043 {
3044     GX_STRING_ID_STRING_70,                  /* string id                      */
3045     GX_FONT_ID_NORMAL,                       /* font id                        */
3046     GX_COLOR_ID_TEXT,                        /* normal text color              */
3047     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3048     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3049 };
3050 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_num_2_properties =
3051 {
3052     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3053     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3054     0                                        /* disabled pixelmap id           */
3055 };
3056 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_1_properties =
3057 {
3058     GX_STRING_ID_STRING_71,                  /* string id                      */
3059     GX_FONT_ID_NORMAL,                       /* font id                        */
3060     GX_COLOR_ID_TEXT,                        /* normal text color              */
3061     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3062     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3063 };
3064 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_num_3_properties =
3065 {
3066     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3067     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3068     0                                        /* disabled pixelmap id           */
3069 };
3070 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_2_properties =
3071 {
3072     GX_STRING_ID_STRING_72,                  /* string id                      */
3073     GX_FONT_ID_NORMAL,                       /* font id                        */
3074     GX_COLOR_ID_TEXT,                        /* normal text color              */
3075     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3076     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3077 };
3078 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_num_4_properties =
3079 {
3080     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3081     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3082     0                                        /* disabled pixelmap id           */
3083 };
3084 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_3_properties =
3085 {
3086     GX_STRING_ID_STRING_73,                  /* string id                      */
3087     GX_FONT_ID_NORMAL,                       /* font id                        */
3088     GX_COLOR_ID_TEXT,                        /* normal text color              */
3089     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3090     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3091 };
3092 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_num_5_properties =
3093 {
3094     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3095     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3096     0                                        /* disabled pixelmap id           */
3097 };
3098 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_4_properties =
3099 {
3100     GX_STRING_ID_STRING_74,                  /* string id                      */
3101     GX_FONT_ID_NORMAL,                       /* font id                        */
3102     GX_COLOR_ID_TEXT,                        /* normal text color              */
3103     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3104     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3105 };
3106 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_num_6_properties =
3107 {
3108     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3109     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3110     0                                        /* disabled pixelmap id           */
3111 };
3112 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_5_properties =
3113 {
3114     GX_STRING_ID_STRING_75,                  /* string id                      */
3115     GX_FONT_ID_NORMAL,                       /* font id                        */
3116     GX_COLOR_ID_TEXT,                        /* normal text color              */
3117     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3118     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3119 };
3120 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_num_7_properties =
3121 {
3122     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3123     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3124     0                                        /* disabled pixelmap id           */
3125 };
3126 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_6_properties =
3127 {
3128     GX_STRING_ID_STRING_76,                  /* string id                      */
3129     GX_FONT_ID_NORMAL,                       /* font id                        */
3130     GX_COLOR_ID_TEXT,                        /* normal text color              */
3131     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3132     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3133 };
3134 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_num_8_properties =
3135 {
3136     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3137     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3138     0                                        /* disabled pixelmap id           */
3139 };
3140 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_7_properties =
3141 {
3142     GX_STRING_ID_STRING_77,                  /* string id                      */
3143     GX_FONT_ID_NORMAL,                       /* font id                        */
3144     GX_COLOR_ID_TEXT,                        /* normal text color              */
3145     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3146     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3147 };
3148 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_num_9_properties =
3149 {
3150     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3151     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3152     0                                        /* disabled pixelmap id           */
3153 };
3154 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_8_properties =
3155 {
3156     GX_STRING_ID_STRING_78,                  /* string id                      */
3157     GX_FONT_ID_NORMAL,                       /* font id                        */
3158     GX_COLOR_ID_TEXT,                        /* normal text color              */
3159     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3160     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3161 };
3162 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_num_clear_properties =
3163 {
3164     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3165     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3166     0                                        /* disabled pixelmap id           */
3167 };
3168 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_9_properties =
3169 {
3170     GX_STRING_ID_STRING_81,                  /* string id                      */
3171     GX_FONT_ID_NORMAL,                       /* font id                        */
3172     GX_COLOR_ID_TEXT,                        /* normal text color              */
3173     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3174     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3175 };
3176 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_close_properties =
3177 {
3178     GX_PIXELMAP_ID_ICON_CLOSE,               /* normal pixelmap id             */
3179     GX_PIXELMAP_ID_ICON_CLOSE_ACTIVE,        /* selected pixelmap id           */
3180     0                                        /* disabled pixelmap id           */
3181 };
3182 GX_PIXELMAP_BUTTON_PROPERTIES passcode_screen_ok_properties =
3183 {
3184     GX_PIXELMAP_ID_PASSCODE_BTN,             /* normal pixelmap id             */
3185     GX_PIXELMAP_ID_PASSCODE_BTN_ACTIVE,      /* selected pixelmap id           */
3186     0                                        /* disabled pixelmap id           */
3187 };
3188 GX_PROMPT_PROPERTIES passcode_screen_prompt_11_11_properties =
3189 {
3190     GX_STRING_ID_STRING_79,                  /* string id                      */
3191     GX_FONT_ID_NORMAL,                       /* font id                        */
3192     GX_COLOR_ID_TEXT,                        /* normal text color              */
3193     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3194     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3195 };
3196 GX_PROMPT_PROPERTIES passcode_screen_title_properties =
3197 {
3198     GX_STRING_ID_ENTER_PASSCODE,             /* string id                      */
3199     GX_FONT_ID_NORMAL,                       /* font id                        */
3200     GX_COLOR_ID_TEXT,                        /* normal text color              */
3201     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
3202     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
3203 };
3204 
3205 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_10_define =
3206 {
3207     "prompt_11_10",
3208     GX_TYPE_PROMPT,                          /* widget type                    */
3209     GX_ID_NONE,                              /* widget id                      */
3210     #if defined(GX_WIDGET_USER_DATA)
3211     0,                                       /* user data                      */
3212     #endif
3213     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3214     0,                                       /* status flags                   */
3215     sizeof(GX_PROMPT),                       /* control block size             */
3216     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3217     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3218     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3219     gx_studio_prompt_create,                 /* create function                */
3220     GX_NULL,                                 /* drawing function override      */
3221     GX_NULL,                                 /* event function override        */
3222     {314, 419, 327, 441},                    /* widget size                    */
3223     GX_NULL,                                 /* no next widget                 */
3224     GX_NULL,                                 /* no child widgets               */
3225     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11_10), /* control block */
3226     (void *) &passcode_screen_prompt_11_10_properties /* extended properties   */
3227 };
3228 
3229 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_define =
3230 {
3231     "prompt_11",
3232     GX_TYPE_PROMPT,                          /* widget type                    */
3233     GX_ID_NONE,                              /* widget id                      */
3234     #if defined(GX_WIDGET_USER_DATA)
3235     0,                                       /* user data                      */
3236     #endif
3237     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3238     0,                                       /* status flags                   */
3239     sizeof(GX_PROMPT),                       /* control block size             */
3240     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3241     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3242     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3243     gx_studio_prompt_create,                 /* create function                */
3244     GX_NULL,                                 /* drawing function override      */
3245     GX_NULL,                                 /* event function override        */
3246     {113, 194, 126, 216},                    /* widget size                    */
3247     GX_NULL,                                 /* no next widget                 */
3248     GX_NULL,                                 /* no child widgets               */
3249     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11), /* control block */
3250     (void *) &passcode_screen_prompt_11_properties /* extended properties      */
3251 };
3252 
3253 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_1_define =
3254 {
3255     "prompt_11_1",
3256     GX_TYPE_PROMPT,                          /* widget type                    */
3257     GX_ID_NONE,                              /* widget id                      */
3258     #if defined(GX_WIDGET_USER_DATA)
3259     0,                                       /* user data                      */
3260     #endif
3261     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3262     0,                                       /* status flags                   */
3263     sizeof(GX_PROMPT),                       /* control block size             */
3264     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3265     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3266     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3267     gx_studio_prompt_create,                 /* create function                */
3268     GX_NULL,                                 /* drawing function override      */
3269     GX_NULL,                                 /* event function override        */
3270     {314, 194, 327, 216},                    /* widget size                    */
3271     GX_NULL,                                 /* no next widget                 */
3272     GX_NULL,                                 /* no child widgets               */
3273     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11_1), /* control block */
3274     (void *) &passcode_screen_prompt_11_1_properties /* extended properties    */
3275 };
3276 
3277 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_2_define =
3278 {
3279     "prompt_11_2",
3280     GX_TYPE_PROMPT,                          /* widget type                    */
3281     GX_ID_NONE,                              /* widget id                      */
3282     #if defined(GX_WIDGET_USER_DATA)
3283     0,                                       /* user data                      */
3284     #endif
3285     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3286     0,                                       /* status flags                   */
3287     sizeof(GX_PROMPT),                       /* control block size             */
3288     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3289     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3290     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3291     gx_studio_prompt_create,                 /* create function                */
3292     GX_NULL,                                 /* drawing function override      */
3293     GX_NULL,                                 /* event function override        */
3294     {515, 194, 528, 216},                    /* widget size                    */
3295     GX_NULL,                                 /* no next widget                 */
3296     GX_NULL,                                 /* no child widgets               */
3297     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11_2), /* control block */
3298     (void *) &passcode_screen_prompt_11_2_properties /* extended properties    */
3299 };
3300 
3301 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_3_define =
3302 {
3303     "prompt_11_3",
3304     GX_TYPE_PROMPT,                          /* widget type                    */
3305     GX_ID_NONE,                              /* widget id                      */
3306     #if defined(GX_WIDGET_USER_DATA)
3307     0,                                       /* user data                      */
3308     #endif
3309     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3310     0,                                       /* status flags                   */
3311     sizeof(GX_PROMPT),                       /* control block size             */
3312     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3313     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3314     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3315     gx_studio_prompt_create,                 /* create function                */
3316     GX_NULL,                                 /* drawing function override      */
3317     GX_NULL,                                 /* event function override        */
3318     {113, 269, 126, 291},                    /* widget size                    */
3319     GX_NULL,                                 /* no next widget                 */
3320     GX_NULL,                                 /* no child widgets               */
3321     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11_3), /* control block */
3322     (void *) &passcode_screen_prompt_11_3_properties /* extended properties    */
3323 };
3324 
3325 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_4_define =
3326 {
3327     "prompt_11_4",
3328     GX_TYPE_PROMPT,                          /* widget type                    */
3329     GX_ID_NONE,                              /* widget id                      */
3330     #if defined(GX_WIDGET_USER_DATA)
3331     0,                                       /* user data                      */
3332     #endif
3333     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3334     0,                                       /* status flags                   */
3335     sizeof(GX_PROMPT),                       /* control block size             */
3336     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3337     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3338     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3339     gx_studio_prompt_create,                 /* create function                */
3340     GX_NULL,                                 /* drawing function override      */
3341     GX_NULL,                                 /* event function override        */
3342     {314, 270, 327, 292},                    /* widget size                    */
3343     GX_NULL,                                 /* no next widget                 */
3344     GX_NULL,                                 /* no child widgets               */
3345     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11_4), /* control block */
3346     (void *) &passcode_screen_prompt_11_4_properties /* extended properties    */
3347 };
3348 
3349 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_5_define =
3350 {
3351     "prompt_11_5",
3352     GX_TYPE_PROMPT,                          /* widget type                    */
3353     GX_ID_NONE,                              /* widget id                      */
3354     #if defined(GX_WIDGET_USER_DATA)
3355     0,                                       /* user data                      */
3356     #endif
3357     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3358     0,                                       /* status flags                   */
3359     sizeof(GX_PROMPT),                       /* control block size             */
3360     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3361     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3362     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3363     gx_studio_prompt_create,                 /* create function                */
3364     GX_NULL,                                 /* drawing function override      */
3365     GX_NULL,                                 /* event function override        */
3366     {515, 270, 528, 292},                    /* widget size                    */
3367     GX_NULL,                                 /* no next widget                 */
3368     GX_NULL,                                 /* no child widgets               */
3369     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11_5), /* control block */
3370     (void *) &passcode_screen_prompt_11_5_properties /* extended properties    */
3371 };
3372 
3373 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_6_define =
3374 {
3375     "prompt_11_6",
3376     GX_TYPE_PROMPT,                          /* widget type                    */
3377     GX_ID_NONE,                              /* widget id                      */
3378     #if defined(GX_WIDGET_USER_DATA)
3379     0,                                       /* user data                      */
3380     #endif
3381     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3382     0,                                       /* status flags                   */
3383     sizeof(GX_PROMPT),                       /* control block size             */
3384     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3385     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3386     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3387     gx_studio_prompt_create,                 /* create function                */
3388     GX_NULL,                                 /* drawing function override      */
3389     GX_NULL,                                 /* event function override        */
3390     {113, 344, 126, 366},                    /* widget size                    */
3391     GX_NULL,                                 /* no next widget                 */
3392     GX_NULL,                                 /* no child widgets               */
3393     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11_6), /* control block */
3394     (void *) &passcode_screen_prompt_11_6_properties /* extended properties    */
3395 };
3396 
3397 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_7_define =
3398 {
3399     "prompt_11_7",
3400     GX_TYPE_PROMPT,                          /* widget type                    */
3401     GX_ID_NONE,                              /* widget id                      */
3402     #if defined(GX_WIDGET_USER_DATA)
3403     0,                                       /* user data                      */
3404     #endif
3405     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3406     0,                                       /* status flags                   */
3407     sizeof(GX_PROMPT),                       /* control block size             */
3408     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3409     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3410     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3411     gx_studio_prompt_create,                 /* create function                */
3412     GX_NULL,                                 /* drawing function override      */
3413     GX_NULL,                                 /* event function override        */
3414     {314, 344, 327, 366},                    /* widget size                    */
3415     GX_NULL,                                 /* no next widget                 */
3416     GX_NULL,                                 /* no child widgets               */
3417     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11_7), /* control block */
3418     (void *) &passcode_screen_prompt_11_7_properties /* extended properties    */
3419 };
3420 
3421 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_8_define =
3422 {
3423     "prompt_11_8",
3424     GX_TYPE_PROMPT,                          /* widget type                    */
3425     GX_ID_NONE,                              /* widget id                      */
3426     #if defined(GX_WIDGET_USER_DATA)
3427     0,                                       /* user data                      */
3428     #endif
3429     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3430     0,                                       /* status flags                   */
3431     sizeof(GX_PROMPT),                       /* control block size             */
3432     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3433     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3434     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3435     gx_studio_prompt_create,                 /* create function                */
3436     GX_NULL,                                 /* drawing function override      */
3437     GX_NULL,                                 /* event function override        */
3438     {515, 344, 528, 366},                    /* widget size                    */
3439     GX_NULL,                                 /* no next widget                 */
3440     GX_NULL,                                 /* no child widgets               */
3441     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11_8), /* control block */
3442     (void *) &passcode_screen_prompt_11_8_properties /* extended properties    */
3443 };
3444 
3445 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_9_define =
3446 {
3447     "prompt_11_9",
3448     GX_TYPE_PROMPT,                          /* widget type                    */
3449     GX_ID_NONE,                              /* widget id                      */
3450     #if defined(GX_WIDGET_USER_DATA)
3451     0,                                       /* user data                      */
3452     #endif
3453     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3454     0,                                       /* status flags                   */
3455     sizeof(GX_PROMPT),                       /* control block size             */
3456     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3457     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3458     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3459     gx_studio_prompt_create,                 /* create function                */
3460     GX_NULL,                                 /* drawing function override      */
3461     GX_NULL,                                 /* event function override        */
3462     {93, 420, 149, 442},                     /* widget size                    */
3463     GX_NULL,                                 /* no next widget                 */
3464     GX_NULL,                                 /* no child widgets               */
3465     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11_9), /* control block */
3466     (void *) &passcode_screen_prompt_11_9_properties /* extended properties    */
3467 };
3468 
3469 GX_CONST GX_STUDIO_WIDGET passcode_screen_prompt_11_11_define =
3470 {
3471     "prompt_11_11",
3472     GX_TYPE_PROMPT,                          /* widget type                    */
3473     GX_ID_NONE,                              /* widget id                      */
3474     #if defined(GX_WIDGET_USER_DATA)
3475     0,                                       /* user data                      */
3476     #endif
3477     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
3478     0,                                       /* status flags                   */
3479     sizeof(GX_PROMPT),                       /* control block size             */
3480     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3481     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3482     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3483     gx_studio_prompt_create,                 /* create function                */
3484     GX_NULL,                                 /* drawing function override      */
3485     GX_NULL,                                 /* event function override        */
3486     {504, 419, 534, 441},                    /* widget size                    */
3487     GX_NULL,                                 /* no next widget                 */
3488     GX_NULL,                                 /* no child widgets               */
3489     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_prompt_11_11), /* control block */
3490     (void *) &passcode_screen_prompt_11_11_properties /* extended properties   */
3491 };
3492 
3493 GX_CONST GX_STUDIO_WIDGET passcode_screen_title_define =
3494 {
3495     "title",
3496     GX_TYPE_PROMPT,                          /* widget type                    */
3497     GX_ID_NONE,                              /* widget id                      */
3498     #if defined(GX_WIDGET_USER_DATA)
3499     0,                                       /* user data                      */
3500     #endif
3501     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_COPY|GX_STYLE_TEXT_CENTER,   /* style flags */
3502     0,                                       /* status flags                   */
3503     sizeof(GX_PROMPT),                       /* control block size             */
3504     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3505     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3506     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3507     gx_studio_prompt_create,                 /* create function                */
3508     GX_NULL,                                 /* drawing function override      */
3509     GX_NULL,                                 /* event function override        */
3510     {233, 30, 412, 52},                      /* widget size                    */
3511     GX_NULL,                                 /* no next widget                 */
3512     GX_NULL,                                 /* no child widgets               */
3513     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_title), /* control block */
3514     (void *) &passcode_screen_title_properties /* extended properties          */
3515 };
3516 
3517 GX_CONST GX_STUDIO_WIDGET passcode_screen_ok_define =
3518 {
3519     "ok",
3520     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3521     ID_OK,                                   /* widget id                      */
3522     #if defined(GX_WIDGET_USER_DATA)
3523     0,                                       /* user data                      */
3524     #endif
3525     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
3526     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3527     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3528     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3529     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3530     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3531     gx_studio_pixelmap_button_create,        /* create function                */
3532     GX_NULL,                                 /* drawing function override      */
3533     GX_NULL,                                 /* event function override        */
3534     {418, 388, 625, 469},                    /* widget size                    */
3535     &passcode_screen_title_define,           /* next widget definition         */
3536     &passcode_screen_prompt_11_11_define,    /* child widget definition        */
3537     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_ok), /* control block */
3538     (void *) &passcode_screen_ok_properties  /* extended properties            */
3539 };
3540 
3541 GX_CONST GX_STUDIO_WIDGET passcode_screen_close_define =
3542 {
3543     "close",
3544     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3545     ID_CLOSE,                                /* widget id                      */
3546     #if defined(GX_WIDGET_USER_DATA)
3547     0,                                       /* user data                      */
3548     #endif
3549     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
3550     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3551     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3552     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3553     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3554     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3555     gx_studio_pixelmap_button_create,        /* create function                */
3556     GX_NULL,                                 /* drawing function override      */
3557     GX_NULL,                                 /* event function override        */
3558     {596, 31, 617, 51},                      /* widget size                    */
3559     &passcode_screen_ok_define,              /* next widget definition         */
3560     GX_NULL,                                 /* no child widgets               */
3561     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_close), /* control block */
3562     (void *) &passcode_screen_close_properties /* extended properties          */
3563 };
3564 
3565 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_clear_define =
3566 {
3567     "num_clear",
3568     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3569     ID_CLEAR,                                /* widget id                      */
3570     #if defined(GX_WIDGET_USER_DATA)
3571     0,                                       /* user data                      */
3572     #endif
3573     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
3574     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3575     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3576     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3577     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3578     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3579     gx_studio_pixelmap_button_create,        /* create function                */
3580     GX_NULL,                                 /* drawing function override      */
3581     GX_NULL,                                 /* event function override        */
3582     {16, 388, 223, 469},                     /* widget size                    */
3583     &passcode_screen_close_define,           /* next widget definition         */
3584     &passcode_screen_prompt_11_9_define,     /* child widget definition        */
3585     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_clear), /* control block */
3586     (void *) &passcode_screen_num_clear_properties /* extended properties      */
3587 };
3588 
3589 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_9_define =
3590 {
3591     "num_9",
3592     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3593     ID_NUM_9,                                /* widget id                      */
3594     #if defined(GX_WIDGET_USER_DATA)
3595     0,                                       /* user data                      */
3596     #endif
3597     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
3598     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3599     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3600     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3601     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3602     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3603     gx_studio_pixelmap_button_create,        /* create function                */
3604     GX_NULL,                                 /* drawing function override      */
3605     GX_NULL,                                 /* event function override        */
3606     {418, 313, 625, 394},                    /* widget size                    */
3607     &passcode_screen_num_clear_define,       /* next widget definition         */
3608     &passcode_screen_prompt_11_8_define,     /* child widget definition        */
3609     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_9), /* control block */
3610     (void *) &passcode_screen_num_9_properties /* extended properties          */
3611 };
3612 
3613 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_8_define =
3614 {
3615     "num_8",
3616     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3617     ID_NUM_8,                                /* widget id                      */
3618     #if defined(GX_WIDGET_USER_DATA)
3619     0,                                       /* user data                      */
3620     #endif
3621     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
3622     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3623     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3624     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3625     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3626     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3627     gx_studio_pixelmap_button_create,        /* create function                */
3628     GX_NULL,                                 /* drawing function override      */
3629     GX_NULL,                                 /* event function override        */
3630     {217, 313, 424, 394},                    /* widget size                    */
3631     &passcode_screen_num_9_define,           /* next widget definition         */
3632     &passcode_screen_prompt_11_7_define,     /* child widget definition        */
3633     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_8), /* control block */
3634     (void *) &passcode_screen_num_8_properties /* extended properties          */
3635 };
3636 
3637 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_7_define =
3638 {
3639     "num_7",
3640     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3641     ID_NUM_7,                                /* widget id                      */
3642     #if defined(GX_WIDGET_USER_DATA)
3643     0,                                       /* user data                      */
3644     #endif
3645     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
3646     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3647     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3648     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3649     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3650     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3651     gx_studio_pixelmap_button_create,        /* create function                */
3652     GX_NULL,                                 /* drawing function override      */
3653     GX_NULL,                                 /* event function override        */
3654     {16, 313, 223, 394},                     /* widget size                    */
3655     &passcode_screen_num_8_define,           /* next widget definition         */
3656     &passcode_screen_prompt_11_6_define,     /* child widget definition        */
3657     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_7), /* control block */
3658     (void *) &passcode_screen_num_7_properties /* extended properties          */
3659 };
3660 
3661 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_6_define =
3662 {
3663     "num_6",
3664     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3665     ID_NUM_6,                                /* 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_ENABLED,   /* style flags */
3670     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3671     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3672     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3673     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3674     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3675     gx_studio_pixelmap_button_create,        /* create function                */
3676     GX_NULL,                                 /* drawing function override      */
3677     GX_NULL,                                 /* event function override        */
3678     {418, 239, 625, 320},                    /* widget size                    */
3679     &passcode_screen_num_7_define,           /* next widget definition         */
3680     &passcode_screen_prompt_11_5_define,     /* child widget definition        */
3681     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_6), /* control block */
3682     (void *) &passcode_screen_num_6_properties /* extended properties          */
3683 };
3684 
3685 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_5_define =
3686 {
3687     "num_5",
3688     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3689     ID_NUM_5,                                /* widget id                      */
3690     #if defined(GX_WIDGET_USER_DATA)
3691     0,                                       /* user data                      */
3692     #endif
3693     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
3694     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3695     sizeof(GX_PIXELMAP_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_DISABLED_FILL,               /* disabled color id              */
3699     gx_studio_pixelmap_button_create,        /* create function                */
3700     GX_NULL,                                 /* drawing function override      */
3701     GX_NULL,                                 /* event function override        */
3702     {217, 239, 424, 320},                    /* widget size                    */
3703     &passcode_screen_num_6_define,           /* next widget definition         */
3704     &passcode_screen_prompt_11_4_define,     /* child widget definition        */
3705     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_5), /* control block */
3706     (void *) &passcode_screen_num_5_properties /* extended properties          */
3707 };
3708 
3709 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_4_define =
3710 {
3711     "num_4",
3712     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3713     ID_NUM_4,                                /* widget id                      */
3714     #if defined(GX_WIDGET_USER_DATA)
3715     0,                                       /* user data                      */
3716     #endif
3717     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
3718     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3719     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3720     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3721     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3722     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3723     gx_studio_pixelmap_button_create,        /* create function                */
3724     GX_NULL,                                 /* drawing function override      */
3725     GX_NULL,                                 /* event function override        */
3726     {16, 238, 223, 319},                     /* widget size                    */
3727     &passcode_screen_num_5_define,           /* next widget definition         */
3728     &passcode_screen_prompt_11_3_define,     /* child widget definition        */
3729     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_4), /* control block */
3730     (void *) &passcode_screen_num_4_properties /* extended properties          */
3731 };
3732 
3733 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_3_define =
3734 {
3735     "num_3",
3736     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3737     ID_NUM_3,                                /* 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_ENABLED,   /* style flags */
3742     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3743     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3744     GX_COLOR_ID_TEXT,                        /* normal color id                */
3745     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3746     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3747     gx_studio_pixelmap_button_create,        /* create function                */
3748     GX_NULL,                                 /* drawing function override      */
3749     GX_NULL,                                 /* event function override        */
3750     {418, 163, 625, 244},                    /* widget size                    */
3751     &passcode_screen_num_4_define,           /* next widget definition         */
3752     &passcode_screen_prompt_11_2_define,     /* child widget definition        */
3753     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_3), /* control block */
3754     (void *) &passcode_screen_num_3_properties /* extended properties          */
3755 };
3756 
3757 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_2_define =
3758 {
3759     "num_2",
3760     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3761     ID_NUM_2,                                /* 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_ENABLED,   /* style flags */
3766     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3767     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3768     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3769     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3770     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3771     gx_studio_pixelmap_button_create,        /* create function                */
3772     GX_NULL,                                 /* drawing function override      */
3773     GX_NULL,                                 /* event function override        */
3774     {217, 163, 424, 244},                    /* widget size                    */
3775     &passcode_screen_num_3_define,           /* next widget definition         */
3776     &passcode_screen_prompt_11_1_define,     /* child widget definition        */
3777     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_2), /* control block */
3778     (void *) &passcode_screen_num_2_properties /* extended properties          */
3779 };
3780 
3781 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_1_define =
3782 {
3783     "num_1",
3784     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3785     ID_NUM_1,                                /* 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_ENABLED,   /* style flags */
3790     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3791     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3792     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3793     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3794     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3795     gx_studio_pixelmap_button_create,        /* create function                */
3796     GX_NULL,                                 /* drawing function override      */
3797     GX_NULL,                                 /* event function override        */
3798     {16, 163, 223, 244},                     /* widget size                    */
3799     &passcode_screen_num_2_define,           /* next widget definition         */
3800     &passcode_screen_prompt_11_define,       /* child widget definition        */
3801     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_1), /* control block */
3802     (void *) &passcode_screen_num_1_properties /* extended properties          */
3803 };
3804 
3805 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_0_define =
3806 {
3807     "num_0",
3808     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
3809     ID_NUM_0,                                /* 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_ENABLED,   /* style flags */
3814     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
3815     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
3816     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
3817     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
3818     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3819     gx_studio_pixelmap_button_create,        /* create function                */
3820     GX_NULL,                                 /* drawing function override      */
3821     GX_NULL,                                 /* event function override        */
3822     {217, 388, 424, 469},                    /* widget size                    */
3823     &passcode_screen_num_1_define,           /* next widget definition         */
3824     &passcode_screen_prompt_11_10_define,    /* child widget definition        */
3825     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_0), /* control block */
3826     (void *) &passcode_screen_num_0_properties /* extended properties          */
3827 };
3828 
3829 GX_CONST GX_STUDIO_WIDGET passcode_screen_num_pad_define =
3830 {
3831     "num_pad",
3832     GX_TYPE_WINDOW,                          /* 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,   /* style flags                */
3838     0,                                       /* status flags                   */
3839     sizeof(GX_WINDOW),                       /* control block size             */
3840     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
3841     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
3842     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3843     gx_studio_window_create,                 /* create function                */
3844     GX_NULL,                                 /* drawing function override      */
3845     GX_NULL,                                 /* event function override        */
3846     {9, 11, 633, 472},                       /* widget size                    */
3847     GX_NULL,                                 /* no next widget                 */
3848     &passcode_screen_num_0_define,           /* child widget definition        */
3849     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_num_pad), /* control block */
3850     (void *) &passcode_screen_num_pad_properties /* extended properties        */
3851 };
3852 
3853 GX_CONST GX_STUDIO_WIDGET passcode_screen_passcode_2_define =
3854 {
3855     "passcode_2",
3856     GX_TYPE_ICON,                            /* 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_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
3862     0,                                       /* status flags                   */
3863     sizeof(GX_ICON),                         /* 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_DISABLED_FILL,               /* disabled color id              */
3867     gx_studio_icon_create,                   /* create function                */
3868     GX_NULL,                                 /* drawing function override      */
3869     GX_NULL,                                 /* event function override        */
3870     {258, 78, 317, 137},                     /* widget size                    */
3871     &passcode_screen_num_pad_define,         /* next widget definition         */
3872     GX_NULL,                                 /* no child widgets               */
3873     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_passcode_2), /* control block */
3874     (void *) &passcode_screen_passcode_2_properties /* extended properties     */
3875 };
3876 
3877 GX_CONST GX_STUDIO_WIDGET passcode_screen_passcode_3_define =
3878 {
3879     "passcode_3",
3880     GX_TYPE_ICON,                            /* 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_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
3886     0,                                       /* status flags                   */
3887     sizeof(GX_ICON),                         /* 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_DISABLED_FILL,               /* disabled color id              */
3891     gx_studio_icon_create,                   /* create function                */
3892     GX_NULL,                                 /* drawing function override      */
3893     GX_NULL,                                 /* event function override        */
3894     {322, 78, 381, 137},                     /* widget size                    */
3895     &passcode_screen_passcode_2_define,      /* next widget definition         */
3896     GX_NULL,                                 /* no child widgets               */
3897     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_passcode_3), /* control block */
3898     (void *) &passcode_screen_passcode_3_properties /* extended properties     */
3899 };
3900 
3901 GX_CONST GX_STUDIO_WIDGET passcode_screen_passcode_4_define =
3902 {
3903     "passcode_4",
3904     GX_TYPE_ICON,                            /* widget type                    */
3905     GX_ID_NONE,                              /* widget id                      */
3906     #if defined(GX_WIDGET_USER_DATA)
3907     0,                                       /* user data                      */
3908     #endif
3909     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
3910     0,                                       /* status flags                   */
3911     sizeof(GX_ICON),                         /* control block size             */
3912     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
3913     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
3914     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
3915     gx_studio_icon_create,                   /* create function                */
3916     GX_NULL,                                 /* drawing function override      */
3917     GX_NULL,                                 /* event function override        */
3918     {386, 78, 445, 137},                     /* widget size                    */
3919     &passcode_screen_passcode_3_define,      /* next widget definition         */
3920     GX_NULL,                                 /* no child widgets               */
3921     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_passcode_4), /* control block */
3922     (void *) &passcode_screen_passcode_4_properties /* extended properties     */
3923 };
3924 
3925 GX_CONST GX_STUDIO_WIDGET passcode_screen_passcode_1_define =
3926 {
3927     "passcode_1",
3928     GX_TYPE_ICON,                            /* widget type                    */
3929     GX_ID_NONE,                              /* 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_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
3934     0,                                       /* 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_DISABLED_FILL,               /* disabled color id              */
3939     gx_studio_icon_create,                   /* create function                */
3940     GX_NULL,                                 /* drawing function override      */
3941     GX_NULL,                                 /* event function override        */
3942     {195, 78, 254, 137},                     /* widget size                    */
3943     &passcode_screen_passcode_4_define,      /* next widget definition         */
3944     GX_NULL,                                 /* no child widgets               */
3945     offsetof(PASSCODE_SCREEN_CONTROL_BLOCK, passcode_screen_passcode_1), /* control block */
3946     (void *) &passcode_screen_passcode_1_properties /* extended properties     */
3947 };
3948 
3949 GX_ANIMATION_INFO passcode_screen_animation_1 = {
3950     (GX_WIDGET *) &passcode_screen.passcode_screen_num_pad,
3951     (GX_WIDGET *) &passcode_screen,
3952     GX_NULL,
3953     GX_ANIMATION_TRANSLATE|GX_ANIMATION_CIRC_EASE_OUT, 0, 0, 1,
3954     {9, -400}, {9, 11}, 255, 255, 20
3955 };
3956 
3957 
3958 GX_ANIMATION_INFO passcode_screen_animation_2 = {
3959     (GX_WIDGET *) &passcode_screen.passcode_screen_passcode_1,
3960     (GX_WIDGET *) &passcode_screen,
3961     GX_NULL,
3962     GX_ANIMATION_TRANSLATE|GX_ANIMATION_CIRC_EASE_OUT, 0, 20, 1,
3963     {195, -60}, {195, 78}, 255, 255, 20
3964 };
3965 
3966 
3967 GX_ANIMATION_INFO passcode_screen_animation_3 = {
3968     (GX_WIDGET *) &passcode_screen.passcode_screen_passcode_2,
3969     (GX_WIDGET *) &passcode_screen,
3970     GX_NULL,
3971     GX_ANIMATION_TRANSLATE|GX_ANIMATION_CIRC_EASE_OUT, 0, 25, 1,
3972     {258, -60}, {258, 78}, 255, 255, 20
3973 };
3974 
3975 
3976 GX_ANIMATION_INFO passcode_screen_animation_4 = {
3977     (GX_WIDGET *) &passcode_screen.passcode_screen_passcode_3,
3978     (GX_WIDGET *) &passcode_screen,
3979     GX_NULL,
3980     GX_ANIMATION_TRANSLATE|GX_ANIMATION_CIRC_EASE_OUT, 0, 30, 1,
3981     {322, -60}, {322, 78}, 255, 255, 20
3982 };
3983 
3984 
3985 GX_ANIMATION_INFO passcode_screen_animation_5 = {
3986     (GX_WIDGET *) &passcode_screen.passcode_screen_passcode_4,
3987     (GX_WIDGET *) &passcode_screen,
3988     GX_NULL,
3989     GX_ANIMATION_TRANSLATE|GX_ANIMATION_CIRC_EASE_OUT, 0, 35, 1,
3990     {386, -60}, {386, 78}, 255, 255, 20
3991 };
3992 
3993 
3994 GX_STUDIO_ACTION passcode_screen_on_gx_event_showactions[6] = {
3995     {GX_ACTION_TYPE_ANIMATION, 0, &passcode_screen, &passcode_screen.passcode_screen_num_pad, &passcode_screen_animation_1},
3996     {GX_ACTION_TYPE_ANIMATION, 0, &passcode_screen, &passcode_screen.passcode_screen_passcode_1, &passcode_screen_animation_2},
3997     {GX_ACTION_TYPE_ANIMATION, 0, &passcode_screen, &passcode_screen.passcode_screen_passcode_2, &passcode_screen_animation_3},
3998     {GX_ACTION_TYPE_ANIMATION, 0, &passcode_screen, &passcode_screen.passcode_screen_passcode_3, &passcode_screen_animation_4},
3999     {GX_ACTION_TYPE_ANIMATION, 0, &passcode_screen, &passcode_screen.passcode_screen_passcode_4, &passcode_screen_animation_5},
4000     {0, 0, GX_NULL, GX_NULL, GX_NULL}
4001 };
4002 
4003 static GX_STUDIO_EVENT_ENTRY gx_studio_passcode_screen_event_table[] = {
4004     { GX_EVENT_SHOW, 0, passcode_screen_on_gx_event_showactions},
4005     {0, 0, GX_NULL}
4006 };
4007 
4008 GX_STUDIO_EVENT_PROCESS passcode_screen_event_chain = {gx_studio_passcode_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))passcode_screen_event_process};
gx_studio_passcode_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)4009 static UINT gx_studio_passcode_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
4010 {
4011     return (gx_studio_auto_event_handler(target, event_ptr, &passcode_screen_event_chain));
4012 }
4013 
4014 
4015 GX_CONST GX_STUDIO_WIDGET passcode_screen_define =
4016 {
4017     "passcode_screen",
4018     GX_TYPE_WINDOW,                          /* widget type                    */
4019     GX_ID_NONE,                              /* widget id                      */
4020     #if defined(GX_WIDGET_USER_DATA)
4021     0,                                       /* user data                      */
4022     #endif
4023     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TILE_WALLPAPER,   /* style flags */
4024     0,                                       /* status flags                   */
4025     sizeof(PASSCODE_SCREEN_CONTROL_BLOCK),   /* control block size             */
4026     GX_COLOR_ID_BLACK,                       /* normal color id                */
4027     GX_COLOR_ID_BLACK,                       /* selected color id              */
4028     GX_COLOR_ID_BLACK,                       /* disabled color id              */
4029     gx_studio_window_create,                 /* create function                */
4030     GX_NULL,                                 /* drawing function override      */
4031     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_passcode_screen_event_process, /* event function override */
4032     {0, 0, 639, 479},                        /* widget size                    */
4033     GX_NULL,                                 /* next widget                    */
4034     &passcode_screen_passcode_1_define,      /* child widget                   */
4035     0,                                       /* control block                  */
4036     (void *) &passcode_screen_properties     /* extended properties            */
4037 };
4038 GX_WINDOW_PROPERTIES controller_base_properties =
4039 {
4040     GX_PIXELMAP_ID_BOX_60                    /* wallpaper pixelmap id          */
4041 };
4042 GX_PROMPT_PROPERTIES controller_base_title_properties =
4043 {
4044     GX_STRING_ID_LOWER_DECK_DOOR,            /* string id                      */
4045     GX_FONT_ID_PROMPT,                       /* font id                        */
4046     GX_COLOR_ID_WHITE,                       /* normal text color              */
4047     GX_COLOR_ID_WHITE,                       /* selected text color            */
4048     GX_COLOR_ID_WHITE                        /* disabled text color            */
4049 };
4050 
4051 GX_CONST GX_STUDIO_WIDGET controller_base_title_define =
4052 {
4053     "title",
4054     GX_TYPE_PROMPT,                          /* widget type                    */
4055     ID_TITLE,                                /* widget id                      */
4056     #if defined(GX_WIDGET_USER_DATA)
4057     0,                                       /* user data                      */
4058     #endif
4059     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
4060     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4061     sizeof(GX_PROMPT),                       /* control block size             */
4062     GX_COLOR_ID_WHITE,                       /* normal color id                */
4063     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4064     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4065     gx_studio_prompt_create,                 /* create function                */
4066     GX_NULL,                                 /* drawing function override      */
4067     GX_NULL,                                 /* event function override        */
4068     {345, 103, 491, 120},                    /* widget size                    */
4069     GX_NULL,                                 /* no next widget                 */
4070     GX_NULL,                                 /* no child widgets               */
4071     offsetof(CONTROLLER_BASE_CONTROL_BLOCK, controller_base_title), /* control block */
4072     (void *) &controller_base_title_properties /* extended properties          */
4073 };
4074 
4075 GX_CONST GX_STUDIO_WIDGET controller_base_define =
4076 {
4077     "controller_base",
4078     GX_TYPE_WINDOW,                          /* widget type                    */
4079     GX_ID_NONE,                              /* widget id                      */
4080     #if defined(GX_WIDGET_USER_DATA)
4081     0,                                       /* user data                      */
4082     #endif
4083     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TILE_WALLPAPER,   /* style flags */
4084     0,                                       /* status flags                   */
4085     sizeof(CONTROLLER_BASE_CONTROL_BLOCK),   /* control block size             */
4086     GX_COLOR_ID_BLACK,                       /* normal color id                */
4087     GX_COLOR_ID_BLACK,                       /* selected color id              */
4088     GX_COLOR_ID_BLACK,                       /* disabled color id              */
4089     gx_studio_window_create,                 /* create function                */
4090     GX_NULL,                                 /* drawing function override      */
4091     GX_NULL,                                 /* event function override        */
4092     {323, 89, 619, 383},                     /* widget size                    */
4093     GX_NULL,                                 /* next widget                    */
4094     &controller_base_title_define,           /* child widget                   */
4095     0,                                       /* control block                  */
4096     (void *) &controller_base_properties     /* extended properties            */
4097 };
4098 GX_WINDOW_PROPERTIES screen_base_properties =
4099 {
4100     0                                        /* wallpaper pixelmap id          */
4101 };
4102 GX_PIXELMAP_BUTTON_PROPERTIES screen_base_button_light_properties =
4103 {
4104     GX_PIXELMAP_ID_FOOTER_MENU_BTN,          /* normal pixelmap id             */
4105     GX_PIXELMAP_ID_FOOTER_MENU_BTN_ACTIVE,   /* selected pixelmap id           */
4106     0                                        /* disabled pixelmap id           */
4107 };
4108 GX_PIXELMAP_BUTTON_PROPERTIES screen_base_light_properties =
4109 {
4110     GX_PIXELMAP_ID_FOOTER_MENU_ICON_LIGHT,   /* normal pixelmap id             */
4111     GX_PIXELMAP_ID_FOOTER_MENU_ICON_LIGHT_HOVER, /* selected pixelmap id       */
4112     0                                        /* disabled pixelmap id           */
4113 };
4114 GX_PROMPT_PROPERTIES screen_base_light_text_properties =
4115 {
4116     GX_STRING_ID_STRING_2,                   /* string id                      */
4117     GX_FONT_ID_TINY,                         /* font id                        */
4118     GX_COLOR_ID_TEXT,                        /* normal text color              */
4119     GX_COLOR_ID_WHITE,                       /* selected text color            */
4120     GX_COLOR_ID_GRAY                         /* disabled text color            */
4121 };
4122 GX_PIXELMAP_BUTTON_PROPERTIES screen_base_button_thermostat_properties =
4123 {
4124     GX_PIXELMAP_ID_FOOTER_MENU_BTN,          /* normal pixelmap id             */
4125     GX_PIXELMAP_ID_FOOTER_MENU_BTN_ACTIVE,   /* selected pixelmap id           */
4126     0                                        /* disabled pixelmap id           */
4127 };
4128 GX_PIXELMAP_BUTTON_PROPERTIES screen_base_thermostat_properties =
4129 {
4130     GX_PIXELMAP_ID_FOOTER_MENU_ICON_THERMOSTAT, /* normal pixelmap id          */
4131     GX_PIXELMAP_ID_FOOTER_MENU_ICON_THERMOSTAT_ACTIVE, /* selected pixelmap id */
4132     0                                        /* disabled pixelmap id           */
4133 };
4134 GX_PROMPT_PROPERTIES screen_base_thermostat_text_properties =
4135 {
4136     GX_STRING_ID_STRING_3,                   /* string id                      */
4137     GX_FONT_ID_TINY,                         /* font id                        */
4138     GX_COLOR_ID_TEXT,                        /* normal text color              */
4139     GX_COLOR_ID_WHITE,                       /* selected text color            */
4140     GX_COLOR_ID_GRAY                         /* disabled text color            */
4141 };
4142 GX_PIXELMAP_BUTTON_PROPERTIES screen_base_button_locks_properties =
4143 {
4144     GX_PIXELMAP_ID_FOOTER_MENU_BTN,          /* normal pixelmap id             */
4145     GX_PIXELMAP_ID_FOOTER_MENU_BTN_ACTIVE,   /* selected pixelmap id           */
4146     0                                        /* disabled pixelmap id           */
4147 };
4148 GX_PIXELMAP_BUTTON_PROPERTIES screen_base_locks_properties =
4149 {
4150     GX_PIXELMAP_ID_FOOTER_MENU_ICON_LOCK,    /* normal pixelmap id             */
4151     GX_PIXELMAP_ID_FOOTER_MENU_ICON_LOCK_ACTIVE, /* selected pixelmap id       */
4152     0                                        /* disabled pixelmap id           */
4153 };
4154 GX_PROMPT_PROPERTIES screen_base_locks_text_properties =
4155 {
4156     GX_STRING_ID_STRING_4,                   /* string id                      */
4157     GX_FONT_ID_TINY,                         /* font id                        */
4158     GX_COLOR_ID_TEXT,                        /* normal text color              */
4159     GX_COLOR_ID_WHITE,                       /* selected text color            */
4160     GX_COLOR_ID_GRAY                         /* disabled text color            */
4161 };
4162 GX_PIXELMAP_BUTTON_PROPERTIES screen_base_button_weather_properties =
4163 {
4164     GX_PIXELMAP_ID_FOOTER_MENU_BTN,          /* normal pixelmap id             */
4165     GX_PIXELMAP_ID_FOOTER_MENU_BTN_ACTIVE,   /* selected pixelmap id           */
4166     0                                        /* disabled pixelmap id           */
4167 };
4168 GX_PROMPT_PROPERTIES screen_base_weather_text_properties =
4169 {
4170     GX_STRING_ID_STRING_5,                   /* string id                      */
4171     GX_FONT_ID_TINY,                         /* font id                        */
4172     GX_COLOR_ID_TEXT,                        /* normal text color              */
4173     GX_COLOR_ID_WHITE,                       /* selected text color            */
4174     GX_COLOR_ID_GRAY                         /* disabled text color            */
4175 };
4176 GX_PIXELMAP_BUTTON_PROPERTIES screen_base_weather_properties =
4177 {
4178     GX_PIXELMAP_ID_FOOTER_MENU_ICON_WEATHER, /* normal pixelmap id             */
4179     GX_PIXELMAP_ID_FOOTER_MENU_ICON_WEATHER_ACTIVE, /* selected pixelmap id    */
4180     0                                        /* disabled pixelmap id           */
4181 };
4182 GX_PIXELMAP_BUTTON_PROPERTIES screen_base_home_properties =
4183 {
4184     GX_PIXELMAP_ID_FOOTER_ICON_HOME,         /* normal pixelmap id             */
4185     GX_PIXELMAP_ID_FOOTER_ICON_HOME_ACTIVE,  /* selected pixelmap id           */
4186     0                                        /* disabled pixelmap id           */
4187 };
4188 GX_PIXELMAP_BUTTON_PROPERTIES screen_base_setting_properties =
4189 {
4190     GX_PIXELMAP_ID_FOOTER_ICON_SETTINGS,     /* normal pixelmap id             */
4191     GX_PIXELMAP_ID_FOOTER_ICON_SETTINGS_ACTIVE, /* selected pixelmap id        */
4192     0                                        /* disabled pixelmap id           */
4193 };
4194 GX_WINDOW_PROPERTIES screen_base_slide_win_properties =
4195 {
4196     0                                        /* wallpaper pixelmap id          */
4197 };
4198 GX_PIXELMAP_BUTTON_PROPERTIES screen_base_add_properties =
4199 {
4200     GX_PIXELMAP_ID_FOOTER_ADD_CIRCLE_ICON,   /* normal pixelmap id             */
4201     GX_PIXELMAP_ID_FOOTER_ADD_CIRCLE_ICON_ACTIVE, /* selected pixelmap id      */
4202     0                                        /* disabled pixelmap id           */
4203 };
4204 GX_PROMPT_PROPERTIES screen_base_add_text_properties =
4205 {
4206     GX_STRING_ID_ADD_LIGHT,                  /* string id                      */
4207     GX_FONT_ID_SMALL,                        /* font id                        */
4208     GX_COLOR_ID_TEXT,                        /* normal text color              */
4209     GX_COLOR_ID_WHITE,                       /* selected text color            */
4210     GX_COLOR_ID_DISABLED                     /* disabled text color            */
4211 };
4212 GX_ICON_PROPERTIES screen_base_icon_6_properties =
4213 {
4214     GX_PIXELMAP_ID_FOOTER_ADD_CIRCLE_BG,     /* normal pixelmap id             */
4215     0                                        /* selected pixelmap id           */
4216 };
4217 
4218 GX_CONST GX_STUDIO_WIDGET screen_base_light_text_define =
4219 {
4220     "light_text",
4221     GX_TYPE_PROMPT,                          /* widget type                    */
4222     GX_ID_NONE,                              /* widget id                      */
4223     #if defined(GX_WIDGET_USER_DATA)
4224     0,                                       /* user data                      */
4225     #endif
4226     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4227     0,                                       /* status flags                   */
4228     sizeof(GX_PROMPT),                       /* control block size             */
4229     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4230     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4231     GX_COLOR_ID_DISABLED,                    /* disabled color id              */
4232     gx_studio_prompt_create,                 /* create function                */
4233     GX_NULL,                                 /* drawing function override      */
4234     GX_NULL,                                 /* event function override        */
4235     {40, 441, 69, 450},                      /* widget size                    */
4236     GX_NULL,                                 /* no next widget                 */
4237     GX_NULL,                                 /* no child widgets               */
4238     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_light_text), /* control block */
4239     (void *) &screen_base_light_text_properties /* extended properties         */
4240 };
4241 
4242 GX_CONST GX_STUDIO_WIDGET screen_base_light_define =
4243 {
4244     "light",
4245     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
4246     GX_ID_NONE,                              /* widget id                      */
4247     #if defined(GX_WIDGET_USER_DATA)
4248     0,                                       /* user data                      */
4249     #endif
4250     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_TOP,   /* style flags */
4251     0,                                       /* status flags                   */
4252     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
4253     GX_COLOR_ID_WHITE,                       /* normal color id                */
4254     GX_COLOR_ID_WHITE,                       /* selected color id              */
4255     GX_COLOR_ID_WHITE,                       /* disabled color id              */
4256     gx_studio_pixelmap_button_create,        /* create function                */
4257     GX_NULL,                                 /* drawing function override      */
4258     GX_NULL,                                 /* event function override        */
4259     {36, 402, 75, 447},                      /* widget size                    */
4260     &screen_base_light_text_define,          /* next widget definition         */
4261     GX_NULL,                                 /* no child widgets               */
4262     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_light), /* control block   */
4263     (void *) &screen_base_light_properties   /* extended properties            */
4264 };
4265 
4266 GX_CONST GX_STUDIO_WIDGET screen_base_thermostat_text_define =
4267 {
4268     "thermostat_text",
4269     GX_TYPE_PROMPT,                          /* widget type                    */
4270     GX_ID_NONE,                              /* widget id                      */
4271     #if defined(GX_WIDGET_USER_DATA)
4272     0,                                       /* user data                      */
4273     #endif
4274     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4275     0,                                       /* status flags                   */
4276     sizeof(GX_PROMPT),                       /* control block size             */
4277     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4278     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4279     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4280     gx_studio_prompt_create,                 /* create function                */
4281     GX_NULL,                                 /* drawing function override      */
4282     GX_NULL,                                 /* event function override        */
4283     {105, 442, 161, 451},                    /* widget size                    */
4284     GX_NULL,                                 /* no next widget                 */
4285     GX_NULL,                                 /* no child widgets               */
4286     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_thermostat_text), /* control block */
4287     (void *) &screen_base_thermostat_text_properties /* extended properties    */
4288 };
4289 
4290 GX_CONST GX_STUDIO_WIDGET screen_base_thermostat_define =
4291 {
4292     "thermostat",
4293     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
4294     GX_ID_NONE,                              /* widget id                      */
4295     #if defined(GX_WIDGET_USER_DATA)
4296     0,                                       /* user data                      */
4297     #endif
4298     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_TOP,   /* style flags */
4299     0,                                       /* status flags                   */
4300     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
4301     GX_COLOR_ID_WHITE,                       /* normal color id                */
4302     GX_COLOR_ID_WHITE,                       /* selected color id              */
4303     GX_COLOR_ID_WHITE,                       /* disabled color id              */
4304     gx_studio_pixelmap_button_create,        /* create function                */
4305     GX_NULL,                                 /* drawing function override      */
4306     GX_NULL,                                 /* event function override        */
4307     {120, 405, 146, 449},                    /* widget size                    */
4308     &screen_base_thermostat_text_define,     /* next widget definition         */
4309     GX_NULL,                                 /* no child widgets               */
4310     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_thermostat), /* control block */
4311     (void *) &screen_base_thermostat_properties /* extended properties         */
4312 };
4313 
4314 GX_CONST GX_STUDIO_WIDGET screen_base_locks_text_define =
4315 {
4316     "locks_text",
4317     GX_TYPE_PROMPT,                          /* widget type                    */
4318     GX_ID_NONE,                              /* widget id                      */
4319     #if defined(GX_WIDGET_USER_DATA)
4320     0,                                       /* user data                      */
4321     #endif
4322     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4323     0,                                       /* status flags                   */
4324     sizeof(GX_PROMPT),                       /* control block size             */
4325     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4326     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4327     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4328     gx_studio_prompt_create,                 /* create function                */
4329     GX_NULL,                                 /* drawing function override      */
4330     GX_NULL,                                 /* event function override        */
4331     {192, 442, 220, 451},                    /* widget size                    */
4332     GX_NULL,                                 /* no next widget                 */
4333     GX_NULL,                                 /* no child widgets               */
4334     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_locks_text), /* control block */
4335     (void *) &screen_base_locks_text_properties /* extended properties         */
4336 };
4337 
4338 GX_CONST GX_STUDIO_WIDGET screen_base_locks_define =
4339 {
4340     "locks",
4341     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
4342     GX_ID_NONE,                              /* widget id                      */
4343     #if defined(GX_WIDGET_USER_DATA)
4344     0,                                       /* user data                      */
4345     #endif
4346     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_TOP,   /* style flags */
4347     0,                                       /* status flags                   */
4348     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
4349     GX_COLOR_ID_WHITE,                       /* normal color id                */
4350     GX_COLOR_ID_WHITE,                       /* selected color id              */
4351     GX_COLOR_ID_WHITE,                       /* disabled color id              */
4352     gx_studio_pixelmap_button_create,        /* create function                */
4353     GX_NULL,                                 /* drawing function override      */
4354     GX_NULL,                                 /* event function override        */
4355     {192, 404, 228, 450},                    /* widget size                    */
4356     &screen_base_locks_text_define,          /* next widget definition         */
4357     GX_NULL,                                 /* no child widgets               */
4358     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_locks), /* control block   */
4359     (void *) &screen_base_locks_properties   /* extended properties            */
4360 };
4361 
4362 GX_CONST GX_STUDIO_WIDGET screen_base_weather_define =
4363 {
4364     "weather",
4365     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
4366     GX_ID_NONE,                              /* widget id                      */
4367     #if defined(GX_WIDGET_USER_DATA)
4368     0,                                       /* user data                      */
4369     #endif
4370     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_TOP,   /* style flags */
4371     0,                                       /* status flags                   */
4372     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
4373     GX_COLOR_ID_WHITE,                       /* normal color id                */
4374     GX_COLOR_ID_WHITE,                       /* selected color id              */
4375     GX_COLOR_ID_WHITE,                       /* disabled color id              */
4376     gx_studio_pixelmap_button_create,        /* create function                */
4377     GX_NULL,                                 /* drawing function override      */
4378     GX_NULL,                                 /* event function override        */
4379     {257, 405, 309, 443},                    /* widget size                    */
4380     GX_NULL,                                 /* no next widget                 */
4381     GX_NULL,                                 /* no child widgets               */
4382     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_weather), /* control block */
4383     (void *) &screen_base_weather_properties /* extended properties            */
4384 };
4385 
4386 GX_CONST GX_STUDIO_WIDGET screen_base_weather_text_define =
4387 {
4388     "weather_text",
4389     GX_TYPE_PROMPT,                          /* widget type                    */
4390     GX_ID_NONE,                              /* widget id                      */
4391     #if defined(GX_WIDGET_USER_DATA)
4392     0,                                       /* user data                      */
4393     #endif
4394     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4395     0,                                       /* status flags                   */
4396     sizeof(GX_PROMPT),                       /* control block size             */
4397     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4398     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4399     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4400     gx_studio_prompt_create,                 /* create function                */
4401     GX_NULL,                                 /* drawing function override      */
4402     GX_NULL,                                 /* event function override        */
4403     {263, 442, 304, 451},                    /* widget size                    */
4404     &screen_base_weather_define,             /* next widget definition         */
4405     GX_NULL,                                 /* no child widgets               */
4406     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_weather_text), /* control block */
4407     (void *) &screen_base_weather_text_properties /* extended properties       */
4408 };
4409 
4410 GX_CONST GX_STUDIO_WIDGET screen_base_icon_6_define =
4411 {
4412     "icon_6",
4413     GX_TYPE_ICON,                            /* widget type                    */
4414     GX_ID_NONE,                              /* widget id                      */
4415     #if defined(GX_WIDGET_USER_DATA)
4416     0,                                       /* user data                      */
4417     #endif
4418     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
4419     0,                                       /* status flags                   */
4420     sizeof(GX_ICON),                         /* control block size             */
4421     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4422     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4423     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4424     gx_studio_icon_create,                   /* create function                */
4425     GX_NULL,                                 /* drawing function override      */
4426     GX_NULL,                                 /* event function override        */
4427     {601, 393, 621, 413},                    /* widget size                    */
4428     GX_NULL,                                 /* no next widget                 */
4429     GX_NULL,                                 /* no child widgets               */
4430     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_icon_6), /* control block  */
4431     (void *) &screen_base_icon_6_properties  /* extended properties            */
4432 };
4433 
4434 GX_CONST GX_STUDIO_WIDGET screen_base_add_text_define =
4435 {
4436     "add_text",
4437     GX_TYPE_PROMPT,                          /* widget type                    */
4438     GX_ID_NONE,                              /* widget id                      */
4439     #if defined(GX_WIDGET_USER_DATA)
4440     0,                                       /* user data                      */
4441     #endif
4442     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_RIGHT,   /* style flags */
4443     0,                                       /* status flags                   */
4444     sizeof(GX_PROMPT),                       /* control block size             */
4445     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4446     GX_COLOR_ID_WHITE,                       /* selected color id              */
4447     GX_COLOR_ID_GRAY,                        /* disabled color id              */
4448     gx_studio_prompt_create,                 /* create function                */
4449     GX_NULL,                                 /* drawing function override      */
4450     GX_NULL,                                 /* event function override        */
4451     {527, 395, 596, 407},                    /* widget size                    */
4452     &screen_base_icon_6_define,              /* next widget definition         */
4453     GX_NULL,                                 /* no child widgets               */
4454     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_add_text), /* control block */
4455     (void *) &screen_base_add_text_properties /* extended properties           */
4456 };
4457 
4458 GX_CONST GX_STUDIO_WIDGET screen_base_add_define =
4459 {
4460     "add",
4461     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
4462     ID_ADD,                                  /* widget id                      */
4463     #if defined(GX_WIDGET_USER_DATA)
4464     0,                                       /* user data                      */
4465     #endif
4466     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_HALIGN_RIGHT|GX_STYLE_VALIGN_TOP,   /* style flags */
4467     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4468     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
4469     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
4470     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
4471     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4472     gx_studio_pixelmap_button_create,        /* create function                */
4473     GX_NULL,                                 /* drawing function override      */
4474     GX_NULL,                                 /* event function override        */
4475     {525, 393, 621, 414},                    /* widget size                    */
4476     GX_NULL,                                 /* no next widget                 */
4477     &screen_base_add_text_define,            /* child widget definition        */
4478     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_add), /* control block     */
4479     (void *) &screen_base_add_properties     /* extended properties            */
4480 };
4481 
4482 GX_CONST GX_STUDIO_WIDGET screen_base_slide_win_define =
4483 {
4484     "slide_win",
4485     GX_TYPE_WINDOW,                          /* widget type                    */
4486     GX_ID_NONE,                              /* widget id                      */
4487     #if defined(GX_WIDGET_USER_DATA)
4488     0,                                       /* user data                      */
4489     #endif
4490     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
4491     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4492     sizeof(GX_WINDOW),                       /* control block size             */
4493     GX_COLOR_ID_BTN_TEXT,                    /* normal color id                */
4494     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4495     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4496     gx_studio_window_create,                 /* create function                */
4497     GX_NULL,                                 /* drawing function override      */
4498     (UINT (*)(GX_WIDGET *, GX_EVENT *)) slide_win_event_process, /* event function override */
4499     {20, 90, 630, 384},                      /* widget size                    */
4500     &screen_base_add_define,                 /* next widget definition         */
4501     GX_NULL,                                 /* no child widgets               */
4502     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_slide_win), /* control block */
4503     (void *) &screen_base_slide_win_properties /* extended properties          */
4504 };
4505 
4506 GX_CONST GX_STUDIO_WIDGET screen_base_setting_define =
4507 {
4508     "setting",
4509     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
4510     ID_SETTING,                              /* widget id                      */
4511     #if defined(GX_WIDGET_USER_DATA)
4512     0,                                       /* user data                      */
4513     #endif
4514     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
4515     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4516     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
4517     GX_COLOR_ID_WHITE,                       /* normal color id                */
4518     GX_COLOR_ID_BLACK,                       /* selected color id              */
4519     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4520     gx_studio_pixelmap_button_create,        /* create function                */
4521     GX_NULL,                                 /* drawing function override      */
4522     GX_NULL,                                 /* event function override        */
4523     {548, 436, 572, 460},                    /* widget size                    */
4524     &screen_base_slide_win_define,           /* next widget definition         */
4525     GX_NULL,                                 /* no child widgets               */
4526     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_setting), /* control block */
4527     (void *) &screen_base_setting_properties /* extended properties            */
4528 };
4529 
4530 GX_CONST GX_STUDIO_WIDGET screen_base_home_define =
4531 {
4532     "home",
4533     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
4534     ID_HOME,                                 /* widget id                      */
4535     #if defined(GX_WIDGET_USER_DATA)
4536     0,                                       /* user data                      */
4537     #endif
4538     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
4539     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4540     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
4541     GX_COLOR_ID_WHITE,                       /* normal color id                */
4542     GX_COLOR_ID_BLACK,                       /* selected color id              */
4543     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4544     gx_studio_pixelmap_button_create,        /* create function                */
4545     GX_NULL,                                 /* drawing function override      */
4546     GX_NULL,                                 /* event function override        */
4547     {593, 435, 623, 459},                    /* widget size                    */
4548     &screen_base_setting_define,             /* next widget definition         */
4549     GX_NULL,                                 /* no child widgets               */
4550     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_home), /* control block    */
4551     (void *) &screen_base_home_properties    /* extended properties            */
4552 };
4553 
4554 GX_CONST GX_STUDIO_WIDGET screen_base_button_weather_define =
4555 {
4556     "button_weather",
4557     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
4558     ID_FOOTER_WEATHER,                       /* widget id                      */
4559     #if defined(GX_WIDGET_USER_DATA)
4560     0,                                       /* user data                      */
4561     #endif
4562     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
4563     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4564     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
4565     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
4566     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
4567     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4568     gx_studio_pixelmap_button_create,        /* create function                */
4569     GX_NULL,                                 /* drawing function override      */
4570     GX_NULL,                                 /* event function override        */
4571     {248, 393, 318, 463},                    /* widget size                    */
4572     &screen_base_home_define,                /* next widget definition         */
4573     &screen_base_weather_text_define,        /* child widget definition        */
4574     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_button_weather), /* control block */
4575     (void *) &screen_base_button_weather_properties /* extended properties     */
4576 };
4577 
4578 GX_CONST GX_STUDIO_WIDGET screen_base_button_locks_define =
4579 {
4580     "button_locks",
4581     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
4582     ID_FOOTER_LOCKS,                         /* widget id                      */
4583     #if defined(GX_WIDGET_USER_DATA)
4584     0,                                       /* user data                      */
4585     #endif
4586     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
4587     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4588     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
4589     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
4590     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
4591     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4592     gx_studio_pixelmap_button_create,        /* create function                */
4593     GX_NULL,                                 /* drawing function override      */
4594     GX_NULL,                                 /* event function override        */
4595     {171, 393, 241, 463},                    /* widget size                    */
4596     &screen_base_button_weather_define,      /* next widget definition         */
4597     &screen_base_locks_define,               /* child widget definition        */
4598     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_button_locks), /* control block */
4599     (void *) &screen_base_button_locks_properties /* extended properties       */
4600 };
4601 
4602 GX_CONST GX_STUDIO_WIDGET screen_base_button_thermostat_define =
4603 {
4604     "button_thermostat",
4605     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
4606     ID_FOOTER_THERMOSTAT,                    /* widget id                      */
4607     #if defined(GX_WIDGET_USER_DATA)
4608     0,                                       /* user data                      */
4609     #endif
4610     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
4611     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4612     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
4613     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
4614     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
4615     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4616     gx_studio_pixelmap_button_create,        /* create function                */
4617     GX_NULL,                                 /* drawing function override      */
4618     GX_NULL,                                 /* event function override        */
4619     {96, 393, 166, 463},                     /* widget size                    */
4620     &screen_base_button_locks_define,        /* next widget definition         */
4621     &screen_base_thermostat_define,          /* child widget definition        */
4622     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_button_thermostat), /* control block */
4623     (void *) &screen_base_button_thermostat_properties /* extended properties  */
4624 };
4625 
4626 GX_CONST GX_STUDIO_WIDGET screen_base_button_light_define =
4627 {
4628     "button_light",
4629     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
4630     ID_FOOTER_LIGHTS,                        /* widget id                      */
4631     #if defined(GX_WIDGET_USER_DATA)
4632     0,                                       /* user data                      */
4633     #endif
4634     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
4635     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4636     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
4637     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
4638     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
4639     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4640     gx_studio_pixelmap_button_create,        /* create function                */
4641     GX_NULL,                                 /* drawing function override      */
4642     GX_NULL,                                 /* event function override        */
4643     {20, 393, 90, 463},                      /* widget size                    */
4644     &screen_base_button_thermostat_define,   /* next widget definition         */
4645     &screen_base_light_define,               /* child widget definition        */
4646     offsetof(SCREEN_BASE_CONTROL_BLOCK, screen_base_button_light), /* control block */
4647     (void *) &screen_base_button_light_properties /* extended properties       */
4648 };
4649 
4650 GX_CONST GX_STUDIO_WIDGET screen_base_define =
4651 {
4652     "screen_base",
4653     GX_TYPE_WINDOW,                          /* widget type                    */
4654     GX_ID_NONE,                              /* widget id                      */
4655     #if defined(GX_WIDGET_USER_DATA)
4656     0,                                       /* user data                      */
4657     #endif
4658     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
4659     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
4660     sizeof(SCREEN_BASE_CONTROL_BLOCK),       /* control block size             */
4661     GX_COLOR_ID_CANVAS,                      /* normal color id                */
4662     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
4663     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4664     gx_studio_window_create,                 /* create function                */
4665     GX_NULL,                                 /* drawing function override      */
4666     (UINT (*)(GX_WIDGET *, GX_EVENT *)) screen_base_event_process, /* event function override */
4667     {0, 0, 639, 479},                        /* widget size                    */
4668     GX_NULL,                                 /* next widget                    */
4669     &screen_base_button_light_define,        /* child widget                   */
4670     0,                                       /* control block                  */
4671     (void *) &screen_base_properties         /* extended properties            */
4672 };
4673 GX_WINDOW_PROPERTIES main_screen_properties =
4674 {
4675     0                                        /* wallpaper pixelmap id          */
4676 };
4677 GX_WINDOW_PROPERTIES main_screen_window_properties =
4678 {
4679     0                                        /* wallpaper pixelmap id          */
4680 };
4681 GX_PROMPT_PROPERTIES main_screen_weather_text_properties =
4682 {
4683     GX_STRING_ID_PARTLY_CLOUDY,              /* string id                      */
4684     GX_FONT_ID_SMALL,                        /* font id                        */
4685     GX_COLOR_ID_TEXT,                        /* normal text color              */
4686     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4687     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4688 };
4689 GX_ICON_PROPERTIES main_screen_weather_icon_properties =
4690 {
4691     GX_PIXELMAP_ID_FOOTER_MENU_ICON_WEATHER_ACTIVE, /* normal pixelmap id      */
4692     0                                        /* selected pixelmap id           */
4693 };
4694 GX_NUMERIC_PROMPT_PROPERTIES main_screen_t_value_properties =
4695 {
4696     0,                                       /* string id                      */
4697     GX_FONT_ID_BIG,                          /* font id                        */
4698     GX_COLOR_ID_TEXT,                        /* normal text color              */
4699     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4700     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
4701     GX_NULL,                                 /* format function                */
4702     75                                       /* numeric prompt value           */
4703 };
4704 GX_NUMERIC_PROMPT_PROPERTIES main_screen_low_value_properties =
4705 {
4706     0,                                       /* string id                      */
4707     GX_FONT_ID_PROMPT,                       /* font id                        */
4708     GX_COLOR_ID_TEXT,                        /* normal text color              */
4709     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4710     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
4711     GX_NULL,                                 /* format function                */
4712     62                                       /* numeric prompt value           */
4713 };
4714 GX_PROMPT_PROPERTIES main_screen_low_lable_properties =
4715 {
4716     GX_STRING_ID_STRING_10,                  /* string id                      */
4717     GX_FONT_ID_SMALL,                        /* font id                        */
4718     GX_COLOR_ID_TEXT,                        /* normal text color              */
4719     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4720     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4721 };
4722 GX_PROMPT_PROPERTIES main_screen_hi_lable_properties =
4723 {
4724     GX_STRING_ID_STRING_9,                   /* string id                      */
4725     GX_FONT_ID_SMALL,                        /* font id                        */
4726     GX_COLOR_ID_TEXT,                        /* normal text color              */
4727     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4728     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4729 };
4730 GX_NUMERIC_PROMPT_PROPERTIES main_screen_hi_value_properties =
4731 {
4732     0,                                       /* string id                      */
4733     GX_FONT_ID_PROMPT,                       /* font id                        */
4734     GX_COLOR_ID_TEXT,                        /* normal text color              */
4735     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4736     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
4737     GX_NULL,                                 /* format function                */
4738     82                                       /* numeric prompt value           */
4739 };
4740 GX_PROMPT_PROPERTIES main_screen_dot_properties =
4741 {
4742     GX_STRING_ID_STRING_18,                  /* string id                      */
4743     GX_FONT_ID_SMALL,                        /* font id                        */
4744     GX_COLOR_ID_TEXT,                        /* normal text color              */
4745     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4746     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4747 };
4748 GX_ICON_PROPERTIES main_screen_icon_properties =
4749 {
4750     GX_PIXELMAP_ID_MS_AZURE_LOGO_SMALL,      /* normal pixelmap id             */
4751     0                                        /* selected pixelmap id           */
4752 };
4753 GX_WINDOW_PROPERTIES main_screen_home_window_properties =
4754 {
4755     0                                        /* wallpaper pixelmap id          */
4756 };
4757 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_lights_properties =
4758 {
4759     GX_PIXELMAP_ID_HOME_MENU_BTN,            /* normal pixelmap id             */
4760     GX_PIXELMAP_ID_HOME_MENU_BTN_ACTIVE,     /* selected pixelmap id           */
4761     0                                        /* disabled pixelmap id           */
4762 };
4763 GX_PROMPT_PROPERTIES main_screen_prompt_properties =
4764 {
4765     GX_STRING_ID_STRING_2,                   /* string id                      */
4766     GX_FONT_ID_SMALL,                        /* font id                        */
4767     GX_COLOR_ID_TEXT,                        /* normal text color              */
4768     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4769     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4770 };
4771 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_pixelmap_button_4_properties =
4772 {
4773     GX_PIXELMAP_ID_HOME_MENU_ICON_LIGHT,     /* normal pixelmap id             */
4774     GX_PIXELMAP_ID_HOME_MENU_ICON_LIGHT_ACTIVE, /* selected pixelmap id        */
4775     0                                        /* disabled pixelmap id           */
4776 };
4777 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_thermostat_properties =
4778 {
4779     GX_PIXELMAP_ID_HOME_MENU_BTN,            /* normal pixelmap id             */
4780     GX_PIXELMAP_ID_HOME_MENU_BTN_ACTIVE,     /* selected pixelmap id           */
4781     0                                        /* disabled pixelmap id           */
4782 };
4783 GX_PROMPT_PROPERTIES main_screen_prompt_1_properties =
4784 {
4785     GX_STRING_ID_STRING_3,                   /* string id                      */
4786     GX_FONT_ID_SMALL,                        /* font id                        */
4787     GX_COLOR_ID_TEXT,                        /* normal text color              */
4788     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4789     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4790 };
4791 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_pixelmap_button_5_properties =
4792 {
4793     GX_PIXELMAP_ID_HOME_MENU_ICON_THERMOSTAT, /* normal pixelmap id            */
4794     GX_PIXELMAP_ID_HOME_MENU_ICON_THERMOSTAT_ACTIVE, /* selected pixelmap id   */
4795     0                                        /* disabled pixelmap id           */
4796 };
4797 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_weather_properties =
4798 {
4799     GX_PIXELMAP_ID_HOME_MENU_BTN,            /* normal pixelmap id             */
4800     GX_PIXELMAP_ID_HOME_MENU_BTN_ACTIVE,     /* selected pixelmap id           */
4801     0                                        /* disabled pixelmap id           */
4802 };
4803 GX_PROMPT_PROPERTIES main_screen_prompt_3_properties =
4804 {
4805     GX_STRING_ID_STRING_5,                   /* string id                      */
4806     GX_FONT_ID_SMALL,                        /* font id                        */
4807     GX_COLOR_ID_TEXT,                        /* normal text color              */
4808     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4809     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4810 };
4811 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_pixelmap_button_7_properties =
4812 {
4813     GX_PIXELMAP_ID_HOME_MENU_ICON_WEATHER,   /* normal pixelmap id             */
4814     GX_PIXELMAP_ID_HOME_MENU_ICON_WEATHER_ACTIVE, /* selected pixelmap id      */
4815     0                                        /* disabled pixelmap id           */
4816 };
4817 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_locks_properties =
4818 {
4819     GX_PIXELMAP_ID_HOME_MENU_BTN,            /* normal pixelmap id             */
4820     GX_PIXELMAP_ID_HOME_MENU_BTN_ACTIVE,     /* selected pixelmap id           */
4821     0                                        /* disabled pixelmap id           */
4822 };
4823 GX_PROMPT_PROPERTIES main_screen_prompt_2_properties =
4824 {
4825     GX_STRING_ID_STRING_4,                   /* string id                      */
4826     GX_FONT_ID_SMALL,                        /* font id                        */
4827     GX_COLOR_ID_TEXT,                        /* normal text color              */
4828     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4829     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4830 };
4831 GX_PIXELMAP_BUTTON_PROPERTIES main_screen_pixelmap_button_6_properties =
4832 {
4833     GX_PIXELMAP_ID_HOME_MENU_ICON_LOCK,      /* normal pixelmap id             */
4834     GX_PIXELMAP_ID_HOME_MENU_ICON_LOCK_ACTIVE, /* selected pixelmap id         */
4835     0                                        /* disabled pixelmap id           */
4836 };
4837 GX_WINDOW_PROPERTIES main_screen_time_window_properties =
4838 {
4839     0                                        /* wallpaper pixelmap id          */
4840 };
4841 GX_PROMPT_PROPERTIES main_screen_am_pm_properties =
4842 {
4843     GX_STRING_ID_PM,                         /* string id                      */
4844     GX_FONT_ID_MIDDLE,                       /* font id                        */
4845     GX_COLOR_ID_TEXT,                        /* normal text color              */
4846     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4847     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4848 };
4849 GX_PROMPT_PROPERTIES main_screen_date_properties =
4850 {
4851     GX_STRING_ID_STRING_13,                  /* string id                      */
4852     GX_FONT_ID_NORMAL,                       /* font id                        */
4853     GX_COLOR_ID_TEXT,                        /* normal text color              */
4854     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4855     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
4856 };
4857 GX_NUMERIC_PROMPT_PROPERTIES main_screen_hour_properties =
4858 {
4859     0,                                       /* string id                      */
4860     GX_FONT_ID_TIME,                         /* font id                        */
4861     GX_COLOR_ID_TEXT,                        /* normal text color              */
4862     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4863     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
4864     time_format,                             /* format function                */
4865     12                                       /* numeric prompt value           */
4866 };
4867 GX_NUMERIC_PROMPT_PROPERTIES main_screen_minute_properties =
4868 {
4869     0,                                       /* string id                      */
4870     GX_FONT_ID_TIME,                         /* font id                        */
4871     GX_COLOR_ID_TEXT,                        /* normal text color              */
4872     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
4873     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
4874     time_format,                             /* format function                */
4875     38                                       /* numeric prompt value           */
4876 };
4877 GX_ICON_PROPERTIES main_screen_upper_dot_properties =
4878 {
4879     GX_PIXELMAP_ID_PAGINATION_DOT,           /* normal pixelmap id             */
4880     0                                        /* selected pixelmap id           */
4881 };
4882 GX_ICON_PROPERTIES main_screen_lower_dot_properties =
4883 {
4884     GX_PIXELMAP_ID_PAGINATION_DOT,           /* normal pixelmap id             */
4885     0                                        /* selected pixelmap id           */
4886 };
4887 
4888 GX_CONST GX_STUDIO_WIDGET main_screen_dot_define =
4889 {
4890     "dot",
4891     GX_TYPE_PROMPT,                          /* widget type                    */
4892     GX_ID_NONE,                              /* widget id                      */
4893     #if defined(GX_WIDGET_USER_DATA)
4894     0,                                       /* user data                      */
4895     #endif
4896     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4897     0,                                       /* status flags                   */
4898     sizeof(GX_PROMPT),                       /* control block size             */
4899     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4900     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4901     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4902     gx_studio_prompt_create,                 /* create function                */
4903     GX_NULL,                                 /* drawing function override      */
4904     GX_NULL,                                 /* event function override        */
4905     {610, 13, 616, 25},                      /* widget size                    */
4906     GX_NULL,                                 /* no next widget                 */
4907     GX_NULL,                                 /* no child widgets               */
4908     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_dot), /* control block     */
4909     (void *) &main_screen_dot_properties     /* extended properties            */
4910 };
4911 
4912 GX_CONST GX_STUDIO_WIDGET main_screen_hi_value_define =
4913 {
4914     "hi_value",
4915     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
4916     GX_ID_NONE,                              /* widget id                      */
4917     #if defined(GX_WIDGET_USER_DATA)
4918     0,                                       /* user data                      */
4919     #endif
4920     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4921     0,                                       /* status flags                   */
4922     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
4923     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4924     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4925     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4926     gx_studio_numeric_prompt_create,         /* create function                */
4927     GX_NULL,                                 /* drawing function override      */
4928     GX_NULL,                                 /* event function override        */
4929     {557, 63, 574, 80},                      /* widget size                    */
4930     &main_screen_dot_define,                 /* next widget definition         */
4931     GX_NULL,                                 /* no child widgets               */
4932     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_hi_value), /* control block */
4933     (void *) &main_screen_hi_value_properties /* extended properties           */
4934 };
4935 
4936 GX_CONST GX_STUDIO_WIDGET main_screen_hi_lable_define =
4937 {
4938     "hi_lable",
4939     GX_TYPE_PROMPT,                          /* widget type                    */
4940     GX_ID_NONE,                              /* widget id                      */
4941     #if defined(GX_WIDGET_USER_DATA)
4942     0,                                       /* user data                      */
4943     #endif
4944     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4945     0,                                       /* status flags                   */
4946     sizeof(GX_PROMPT),                       /* control block size             */
4947     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4948     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4949     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4950     gx_studio_prompt_create,                 /* create function                */
4951     GX_NULL,                                 /* drawing function override      */
4952     GX_NULL,                                 /* event function override        */
4953     {544, 65, 555, 77},                      /* widget size                    */
4954     &main_screen_hi_value_define,            /* next widget definition         */
4955     GX_NULL,                                 /* no child widgets               */
4956     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_hi_lable), /* control block */
4957     (void *) &main_screen_hi_lable_properties /* extended properties           */
4958 };
4959 
4960 GX_CONST GX_STUDIO_WIDGET main_screen_low_lable_define =
4961 {
4962     "low_lable",
4963     GX_TYPE_PROMPT,                          /* widget type                    */
4964     GX_ID_NONE,                              /* widget id                      */
4965     #if defined(GX_WIDGET_USER_DATA)
4966     0,                                       /* user data                      */
4967     #endif
4968     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4969     0,                                       /* status flags                   */
4970     sizeof(GX_PROMPT),                       /* control block size             */
4971     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4972     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4973     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4974     gx_studio_prompt_create,                 /* create function                */
4975     GX_NULL,                                 /* drawing function override      */
4976     GX_NULL,                                 /* event function override        */
4977     {581, 65, 604, 77},                      /* widget size                    */
4978     &main_screen_hi_lable_define,            /* next widget definition         */
4979     GX_NULL,                                 /* no child widgets               */
4980     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_low_lable), /* control block */
4981     (void *) &main_screen_low_lable_properties /* extended properties          */
4982 };
4983 
4984 GX_CONST GX_STUDIO_WIDGET main_screen_low_value_define =
4985 {
4986     "low_value",
4987     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
4988     GX_ID_NONE,                              /* widget id                      */
4989     #if defined(GX_WIDGET_USER_DATA)
4990     0,                                       /* user data                      */
4991     #endif
4992     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
4993     0,                                       /* status flags                   */
4994     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
4995     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
4996     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
4997     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
4998     gx_studio_numeric_prompt_create,         /* create function                */
4999     GX_NULL,                                 /* drawing function override      */
5000     GX_NULL,                                 /* event function override        */
5001     {606, 62, 623, 79},                      /* widget size                    */
5002     &main_screen_low_lable_define,           /* next widget definition         */
5003     GX_NULL,                                 /* no child widgets               */
5004     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_low_value), /* control block */
5005     (void *) &main_screen_low_value_properties /* extended properties          */
5006 };
5007 
5008 GX_CONST GX_STUDIO_WIDGET main_screen_t_value_define =
5009 {
5010     "t_value",
5011     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
5012     GX_ID_NONE,                              /* widget id                      */
5013     #if defined(GX_WIDGET_USER_DATA)
5014     0,                                       /* user data                      */
5015     #endif
5016     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5017     0,                                       /* status flags                   */
5018     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
5019     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5020     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5021     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5022     gx_studio_numeric_prompt_create,         /* create function                */
5023     GX_NULL,                                 /* drawing function override      */
5024     GX_NULL,                                 /* event function override        */
5025     {549, 14, 612, 65},                      /* widget size                    */
5026     &main_screen_low_value_define,           /* next widget definition         */
5027     GX_NULL,                                 /* no child widgets               */
5028     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_t_value), /* control block */
5029     (void *) &main_screen_t_value_properties /* extended properties            */
5030 };
5031 
5032 GX_CONST GX_STUDIO_WIDGET main_screen_weather_icon_define =
5033 {
5034     "weather_icon",
5035     GX_TYPE_ICON,                            /* widget type                    */
5036     GX_ID_NONE,                              /* widget id                      */
5037     #if defined(GX_WIDGET_USER_DATA)
5038     0,                                       /* user data                      */
5039     #endif
5040     GX_STYLE_BORDER_NONE|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
5041     0,                                       /* status flags                   */
5042     sizeof(GX_ICON),                         /* control block size             */
5043     GX_COLOR_ID_WHITE,                       /* normal color id                */
5044     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5045     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5046     gx_studio_icon_create,                   /* create function                */
5047     GX_NULL,                                 /* drawing function override      */
5048     GX_NULL,                                 /* event function override        */
5049     {468, 19, 520, 57},                      /* widget size                    */
5050     &main_screen_t_value_define,             /* next widget definition         */
5051     GX_NULL,                                 /* no child widgets               */
5052     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_weather_icon), /* control block */
5053     (void *) &main_screen_weather_icon_properties /* extended properties       */
5054 };
5055 
5056 GX_CONST GX_STUDIO_WIDGET main_screen_weather_text_define =
5057 {
5058     "weather_text",
5059     GX_TYPE_PROMPT,                          /* widget type                    */
5060     GX_ID_NONE,                              /* widget id                      */
5061     #if defined(GX_WIDGET_USER_DATA)
5062     0,                                       /* user data                      */
5063     #endif
5064     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5065     0,                                       /* status flags                   */
5066     sizeof(GX_PROMPT),                       /* control block size             */
5067     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5068     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5069     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5070     gx_studio_prompt_create,                 /* create function                */
5071     GX_NULL,                                 /* drawing function override      */
5072     GX_NULL,                                 /* event function override        */
5073     {458, 66, 536, 78},                      /* widget size                    */
5074     &main_screen_weather_icon_define,        /* next widget definition         */
5075     GX_NULL,                                 /* no child widgets               */
5076     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_weather_text), /* control block */
5077     (void *) &main_screen_weather_text_properties /* extended properties       */
5078 };
5079 
5080 GX_CONST GX_STUDIO_WIDGET main_screen_pixelmap_button_4_define =
5081 {
5082     "pixelmap_button_4",
5083     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
5084     GX_ID_NONE,                              /* widget id                      */
5085     #if defined(GX_WIDGET_USER_DATA)
5086     0,                                       /* user data                      */
5087     #endif
5088     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
5089     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5090     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
5091     GX_COLOR_ID_WHITE,                       /* normal color id                */
5092     GX_COLOR_ID_WHITE,                       /* selected color id              */
5093     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5094     gx_studio_pixelmap_button_create,        /* create function                */
5095     GX_NULL,                                 /* drawing function override      */
5096     GX_NULL,                                 /* event function override        */
5097     {59, 254, 185, 410},                     /* widget size                    */
5098     GX_NULL,                                 /* no next widget                 */
5099     GX_NULL,                                 /* no child widgets               */
5100     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_pixelmap_button_4), /* control block */
5101     (void *) &main_screen_pixelmap_button_4_properties /* extended properties  */
5102 };
5103 
5104 GX_CONST GX_STUDIO_WIDGET main_screen_prompt_define =
5105 {
5106     "prompt",
5107     GX_TYPE_PROMPT,                          /* widget type                    */
5108     GX_ID_NONE,                              /* widget id                      */
5109     #if defined(GX_WIDGET_USER_DATA)
5110     0,                                       /* user data                      */
5111     #endif
5112     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5113     0,                                       /* status flags                   */
5114     sizeof(GX_PROMPT),                       /* control block size             */
5115     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5116     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5117     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5118     gx_studio_prompt_create,                 /* create function                */
5119     GX_NULL,                                 /* drawing function override      */
5120     GX_NULL,                                 /* event function override        */
5121     {102, 376, 140, 389},                    /* widget size                    */
5122     &main_screen_pixelmap_button_4_define,   /* next widget definition         */
5123     GX_NULL,                                 /* no child widgets               */
5124     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_prompt), /* control block  */
5125     (void *) &main_screen_prompt_properties  /* extended properties            */
5126 };
5127 
5128 GX_CONST GX_STUDIO_WIDGET main_screen_pixelmap_button_5_define =
5129 {
5130     "pixelmap_button_5",
5131     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
5132     GX_ID_NONE,                              /* widget id                      */
5133     #if defined(GX_WIDGET_USER_DATA)
5134     0,                                       /* user data                      */
5135     #endif
5136     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
5137     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5138     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
5139     GX_COLOR_ID_WHITE,                       /* normal color id                */
5140     GX_COLOR_ID_WHITE,                       /* selected color id              */
5141     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5142     gx_studio_pixelmap_button_create,        /* create function                */
5143     GX_NULL,                                 /* drawing function override      */
5144     GX_NULL,                                 /* event function override        */
5145     {188, 258, 330, 414},                    /* widget size                    */
5146     GX_NULL,                                 /* no next widget                 */
5147     GX_NULL,                                 /* no child widgets               */
5148     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_pixelmap_button_5), /* control block */
5149     (void *) &main_screen_pixelmap_button_5_properties /* extended properties  */
5150 };
5151 
5152 GX_CONST GX_STUDIO_WIDGET main_screen_prompt_1_define =
5153 {
5154     "prompt_1",
5155     GX_TYPE_PROMPT,                          /* widget type                    */
5156     GX_ID_NONE,                              /* widget id                      */
5157     #if defined(GX_WIDGET_USER_DATA)
5158     0,                                       /* user data                      */
5159     #endif
5160     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5161     0,                                       /* status flags                   */
5162     sizeof(GX_PROMPT),                       /* control block size             */
5163     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5164     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5165     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5166     gx_studio_prompt_create,                 /* create function                */
5167     GX_NULL,                                 /* drawing function override      */
5168     GX_NULL,                                 /* event function override        */
5169     {217, 376, 291, 389},                    /* widget size                    */
5170     &main_screen_pixelmap_button_5_define,   /* next widget definition         */
5171     GX_NULL,                                 /* no child widgets               */
5172     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_prompt_1), /* control block */
5173     (void *) &main_screen_prompt_1_properties /* extended properties           */
5174 };
5175 
5176 GX_CONST GX_STUDIO_WIDGET main_screen_pixelmap_button_7_define =
5177 {
5178     "pixelmap_button_7",
5179     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
5180     GX_ID_NONE,                              /* widget id                      */
5181     #if defined(GX_WIDGET_USER_DATA)
5182     0,                                       /* user data                      */
5183     #endif
5184     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
5185     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5186     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
5187     GX_COLOR_ID_WHITE,                       /* normal color id                */
5188     GX_COLOR_ID_WHITE,                       /* selected color id              */
5189     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5190     gx_studio_pixelmap_button_create,        /* create function                */
5191     GX_NULL,                                 /* drawing function override      */
5192     GX_NULL,                                 /* event function override        */
5193     {447, 258, 589, 414},                    /* widget size                    */
5194     GX_NULL,                                 /* no next widget                 */
5195     GX_NULL,                                 /* no child widgets               */
5196     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_pixelmap_button_7), /* control block */
5197     (void *) &main_screen_pixelmap_button_7_properties /* extended properties  */
5198 };
5199 
5200 GX_CONST GX_STUDIO_WIDGET main_screen_prompt_3_define =
5201 {
5202     "prompt_3",
5203     GX_TYPE_PROMPT,                          /* widget type                    */
5204     GX_ID_NONE,                              /* widget id                      */
5205     #if defined(GX_WIDGET_USER_DATA)
5206     0,                                       /* user data                      */
5207     #endif
5208     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5209     0,                                       /* status flags                   */
5210     sizeof(GX_PROMPT),                       /* control block size             */
5211     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5212     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5213     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5214     gx_studio_prompt_create,                 /* create function                */
5215     GX_NULL,                                 /* drawing function override      */
5216     GX_NULL,                                 /* event function override        */
5217     {492, 377, 546, 390},                    /* widget size                    */
5218     &main_screen_pixelmap_button_7_define,   /* next widget definition         */
5219     GX_NULL,                                 /* no child widgets               */
5220     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_prompt_3), /* control block */
5221     (void *) &main_screen_prompt_3_properties /* extended properties           */
5222 };
5223 
5224 GX_CONST GX_STUDIO_WIDGET main_screen_pixelmap_button_6_define =
5225 {
5226     "pixelmap_button_6",
5227     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
5228     GX_ID_NONE,                              /* widget id                      */
5229     #if defined(GX_WIDGET_USER_DATA)
5230     0,                                       /* user data                      */
5231     #endif
5232     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
5233     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5234     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
5235     GX_COLOR_ID_WHITE,                       /* normal color id                */
5236     GX_COLOR_ID_WHITE,                       /* selected color id              */
5237     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5238     gx_studio_pixelmap_button_create,        /* create function                */
5239     GX_NULL,                                 /* drawing function override      */
5240     GX_NULL,                                 /* event function override        */
5241     {323, 259, 465, 415},                    /* widget size                    */
5242     GX_NULL,                                 /* no next widget                 */
5243     GX_NULL,                                 /* no child widgets               */
5244     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_pixelmap_button_6), /* control block */
5245     (void *) &main_screen_pixelmap_button_6_properties /* extended properties  */
5246 };
5247 
5248 GX_CONST GX_STUDIO_WIDGET main_screen_prompt_2_define =
5249 {
5250     "prompt_2",
5251     GX_TYPE_PROMPT,                          /* widget type                    */
5252     GX_ID_NONE,                              /* widget id                      */
5253     #if defined(GX_WIDGET_USER_DATA)
5254     0,                                       /* user data                      */
5255     #endif
5256     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5257     0,                                       /* status flags                   */
5258     sizeof(GX_PROMPT),                       /* control block size             */
5259     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5260     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5261     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5262     gx_studio_prompt_create,                 /* create function                */
5263     GX_NULL,                                 /* drawing function override      */
5264     GX_NULL,                                 /* event function override        */
5265     {369, 377, 405, 390},                    /* widget size                    */
5266     &main_screen_pixelmap_button_6_define,   /* next widget definition         */
5267     GX_NULL,                                 /* no child widgets               */
5268     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_prompt_2), /* control block */
5269     (void *) &main_screen_prompt_2_properties /* extended properties           */
5270 };
5271 
5272 GX_CONST GX_STUDIO_WIDGET main_screen_lower_dot_define =
5273 {
5274     "lower_dot",
5275     GX_TYPE_ICON,                            /* widget type                    */
5276     GX_ID_NONE,                              /* widget id                      */
5277     #if defined(GX_WIDGET_USER_DATA)
5278     0,                                       /* user data                      */
5279     #endif
5280     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
5281     0,                                       /* status flags                   */
5282     sizeof(GX_ICON),                         /* control block size             */
5283     GX_COLOR_ID_WHITE,                       /* normal color id                */
5284     GX_COLOR_ID_WHITE,                       /* selected color id              */
5285     GX_COLOR_ID_WHITE,                       /* disabled color id              */
5286     gx_studio_icon_create,                   /* create function                */
5287     GX_NULL,                                 /* drawing function override      */
5288     GX_NULL,                                 /* event function override        */
5289     {281, 176, 287, 182},                    /* widget size                    */
5290     GX_NULL,                                 /* no next widget                 */
5291     GX_NULL,                                 /* no child widgets               */
5292     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_lower_dot), /* control block */
5293     (void *) &main_screen_lower_dot_properties /* extended properties          */
5294 };
5295 
5296 GX_CONST GX_STUDIO_WIDGET main_screen_upper_dot_define =
5297 {
5298     "upper_dot",
5299     GX_TYPE_ICON,                            /* widget type                    */
5300     GX_ID_NONE,                              /* widget id                      */
5301     #if defined(GX_WIDGET_USER_DATA)
5302     0,                                       /* user data                      */
5303     #endif
5304     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
5305     0,                                       /* status flags                   */
5306     sizeof(GX_ICON),                         /* control block size             */
5307     GX_COLOR_ID_WHITE,                       /* normal color id                */
5308     GX_COLOR_ID_WHITE,                       /* selected color id              */
5309     GX_COLOR_ID_WHITE,                       /* disabled color id              */
5310     gx_studio_icon_create,                   /* create function                */
5311     GX_NULL,                                 /* drawing function override      */
5312     GX_NULL,                                 /* event function override        */
5313     {281, 135, 287, 141},                    /* widget size                    */
5314     &main_screen_lower_dot_define,           /* next widget definition         */
5315     GX_NULL,                                 /* no child widgets               */
5316     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_upper_dot), /* control block */
5317     (void *) &main_screen_upper_dot_properties /* extended properties          */
5318 };
5319 
5320 GX_CONST GX_STUDIO_WIDGET main_screen_minute_define =
5321 {
5322     "minute",
5323     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
5324     GX_ID_NONE,                              /* widget id                      */
5325     #if defined(GX_WIDGET_USER_DATA)
5326     0,                                       /* user data                      */
5327     #endif
5328     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_RIGHT,   /* style flags */
5329     0,                                       /* status flags                   */
5330     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
5331     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5332     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5333     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5334     gx_studio_numeric_prompt_create,         /* create function                */
5335     GX_NULL,                                 /* drawing function override      */
5336     GX_NULL,                                 /* event function override        */
5337     {290, 109, 449, 203},                    /* widget size                    */
5338     &main_screen_upper_dot_define,           /* next widget definition         */
5339     GX_NULL,                                 /* no child widgets               */
5340     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_minute), /* control block  */
5341     (void *) &main_screen_minute_properties  /* extended properties            */
5342 };
5343 
5344 GX_CONST GX_STUDIO_WIDGET main_screen_hour_define =
5345 {
5346     "hour",
5347     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
5348     GX_ID_NONE,                              /* widget id                      */
5349     #if defined(GX_WIDGET_USER_DATA)
5350     0,                                       /* user data                      */
5351     #endif
5352     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_RIGHT,   /* style flags */
5353     0,                                       /* status flags                   */
5354     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
5355     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5356     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5357     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5358     gx_studio_numeric_prompt_create,         /* create function                */
5359     GX_NULL,                                 /* drawing function override      */
5360     GX_NULL,                                 /* event function override        */
5361     {117, 109, 276, 203},                    /* widget size                    */
5362     &main_screen_minute_define,              /* next widget definition         */
5363     GX_NULL,                                 /* no child widgets               */
5364     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_hour), /* control block    */
5365     (void *) &main_screen_hour_properties    /* extended properties            */
5366 };
5367 
5368 GX_CONST GX_STUDIO_WIDGET main_screen_date_define =
5369 {
5370     "date",
5371     GX_TYPE_PROMPT,                          /* widget type                    */
5372     GX_ID_NONE,                              /* widget id                      */
5373     #if defined(GX_WIDGET_USER_DATA)
5374     0,                                       /* user data                      */
5375     #endif
5376     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_COPY|GX_STYLE_TEXT_CENTER,   /* style flags */
5377     0,                                       /* status flags                   */
5378     sizeof(GX_PROMPT),                       /* control block size             */
5379     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5380     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5381     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5382     gx_studio_prompt_create,                 /* create function                */
5383     GX_NULL,                                 /* drawing function override      */
5384     GX_NULL,                                 /* event function override        */
5385     {213, 224, 429, 246},                    /* widget size                    */
5386     &main_screen_hour_define,                /* next widget definition         */
5387     GX_NULL,                                 /* no child widgets               */
5388     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_date), /* control block    */
5389     (void *) &main_screen_date_properties    /* extended properties            */
5390 };
5391 
5392 GX_CONST GX_STUDIO_WIDGET main_screen_am_pm_define =
5393 {
5394     "am_pm",
5395     GX_TYPE_PROMPT,                          /* widget type                    */
5396     GX_ID_NONE,                              /* widget id                      */
5397     #if defined(GX_WIDGET_USER_DATA)
5398     0,                                       /* user data                      */
5399     #endif
5400     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_COPY|GX_STYLE_TEXT_CENTER,   /* style flags */
5401     0,                                       /* status flags                   */
5402     sizeof(GX_PROMPT),                       /* control block size             */
5403     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5404     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5405     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5406     gx_studio_prompt_create,                 /* create function                */
5407     GX_NULL,                                 /* drawing function override      */
5408     GX_NULL,                                 /* event function override        */
5409     {447, 114, 490, 144},                    /* widget size                    */
5410     &main_screen_date_define,                /* next widget definition         */
5411     GX_NULL,                                 /* no child widgets               */
5412     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_am_pm), /* control block   */
5413     (void *) &main_screen_am_pm_properties   /* extended properties            */
5414 };
5415 
5416 GX_CONST GX_STUDIO_WIDGET main_screen_time_window_define =
5417 {
5418     "time_window",
5419     GX_TYPE_WINDOW,                          /* widget type                    */
5420     GX_ID_NONE,                              /* widget id                      */
5421     #if defined(GX_WIDGET_USER_DATA)
5422     0,                                       /* user data                      */
5423     #endif
5424     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
5425     0,                                       /* status flags                   */
5426     sizeof(GX_WINDOW),                       /* control block size             */
5427     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
5428     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
5429     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5430     gx_studio_window_create,                 /* create function                */
5431     GX_NULL,                                 /* drawing function override      */
5432     GX_NULL,                                 /* event function override        */
5433     {89, 98, 506, 257},                      /* widget size                    */
5434     GX_NULL,                                 /* no next widget                 */
5435     &main_screen_am_pm_define,               /* child widget definition        */
5436     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_time_window), /* control block */
5437     (void *) &main_screen_time_window_properties /* extended properties        */
5438 };
5439 
5440 GX_CONST GX_STUDIO_WIDGET main_screen_locks_define =
5441 {
5442     "locks",
5443     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
5444     ID_LOCKS,                                /* widget id                      */
5445     #if defined(GX_WIDGET_USER_DATA)
5446     0,                                       /* user data                      */
5447     #endif
5448     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
5449     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5450     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
5451     GX_COLOR_ID_TEXT,                        /* normal color id                */
5452     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
5453     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5454     gx_studio_pixelmap_button_create,        /* create function                */
5455     GX_NULL,                                 /* drawing function override      */
5456     GX_NULL,                                 /* event function override        */
5457     {324, 290, 450, 410},                    /* widget size                    */
5458     &main_screen_time_window_define,         /* next widget definition         */
5459     &main_screen_prompt_2_define,            /* child widget definition        */
5460     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_locks), /* control block   */
5461     (void *) &main_screen_locks_properties   /* extended properties            */
5462 };
5463 
5464 GX_CONST GX_STUDIO_WIDGET main_screen_weather_define =
5465 {
5466     "weather",
5467     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
5468     ID_WEATHER,                              /* widget id                      */
5469     #if defined(GX_WIDGET_USER_DATA)
5470     0,                                       /* user data                      */
5471     #endif
5472     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
5473     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5474     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
5475     GX_COLOR_ID_TEXT,                        /* normal color id                */
5476     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
5477     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5478     gx_studio_pixelmap_button_create,        /* create function                */
5479     GX_NULL,                                 /* drawing function override      */
5480     GX_NULL,                                 /* event function override        */
5481     {456, 290, 582, 410},                    /* widget size                    */
5482     &main_screen_locks_define,               /* next widget definition         */
5483     &main_screen_prompt_3_define,            /* child widget definition        */
5484     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_weather), /* control block */
5485     (void *) &main_screen_weather_properties /* extended properties            */
5486 };
5487 
5488 GX_CONST GX_STUDIO_WIDGET main_screen_thermostat_define =
5489 {
5490     "thermostat",
5491     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
5492     ID_THERMOSTAT,                           /* widget id                      */
5493     #if defined(GX_WIDGET_USER_DATA)
5494     0,                                       /* user data                      */
5495     #endif
5496     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
5497     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5498     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
5499     GX_COLOR_ID_TEXT,                        /* normal color id                */
5500     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
5501     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5502     gx_studio_pixelmap_button_create,        /* create function                */
5503     GX_NULL,                                 /* drawing function override      */
5504     GX_NULL,                                 /* event function override        */
5505     {191, 290, 317, 410},                    /* widget size                    */
5506     &main_screen_weather_define,             /* next widget definition         */
5507     &main_screen_prompt_1_define,            /* child widget definition        */
5508     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_thermostat), /* control block */
5509     (void *) &main_screen_thermostat_properties /* extended properties         */
5510 };
5511 
5512 GX_CONST GX_STUDIO_WIDGET main_screen_lights_define =
5513 {
5514     "lights",
5515     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
5516     ID_LIGHTS,                               /* widget id                      */
5517     #if defined(GX_WIDGET_USER_DATA)
5518     0,                                       /* user data                      */
5519     #endif
5520     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
5521     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5522     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
5523     GX_COLOR_ID_TEXT,                        /* normal color id                */
5524     GX_COLOR_ID_TEXT,                        /* selected color id              */
5525     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5526     gx_studio_pixelmap_button_create,        /* create function                */
5527     GX_NULL,                                 /* drawing function override      */
5528     GX_NULL,                                 /* event function override        */
5529     {60, 290, 186, 410},                     /* widget size                    */
5530     &main_screen_thermostat_define,          /* next widget definition         */
5531     &main_screen_prompt_define,              /* child widget definition        */
5532     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_lights), /* control block  */
5533     (void *) &main_screen_lights_properties  /* extended properties            */
5534 };
5535 
5536 GX_CONST GX_STUDIO_WIDGET main_screen_home_window_define =
5537 {
5538     "home_window",
5539     GX_TYPE_WINDOW,                          /* widget type                    */
5540     GX_ID_NONE,                              /* widget id                      */
5541     #if defined(GX_WIDGET_USER_DATA)
5542     0,                                       /* user data                      */
5543     #endif
5544     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
5545     0,                                       /* status flags                   */
5546     sizeof(GX_WINDOW),                       /* control block size             */
5547     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
5548     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
5549     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5550     gx_studio_window_create,                 /* create function                */
5551     GX_NULL,                                 /* drawing function override      */
5552     GX_NULL,                                 /* event function override        */
5553     {44, 90, 593, 418},                      /* widget size                    */
5554     GX_NULL,                                 /* no next widget                 */
5555     &main_screen_lights_define,              /* child widget definition        */
5556     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_home_window), /* control block */
5557     (void *) &main_screen_home_window_properties /* extended properties        */
5558 };
5559 
5560 GX_CONST GX_STUDIO_WIDGET main_screen_icon_define =
5561 {
5562     "icon",
5563     GX_TYPE_ICON,                            /* widget type                    */
5564     GX_ID_NONE,                              /* widget id                      */
5565     #if defined(GX_WIDGET_USER_DATA)
5566     0,                                       /* user data                      */
5567     #endif
5568     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
5569     0,                                       /* status flags                   */
5570     sizeof(GX_ICON),                         /* control block size             */
5571     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5572     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5573     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5574     gx_studio_icon_create,                   /* create function                */
5575     GX_NULL,                                 /* drawing function override      */
5576     GX_NULL,                                 /* event function override        */
5577     {18, 18, 131, 76},                       /* widget size                    */
5578     &main_screen_home_window_define,         /* next widget definition         */
5579     GX_NULL,                                 /* no child widgets               */
5580     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_icon), /* control block    */
5581     (void *) &main_screen_icon_properties    /* extended properties            */
5582 };
5583 
5584 GX_CONST GX_STUDIO_WIDGET main_screen_window_define =
5585 {
5586     "window",
5587     GX_TYPE_WINDOW,                          /* widget type                    */
5588     GX_ID_NONE,                              /* widget id                      */
5589     #if defined(GX_WIDGET_USER_DATA)
5590     0,                                       /* user data                      */
5591     #endif
5592     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
5593     0,                                       /* status flags                   */
5594     sizeof(GX_WINDOW),                       /* control block size             */
5595     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
5596     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
5597     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5598     gx_studio_window_create,                 /* create function                */
5599     GX_NULL,                                 /* drawing function override      */
5600     GX_NULL,                                 /* event function override        */
5601     {448, 9, 632, 88},                       /* widget size                    */
5602     &main_screen_icon_define,                /* next widget definition         */
5603     &main_screen_weather_text_define,        /* child widget definition        */
5604     offsetof(MAIN_SCREEN_CONTROL_BLOCK, main_screen_window), /* control block  */
5605     (void *) &main_screen_window_properties  /* extended properties            */
5606 };
5607 
5608 GX_ANIMATION_INFO main_screen_animation_1 = {
5609     (GX_WIDGET *) &main_screen.main_screen_home_window,
5610     (GX_WIDGET *) &main_screen,
5611     GX_NULL,
5612     GX_ANIMATION_TRANSLATE|GX_ANIMATION_DETACH, 0, 0, 1,
5613     {44, 90}, {44, 90}, 255, 0, 3
5614 };
5615 
5616 
5617 GX_ANIMATION_INFO main_screen_animation_2 = {
5618     (GX_WIDGET *) &main_screen.main_screen_home_window,
5619     (GX_WIDGET *) &main_screen,
5620     GX_NULL,
5621     GX_ANIMATION_TRANSLATE, 0, 0, 1,
5622     {44, 90}, {44, 90}, 0, 255, 3
5623 };
5624 
5625 
5626 GX_STUDIO_ACTION main_screen_on_user_event_fade_out_home_windowactions[2] = {
5627     {GX_ACTION_TYPE_ANIMATION, 0, &main_screen, &main_screen.main_screen_home_window, &main_screen_animation_1},
5628     {0, 0, GX_NULL, GX_NULL, GX_NULL}
5629 };
5630 
5631 
5632 GX_STUDIO_ACTION main_screen_on_user_event_fade_in_home_windowactions[2] = {
5633     {GX_ACTION_TYPE_ANIMATION, 0, &main_screen, &main_screen.main_screen_home_window, &main_screen_animation_2},
5634     {0, 0, GX_NULL, GX_NULL, GX_NULL}
5635 };
5636 
5637 static GX_STUDIO_EVENT_ENTRY gx_studio_main_screen_event_table[] = {
5638     { USER_EVENT_FADE_OUT_HOME_WINDOW, 0, main_screen_on_user_event_fade_out_home_windowactions},
5639     { USER_EVENT_FADE_IN_HOME_WINDOW, 0, main_screen_on_user_event_fade_in_home_windowactions},
5640     {0, 0, GX_NULL}
5641 };
5642 
5643 GX_STUDIO_EVENT_PROCESS main_screen_event_chain = {gx_studio_main_screen_event_table, (UINT (*)(GX_WIDGET *, GX_EVENT *))main_screen_event_process};
gx_studio_main_screen_event_process(GX_WIDGET * target,GX_EVENT * event_ptr)5644 static UINT gx_studio_main_screen_event_process(GX_WIDGET *target, GX_EVENT *event_ptr)
5645 {
5646     return (gx_studio_auto_event_handler(target, event_ptr, &main_screen_event_chain));
5647 }
5648 
5649 
5650 GX_CONST GX_STUDIO_WIDGET main_screen_define =
5651 {
5652     "main_screen",
5653     GX_TYPE_WINDOW,                          /* widget type                    */
5654     GX_ID_NONE,                              /* widget id                      */
5655     #if defined(GX_WIDGET_USER_DATA)
5656     0,                                       /* user data                      */
5657     #endif
5658     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
5659     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
5660     sizeof(MAIN_SCREEN_CONTROL_BLOCK),       /* control block size             */
5661     GX_COLOR_ID_CANVAS,                      /* normal color id                */
5662     GX_COLOR_ID_CANVAS,                      /* selected color id              */
5663     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5664     gx_studio_window_create,                 /* create function                */
5665     (VOID (*)(GX_WIDGET *)) main_screen_draw, /* drawing function override     */
5666     (UINT (*)(GX_WIDGET *, GX_EVENT *)) gx_studio_main_screen_event_process, /* event function override */
5667     {0, 0, 639, 479},                        /* widget size                    */
5668     GX_NULL,                                 /* next widget                    */
5669     &main_screen_window_define,              /* child widget                   */
5670     0,                                       /* control block                  */
5671     (void *) &main_screen_properties         /* extended properties            */
5672 };
5673 GX_TEMPLATE_PROPERTIES thermostat_base_properties =
5674 {
5675     &controller_base_define,                 /* base info                      */
5676     gx_studio_window_create,                 /* base create function           */
5677     {19, 92, 315, 386}                       /* widget size                    */
5678 };
5679 GX_ICON_PROPERTIES thermostat_base_ruller_thermostat_properties =
5680 {
5681     GX_PIXELMAP_ID_RULLER_THERMOSTAT,        /* normal pixelmap id             */
5682     0                                        /* selected pixelmap id           */
5683 };
5684 GX_PROMPT_PROPERTIES thermostat_base_prompt_16_properties =
5685 {
5686     GX_STRING_ID_STRING_55,                  /* string id                      */
5687     GX_FONT_ID_TINY,                         /* font id                        */
5688     GX_COLOR_ID_TEXT,                        /* normal text color              */
5689     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5690     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5691 };
5692 GX_PROMPT_PROPERTIES thermostat_base_prompt_16_1_properties =
5693 {
5694     GX_STRING_ID_STRING_57,                  /* string id                      */
5695     GX_FONT_ID_TINY,                         /* font id                        */
5696     GX_COLOR_ID_TEXT,                        /* normal text color              */
5697     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5698     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5699 };
5700 GX_PROMPT_PROPERTIES thermostat_base_prompt_16_2_properties =
5701 {
5702     GX_STRING_ID_STRING_56,                  /* string id                      */
5703     GX_FONT_ID_TINY,                         /* font id                        */
5704     GX_COLOR_ID_TEXT,                        /* normal text color              */
5705     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5706     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5707 };
5708 GX_PROMPT_PROPERTIES thermostat_base_prompt_16_3_properties =
5709 {
5710     GX_STRING_ID_STRING_58,                  /* string id                      */
5711     GX_FONT_ID_TINY,                         /* font id                        */
5712     GX_COLOR_ID_TEXT,                        /* normal text color              */
5713     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5714     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5715 };
5716 GX_PROMPT_PROPERTIES thermostat_base_prompt_16_4_properties =
5717 {
5718     GX_STRING_ID_STRING_59,                  /* string id                      */
5719     GX_FONT_ID_TINY,                         /* font id                        */
5720     GX_COLOR_ID_TEXT,                        /* normal text color              */
5721     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5722     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5723 };
5724 GX_PROMPT_PROPERTIES thermostat_base_prompt_16_5_properties =
5725 {
5726     GX_STRING_ID_STRING_61,                  /* string id                      */
5727     GX_FONT_ID_TINY,                         /* font id                        */
5728     GX_COLOR_ID_TEXT,                        /* normal text color              */
5729     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5730     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5731 };
5732 GX_PROMPT_PROPERTIES thermostat_base_prompt_16_6_properties =
5733 {
5734     GX_STRING_ID_STRING_60,                  /* string id                      */
5735     GX_FONT_ID_TINY,                         /* font id                        */
5736     GX_COLOR_ID_TEXT,                        /* normal text color              */
5737     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5738     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5739 };
5740 GX_PROMPT_PROPERTIES thermostat_base_prompt_16_7_properties =
5741 {
5742     GX_STRING_ID_STRING_62,                  /* string id                      */
5743     GX_FONT_ID_TINY,                         /* font id                        */
5744     GX_COLOR_ID_TEXT,                        /* normal text color              */
5745     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5746     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5747 };
5748 GX_PROMPT_PROPERTIES thermostat_base_prompt_16_8_properties =
5749 {
5750     GX_STRING_ID_STRING_63,                  /* string id                      */
5751     GX_FONT_ID_TINY,                         /* font id                        */
5752     GX_COLOR_ID_TEXT,                        /* normal text color              */
5753     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5754     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5755 };
5756 GX_RADIAL_SLIDER_PROPERTIES thermostat_base_radial_slider_properties =
5757 {
5758     95,                                      /* xcenter                        */
5759     92,                                      /* ycenter                        */
5760     78,                                      /* radius                         */
5761     22,                                      /* track width                    */
5762     230,                                     /* current angle                  */
5763     -50,                                     /* min angle                      */
5764     230,                                     /* max angle                      */
5765     GX_PIXELMAP_ID_RULLER_BACKGROUND,        /* background pixelmap            */
5766     GX_PIXELMAP_ID_CIRCULAR_DIAL,            /* needle pixelmap                */
5767     15,                                      /* animation total steps          */
5768     2,                                       /* animation delay                */
5769     GX_ANIMATION_CIRC_EASE_IN_OUT,           /* animation style                */
5770     thermostat_radial_slider_value_update,   /* animation update callback func */
5771 };
5772 GX_PROMPT_PROPERTIES thermostat_base_cold_heat_text_properties =
5773 {
5774     GX_STRING_ID_STRING_52,                  /* string id                      */
5775     GX_FONT_ID_SMALL,                        /* font id                        */
5776     GX_COLOR_ID_TEXT,                        /* normal text color              */
5777     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5778     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5779 };
5780 GX_PROMPT_PROPERTIES thermostat_base_current_label_properties =
5781 {
5782     GX_STRING_ID_STRING_53,                  /* string id                      */
5783     GX_FONT_ID_SMALL,                        /* font id                        */
5784     GX_COLOR_ID_TEXT,                        /* normal text color              */
5785     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5786     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5787 };
5788 GX_NUMERIC_PROMPT_PROPERTIES thermostat_base_center_value_properties =
5789 {
5790     0,                                       /* string id                      */
5791     GX_FONT_ID_BIG,                          /* font id                        */
5792     GX_COLOR_ID_TEXT,                        /* normal text color              */
5793     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5794     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
5795     GX_NULL,                                 /* format function                */
5796     40                                       /* numeric prompt value           */
5797 };
5798 GX_PROMPT_PROPERTIES thermostat_base_dot_lable_properties =
5799 {
5800     GX_STRING_ID_STRING_18,                  /* string id                      */
5801     GX_FONT_ID_NORMAL,                       /* font id                        */
5802     GX_COLOR_ID_TEXT,                        /* normal text color              */
5803     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5804     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5805 };
5806 GX_PROMPT_PROPERTIES thermostat_base_prompt_15_properties =
5807 {
5808     GX_STRING_ID_STRING_18,                  /* string id                      */
5809     GX_FONT_ID_TINY,                         /* font id                        */
5810     GX_COLOR_ID_TEXT,                        /* normal text color              */
5811     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5812     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5813 };
5814 GX_ICON_PROPERTIES thermostat_base_cold_heat_icon_properties =
5815 {
5816     GX_PIXELMAP_ID_BOX_ICON_HEAT,            /* normal pixelmap id             */
5817     0                                        /* selected pixelmap id           */
5818 };
5819 GX_PROMPT_PROPERTIES thermostat_base_bottom_value_properties =
5820 {
5821     GX_STRING_ID_STRING_54,                  /* string id                      */
5822     GX_FONT_ID_SMALL,                        /* font id                        */
5823     GX_COLOR_ID_TEXT,                        /* normal text color              */
5824     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
5825     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
5826 };
5827 GX_PIXELMAP_BUTTON_PROPERTIES thermostat_base_button_close_properties =
5828 {
5829     GX_PIXELMAP_ID_BOX_ICON_POWER,           /* normal pixelmap id             */
5830     GX_PIXELMAP_ID_BOX_ICON_POWER_ACTIVE,    /* selected pixelmap id           */
5831     0                                        /* disabled pixelmap id           */
5832 };
5833 GX_PIXELMAP_BUTTON_PROPERTIES thermostat_base_button_open_properties =
5834 {
5835     GX_PIXELMAP_ID_BOX_ICON_POWER_LG,        /* normal pixelmap id             */
5836     GX_PIXELMAP_ID_BOX_ICON_POWER_LG,        /* selected pixelmap id           */
5837     0                                        /* disabled pixelmap id           */
5838 };
5839 
5840 GX_CONST GX_STUDIO_WIDGET thermostat_base_prompt_16_8_define =
5841 {
5842     "prompt_16_8",
5843     GX_TYPE_PROMPT,                          /* widget type                    */
5844     GX_ID_NONE,                              /* widget id                      */
5845     #if defined(GX_WIDGET_USER_DATA)
5846     0,                                       /* user data                      */
5847     #endif
5848     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5849     0,                                       /* status flags                   */
5850     sizeof(GX_PROMPT),                       /* control block size             */
5851     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5852     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5853     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5854     gx_studio_prompt_create,                 /* create function                */
5855     GX_NULL,                                 /* drawing function override      */
5856     GX_NULL,                                 /* event function override        */
5857     {223, 322, 240, 331},                    /* widget size                    */
5858     GX_NULL,                                 /* no next widget                 */
5859     GX_NULL,                                 /* no child widgets               */
5860     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_prompt_16_8), /* control block */
5861     (void *) &thermostat_base_prompt_16_8_properties /* extended properties    */
5862 };
5863 
5864 GX_CONST GX_STUDIO_WIDGET thermostat_base_prompt_16_7_define =
5865 {
5866     "prompt_16_7",
5867     GX_TYPE_PROMPT,                          /* widget type                    */
5868     GX_ID_NONE,                              /* widget id                      */
5869     #if defined(GX_WIDGET_USER_DATA)
5870     0,                                       /* user data                      */
5871     #endif
5872     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5873     0,                                       /* status flags                   */
5874     sizeof(GX_PROMPT),                       /* control block size             */
5875     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5876     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5877     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5878     gx_studio_prompt_create,                 /* create function                */
5879     GX_NULL,                                 /* drawing function override      */
5880     GX_NULL,                                 /* event function override        */
5881     {252, 274, 269, 283},                    /* widget size                    */
5882     &thermostat_base_prompt_16_8_define,     /* next widget definition         */
5883     GX_NULL,                                 /* no child widgets               */
5884     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_prompt_16_7), /* control block */
5885     (void *) &thermostat_base_prompt_16_7_properties /* extended properties    */
5886 };
5887 
5888 GX_CONST GX_STUDIO_WIDGET thermostat_base_prompt_16_6_define =
5889 {
5890     "prompt_16_6",
5891     GX_TYPE_PROMPT,                          /* widget type                    */
5892     GX_ID_NONE,                              /* widget id                      */
5893     #if defined(GX_WIDGET_USER_DATA)
5894     0,                                       /* user data                      */
5895     #endif
5896     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5897     0,                                       /* status flags                   */
5898     sizeof(GX_PROMPT),                       /* control block size             */
5899     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5900     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5901     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5902     gx_studio_prompt_create,                 /* create function                */
5903     GX_NULL,                                 /* drawing function override      */
5904     GX_NULL,                                 /* event function override        */
5905     {218, 163, 229, 172},                    /* widget size                    */
5906     &thermostat_base_prompt_16_7_define,     /* next widget definition         */
5907     GX_NULL,                                 /* no child widgets               */
5908     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_prompt_16_6), /* control block */
5909     (void *) &thermostat_base_prompt_16_6_properties /* extended properties    */
5910 };
5911 
5912 GX_CONST GX_STUDIO_WIDGET thermostat_base_prompt_16_5_define =
5913 {
5914     "prompt_16_5",
5915     GX_TYPE_PROMPT,                          /* widget type                    */
5916     GX_ID_NONE,                              /* widget id                      */
5917     #if defined(GX_WIDGET_USER_DATA)
5918     0,                                       /* user data                      */
5919     #endif
5920     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5921     0,                                       /* status flags                   */
5922     sizeof(GX_PROMPT),                       /* control block size             */
5923     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5924     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5925     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5926     gx_studio_prompt_create,                 /* create function                */
5927     GX_NULL,                                 /* drawing function override      */
5928     GX_NULL,                                 /* event function override        */
5929     {250, 213, 267, 222},                    /* widget size                    */
5930     &thermostat_base_prompt_16_6_define,     /* next widget definition         */
5931     GX_NULL,                                 /* no child widgets               */
5932     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_prompt_16_5), /* control block */
5933     (void *) &thermostat_base_prompt_16_5_properties /* extended properties    */
5934 };
5935 
5936 GX_CONST GX_STUDIO_WIDGET thermostat_base_prompt_16_4_define =
5937 {
5938     "prompt_16_4",
5939     GX_TYPE_PROMPT,                          /* widget type                    */
5940     GX_ID_NONE,                              /* widget id                      */
5941     #if defined(GX_WIDGET_USER_DATA)
5942     0,                                       /* user data                      */
5943     #endif
5944     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5945     0,                                       /* status flags                   */
5946     sizeof(GX_PROMPT),                       /* control block size             */
5947     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5948     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5949     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5950     gx_studio_prompt_create,                 /* create function                */
5951     GX_NULL,                                 /* drawing function override      */
5952     GX_NULL,                                 /* event function override        */
5953     {160, 144, 171, 153},                    /* widget size                    */
5954     &thermostat_base_prompt_16_5_define,     /* next widget definition         */
5955     GX_NULL,                                 /* no child widgets               */
5956     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_prompt_16_4), /* control block */
5957     (void *) &thermostat_base_prompt_16_4_properties /* extended properties    */
5958 };
5959 
5960 GX_CONST GX_STUDIO_WIDGET thermostat_base_prompt_16_3_define =
5961 {
5962     "prompt_16_3",
5963     GX_TYPE_PROMPT,                          /* widget type                    */
5964     GX_ID_NONE,                              /* widget id                      */
5965     #if defined(GX_WIDGET_USER_DATA)
5966     0,                                       /* user data                      */
5967     #endif
5968     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5969     0,                                       /* status flags                   */
5970     sizeof(GX_PROMPT),                       /* control block size             */
5971     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5972     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5973     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5974     gx_studio_prompt_create,                 /* create function                */
5975     GX_NULL,                                 /* drawing function override      */
5976     GX_NULL,                                 /* event function override        */
5977     {102, 163, 113, 172},                    /* widget size                    */
5978     &thermostat_base_prompt_16_4_define,     /* next widget definition         */
5979     GX_NULL,                                 /* no child widgets               */
5980     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_prompt_16_3), /* control block */
5981     (void *) &thermostat_base_prompt_16_3_properties /* extended properties    */
5982 };
5983 
5984 GX_CONST GX_STUDIO_WIDGET thermostat_base_prompt_16_2_define =
5985 {
5986     "prompt_16_2",
5987     GX_TYPE_PROMPT,                          /* widget type                    */
5988     GX_ID_NONE,                              /* widget id                      */
5989     #if defined(GX_WIDGET_USER_DATA)
5990     0,                                       /* user data                      */
5991     #endif
5992     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
5993     0,                                       /* status flags                   */
5994     sizeof(GX_PROMPT),                       /* control block size             */
5995     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
5996     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
5997     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
5998     gx_studio_prompt_create,                 /* create function                */
5999     GX_NULL,                                 /* drawing function override      */
6000     GX_NULL,                                 /* event function override        */
6001     {66, 211, 77, 220},                      /* widget size                    */
6002     &thermostat_base_prompt_16_3_define,     /* next widget definition         */
6003     GX_NULL,                                 /* no child widgets               */
6004     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_prompt_16_2), /* control block */
6005     (void *) &thermostat_base_prompt_16_2_properties /* extended properties    */
6006 };
6007 
6008 GX_CONST GX_STUDIO_WIDGET thermostat_base_prompt_16_1_define =
6009 {
6010     "prompt_16_1",
6011     GX_TYPE_PROMPT,                          /* widget type                    */
6012     GX_ID_NONE,                              /* widget id                      */
6013     #if defined(GX_WIDGET_USER_DATA)
6014     0,                                       /* user data                      */
6015     #endif
6016     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6017     0,                                       /* status flags                   */
6018     sizeof(GX_PROMPT),                       /* 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_DISABLED_FILL,               /* disabled color id              */
6022     gx_studio_prompt_create,                 /* create function                */
6023     GX_NULL,                                 /* drawing function override      */
6024     GX_NULL,                                 /* event function override        */
6025     {64, 273, 75, 282},                      /* widget size                    */
6026     &thermostat_base_prompt_16_2_define,     /* next widget definition         */
6027     GX_NULL,                                 /* no child widgets               */
6028     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_prompt_16_1), /* control block */
6029     (void *) &thermostat_base_prompt_16_1_properties /* extended properties    */
6030 };
6031 
6032 GX_CONST GX_STUDIO_WIDGET thermostat_base_prompt_16_define =
6033 {
6034     "prompt_16",
6035     GX_TYPE_PROMPT,                          /* widget type                    */
6036     GX_ID_NONE,                              /* widget id                      */
6037     #if defined(GX_WIDGET_USER_DATA)
6038     0,                                       /* user data                      */
6039     #endif
6040     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6041     0,                                       /* status flags                   */
6042     sizeof(GX_PROMPT),                       /* control block size             */
6043     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6044     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6045     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6046     gx_studio_prompt_create,                 /* create function                */
6047     GX_NULL,                                 /* drawing function override      */
6048     GX_NULL,                                 /* event function override        */
6049     {97, 321, 108, 330},                     /* widget size                    */
6050     &thermostat_base_prompt_16_1_define,     /* next widget definition         */
6051     GX_NULL,                                 /* no child widgets               */
6052     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_prompt_16), /* control block */
6053     (void *) &thermostat_base_prompt_16_properties /* extended properties      */
6054 };
6055 
6056 GX_CONST GX_STUDIO_WIDGET thermostat_base_bottom_value_define =
6057 {
6058     "bottom_value",
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_DISABLED_FILL,               /* disabled color id              */
6070     gx_studio_prompt_create,                 /* create function                */
6071     GX_NULL,                                 /* drawing function override      */
6072     GX_NULL,                                 /* event function override        */
6073     {166, 339, 211, 351},                    /* widget size                    */
6074     GX_NULL,                                 /* no next widget                 */
6075     GX_NULL,                                 /* no child widgets               */
6076     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_bottom_value), /* control block */
6077     (void *) &thermostat_base_bottom_value_properties /* extended properties   */
6078 };
6079 
6080 GX_CONST GX_STUDIO_WIDGET thermostat_base_cold_heat_icon_define =
6081 {
6082     "cold_heat_icon",
6083     GX_TYPE_ICON,                            /* widget type                    */
6084     GX_ID_NONE,                              /* widget id                      */
6085     #if defined(GX_WIDGET_USER_DATA)
6086     0,                                       /* user data                      */
6087     #endif
6088     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
6089     0,                                       /* status flags                   */
6090     sizeof(GX_ICON),                         /* control block size             */
6091     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6092     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6093     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6094     gx_studio_icon_create,                   /* create function                */
6095     GX_NULL,                                 /* drawing function override      */
6096     GX_NULL,                                 /* event function override        */
6097     {157, 290, 177, 308},                    /* widget size                    */
6098     &thermostat_base_bottom_value_define,    /* next widget definition         */
6099     GX_NULL,                                 /* no child widgets               */
6100     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_cold_heat_icon), /* control block */
6101     (void *) &thermostat_base_cold_heat_icon_properties /* extended properties */
6102 };
6103 
6104 GX_CONST GX_STUDIO_WIDGET thermostat_base_prompt_15_define =
6105 {
6106     "prompt_15",
6107     GX_TYPE_PROMPT,                          /* widget type                    */
6108     GX_ID_NONE,                              /* widget id                      */
6109     #if defined(GX_WIDGET_USER_DATA)
6110     0,                                       /* user data                      */
6111     #endif
6112     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6113     0,                                       /* status flags                   */
6114     sizeof(GX_PROMPT),                       /* control block size             */
6115     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6116     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6117     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6118     gx_studio_prompt_create,                 /* create function                */
6119     GX_NULL,                                 /* drawing function override      */
6120     GX_NULL,                                 /* event function override        */
6121     {204, 334, 209, 343},                    /* widget size                    */
6122     &thermostat_base_cold_heat_icon_define,  /* next widget definition         */
6123     GX_NULL,                                 /* no child widgets               */
6124     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_prompt_15), /* control block */
6125     (void *) &thermostat_base_prompt_15_properties /* extended properties      */
6126 };
6127 
6128 GX_CONST GX_STUDIO_WIDGET thermostat_base_dot_lable_define =
6129 {
6130     "dot_lable",
6131     GX_TYPE_PROMPT,                          /* widget type                    */
6132     GX_ID_NONE,                              /* widget id                      */
6133     #if defined(GX_WIDGET_USER_DATA)
6134     0,                                       /* user data                      */
6135     #endif
6136     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6137     0,                                       /* status flags                   */
6138     sizeof(GX_PROMPT),                       /* control block size             */
6139     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6140     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6141     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6142     gx_studio_prompt_create,                 /* create function                */
6143     GX_NULL,                                 /* drawing function override      */
6144     GX_NULL,                                 /* event function override        */
6145     {200, 220, 212, 242},                    /* widget size                    */
6146     &thermostat_base_prompt_15_define,       /* next widget definition         */
6147     GX_NULL,                                 /* no child widgets               */
6148     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_dot_lable), /* control block */
6149     (void *) &thermostat_base_dot_lable_properties /* extended properties      */
6150 };
6151 
6152 GX_CONST GX_STUDIO_WIDGET thermostat_base_center_value_define =
6153 {
6154     "center_value",
6155     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
6156     GX_ID_NONE,                              /* widget id                      */
6157     #if defined(GX_WIDGET_USER_DATA)
6158     0,                                       /* user data                      */
6159     #endif
6160     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6161     0,                                       /* status flags                   */
6162     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
6163     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6164     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6165     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6166     gx_studio_numeric_prompt_create,         /* create function                */
6167     GX_NULL,                                 /* drawing function override      */
6168     GX_NULL,                                 /* event function override        */
6169     {120, 224, 215, 275},                    /* widget size                    */
6170     &thermostat_base_dot_lable_define,       /* next widget definition         */
6171     GX_NULL,                                 /* no child widgets               */
6172     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_center_value), /* control block */
6173     (void *) &thermostat_base_center_value_properties /* extended properties   */
6174 };
6175 
6176 GX_CONST GX_STUDIO_WIDGET thermostat_base_current_label_define =
6177 {
6178     "current_label",
6179     GX_TYPE_PROMPT,                          /* widget type                    */
6180     GX_ID_NONE,                              /* widget id                      */
6181     #if defined(GX_WIDGET_USER_DATA)
6182     0,                                       /* user data                      */
6183     #endif
6184     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6185     0,                                       /* status flags                   */
6186     sizeof(GX_PROMPT),                       /* control block size             */
6187     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6188     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6189     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6190     gx_studio_prompt_create,                 /* create function                */
6191     GX_NULL,                                 /* drawing function override      */
6192     GX_NULL,                                 /* event function override        */
6193     {124, 338, 169, 350},                    /* widget size                    */
6194     &thermostat_base_center_value_define,    /* next widget definition         */
6195     GX_NULL,                                 /* no child widgets               */
6196     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_current_label), /* control block */
6197     (void *) &thermostat_base_current_label_properties /* extended properties  */
6198 };
6199 
6200 GX_CONST GX_STUDIO_WIDGET thermostat_base_cold_heat_text_define =
6201 {
6202     "cold_heat_text",
6203     GX_TYPE_PROMPT,                          /* widget type                    */
6204     GX_ID_NONE,                              /* widget id                      */
6205     #if defined(GX_WIDGET_USER_DATA)
6206     0,                                       /* user data                      */
6207     #endif
6208     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_COPY|GX_STYLE_TEXT_CENTER,   /* style flags */
6209     0,                                       /* status flags                   */
6210     sizeof(GX_PROMPT),                       /* control block size             */
6211     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6212     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6213     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6214     gx_studio_prompt_create,                 /* create function                */
6215     GX_NULL,                                 /* drawing function override      */
6216     GX_NULL,                                 /* event function override        */
6217     {125, 318, 206, 330},                    /* widget size                    */
6218     &thermostat_base_current_label_define,   /* next widget definition         */
6219     GX_NULL,                                 /* no child widgets               */
6220     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_cold_heat_text), /* control block */
6221     (void *) &thermostat_base_cold_heat_text_properties /* extended properties */
6222 };
6223 
6224 GX_CONST GX_STUDIO_WIDGET thermostat_base_button_open_define =
6225 {
6226     "button_open",
6227     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
6228     ID_OPEN,                                 /* widget id                      */
6229     #if defined(GX_WIDGET_USER_DATA)
6230     0,                                       /* user data                      */
6231     #endif
6232     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
6233     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6234     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
6235     GX_COLOR_ID_PLUS_NORMAL,                 /* normal color id                */
6236     GX_COLOR_ID_PLUS_SELECTED,               /* selected color id              */
6237     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6238     gx_studio_pixelmap_button_create,        /* create function                */
6239     GX_NULL,                                 /* drawing function override      */
6240     GX_NULL,                                 /* event function override        */
6241     {116, 178, 221, 301},                    /* widget size                    */
6242     GX_NULL,                                 /* no next widget                 */
6243     GX_NULL,                                 /* no child widgets               */
6244     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_button_open), /* control block */
6245     (void *) &thermostat_base_button_open_properties /* extended properties    */
6246 };
6247 
6248 GX_CONST GX_STUDIO_WIDGET thermostat_base_button_close_define =
6249 {
6250     "button_close",
6251     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
6252     ID_CLOSE,                                /* widget id                      */
6253     #if defined(GX_WIDGET_USER_DATA)
6254     0,                                       /* user data                      */
6255     #endif
6256     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
6257     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6258     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
6259     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6260     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6261     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6262     gx_studio_pixelmap_button_create,        /* create function                */
6263     GX_NULL,                                 /* drawing function override      */
6264     GX_NULL,                                 /* event function override        */
6265     {279, 347, 301, 374},                    /* widget size                    */
6266     &thermostat_base_button_open_define,     /* next widget definition         */
6267     GX_NULL,                                 /* no child widgets               */
6268     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_button_close), /* control block */
6269     (void *) &thermostat_base_button_close_properties /* extended properties   */
6270 };
6271 
6272 GX_CONST GX_STUDIO_WIDGET thermostat_base_radial_slider_define =
6273 {
6274     "radial_slider",
6275     GX_TYPE_RADIAL_SLIDER,                   /* widget type                    */
6276     ID_RADIAL_SLIDER,                        /* widget id                      */
6277     #if defined(GX_WIDGET_USER_DATA)
6278     0,                                       /* user data                      */
6279     #endif
6280     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
6281     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6282     sizeof(GX_RADIAL_SLIDER),                /* control block size             */
6283     GX_COLOR_ID_RULLER_BG,                   /* normal color id                */
6284     GX_COLOR_ID_RULLER_BG,                   /* selected color id              */
6285     GX_COLOR_ID_RULLER_BG,                   /* disabled color id              */
6286     gx_studio_radial_slider_create,          /* create function                */
6287     (VOID (*)(GX_WIDGET *)) custom_radial_slider_draw, /* drawing function override */
6288     GX_NULL,                                 /* event function override        */
6289     {72, 156, 260, 356},                     /* widget size                    */
6290     &thermostat_base_button_close_define,    /* next widget definition         */
6291     &thermostat_base_cold_heat_text_define,  /* child widget definition        */
6292     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_radial_slider), /* control block */
6293     (void *) &thermostat_base_radial_slider_properties /* extended properties  */
6294 };
6295 
6296 GX_CONST GX_STUDIO_WIDGET thermostat_base_ruller_thermostat_define =
6297 {
6298     "ruller_thermostat",
6299     GX_TYPE_ICON,                            /* widget type                    */
6300     GX_ID_NONE,                              /* widget id                      */
6301     #if defined(GX_WIDGET_USER_DATA)
6302     0,                                       /* user data                      */
6303     #endif
6304     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
6305     0,                                       /* status flags                   */
6306     sizeof(GX_ICON),                         /* control block size             */
6307     GX_COLOR_ID_WHITE,                       /* normal color id                */
6308     GX_COLOR_ID_WHITE,                       /* selected color id              */
6309     GX_COLOR_ID_WHITE,                       /* disabled color id              */
6310     gx_studio_icon_create,                   /* create function                */
6311     GX_NULL,                                 /* drawing function override      */
6312     GX_NULL,                                 /* event function override        */
6313     {36, 118, 297, 352},                     /* widget size                    */
6314     &thermostat_base_radial_slider_define,   /* next widget definition         */
6315     &thermostat_base_prompt_16_define,       /* child widget definition        */
6316     offsetof(THERMOSTAT_BASE_CONTROL_BLOCK, thermostat_base_ruller_thermostat), /* control block */
6317     (void *) &thermostat_base_ruller_thermostat_properties /* extended properties */
6318 };
6319 
6320 GX_CONST GX_STUDIO_WIDGET thermostat_base_define =
6321 {
6322     "thermostat_base",
6323     GX_TYPE_TEMPLATE,                        /* widget type                    */
6324     GX_ID_NONE,                              /* widget id                      */
6325     #if defined(GX_WIDGET_USER_DATA)
6326     0,                                       /* user data                      */
6327     #endif
6328     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
6329     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6330     sizeof(THERMOSTAT_BASE_CONTROL_BLOCK),   /* control block size             */
6331     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
6332     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
6333     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6334     gx_studio_template_create,               /* create function                */
6335     GX_NULL,                                 /* drawing function override      */
6336     (UINT (*)(GX_WIDGET *, GX_EVENT *)) thermostat_base_event_process, /* event function override */
6337     {19, 92, 315, 386},                      /* widget size                    */
6338     GX_NULL,                                 /* next widget                    */
6339     &thermostat_base_ruller_thermostat_define, /* child widget                 */
6340     0,                                       /* control block                  */
6341     (void *) &thermostat_base_properties     /* extended properties            */
6342 };
6343 GX_TEMPLATE_PROPERTIES thermostat_screen_properties =
6344 {
6345     &screen_base_define,                     /* base info                      */
6346     gx_studio_window_create,                 /* base create function           */
6347     {0, 0, 639, 479}                         /* widget size                    */
6348 };
6349 GX_RADIO_BUTTON_PROPERTIES thermostat_screen_pagination_1_properties =
6350 {
6351     0,                                       /* string id                      */
6352     GX_FONT_ID_BUTTON,                       /* font id                        */
6353     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
6354     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
6355     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
6356     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
6357     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
6358     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
6359     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
6360 };
6361 GX_RADIO_BUTTON_PROPERTIES thermostat_screen_pagination_2_properties =
6362 {
6363     0,                                       /* string id                      */
6364     GX_FONT_ID_BUTTON,                       /* font id                        */
6365     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
6366     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
6367     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
6368     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
6369     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
6370     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
6371     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
6372 };
6373 GX_RADIO_BUTTON_PROPERTIES thermostat_screen_pagination_3_properties =
6374 {
6375     0,                                       /* string id                      */
6376     GX_FONT_ID_BUTTON,                       /* font id                        */
6377     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
6378     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
6379     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
6380     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
6381     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
6382     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
6383     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
6384 };
6385 GX_RADIO_BUTTON_PROPERTIES thermostat_screen_pagination_4_properties =
6386 {
6387     0,                                       /* string id                      */
6388     GX_FONT_ID_BUTTON,                       /* font id                        */
6389     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
6390     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
6391     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
6392     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
6393     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
6394     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
6395     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
6396 };
6397 GX_WINDOW_PROPERTIES thermostat_screen_info_win_properties =
6398 {
6399     0                                        /* wallpaper pixelmap id          */
6400 };
6401 GX_PROMPT_PROPERTIES thermostat_screen_on_lable_properties =
6402 {
6403     GX_STRING_ID_STRING_65,                  /* string id                      */
6404     GX_FONT_ID_SMALL,                        /* font id                        */
6405     GX_COLOR_ID_TEXT,                        /* normal text color              */
6406     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6407     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
6408 };
6409 GX_ICON_PROPERTIES thermostat_screen_icon_properties =
6410 {
6411     GX_PIXELMAP_ID_FOOTER_NUMBER_CIRCLE_ACTIVE, /* normal pixelmap id          */
6412     0                                        /* selected pixelmap id           */
6413 };
6414 GX_NUMERIC_PROMPT_PROPERTIES thermostat_screen_num_on_properties =
6415 {
6416     0,                                       /* string id                      */
6417     GX_FONT_ID_SMALL,                        /* font id                        */
6418     GX_COLOR_ID_TEXT,                        /* normal text color              */
6419     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6420     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
6421     GX_NULL,                                 /* format function                */
6422     7                                        /* numeric prompt value           */
6423 };
6424 GX_ICON_PROPERTIES thermostat_screen_icon_1_properties =
6425 {
6426     GX_PIXELMAP_ID_FOOTER_NUMBER_CIRCLE,     /* normal pixelmap id             */
6427     0                                        /* selected pixelmap id           */
6428 };
6429 GX_NUMERIC_PROMPT_PROPERTIES thermostat_screen_num_off_properties =
6430 {
6431     0,                                       /* string id                      */
6432     GX_FONT_ID_SMALL,                        /* font id                        */
6433     GX_COLOR_ID_TEXT,                        /* normal text color              */
6434     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6435     GX_COLOR_ID_DISABLED,                    /* disabled text color            */
6436     GX_NULL,                                 /* format function                */
6437     0                                        /* numeric prompt value           */
6438 };
6439 GX_PROMPT_PROPERTIES thermostat_screen_off_lable_properties =
6440 {
6441     GX_STRING_ID_STRING_66,                  /* string id                      */
6442     GX_FONT_ID_SMALL,                        /* font id                        */
6443     GX_COLOR_ID_TEXT,                        /* normal text color              */
6444     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6445     GX_COLOR_ID_DISABLED                     /* disabled text color            */
6446 };
6447 GX_PROMPT_PROPERTIES thermostat_screen_kwh_lable_properties =
6448 {
6449     GX_STRING_ID_STRING_50,                  /* string id                      */
6450     GX_FONT_ID_SMALL,                        /* font id                        */
6451     GX_COLOR_ID_TEXT,                        /* normal text color              */
6452     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6453     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
6454 };
6455 GX_PROMPT_PROPERTIES thermostat_screen_kwh_lable_2_properties =
6456 {
6457     GX_STRING_ID_STRING_50,                  /* string id                      */
6458     GX_FONT_ID_SMALL,                        /* font id                        */
6459     GX_COLOR_ID_TEXT,                        /* normal text color              */
6460     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6461     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
6462 };
6463 GX_NUMERIC_PROMPT_PROPERTIES thermostat_screen_overall_today_properties =
6464 {
6465     0,                                       /* string id                      */
6466     GX_FONT_ID_SYSTEM,                       /* font id                        */
6467     GX_COLOR_ID_TEXT,                        /* normal text color              */
6468     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6469     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
6470     power_value_format,                      /* format function                */
6471     8746594                                  /* numeric prompt value           */
6472 };
6473 GX_NUMERIC_PROMPT_PROPERTIES thermostat_screen_energy_in_use_properties =
6474 {
6475     0,                                       /* string id                      */
6476     GX_FONT_ID_SYSTEM,                       /* font id                        */
6477     GX_COLOR_ID_TEXT,                        /* normal text color              */
6478     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6479     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
6480     power_value_format,                      /* format function                */
6481     68361                                    /* numeric prompt value           */
6482 };
6483 GX_PROMPT_PROPERTIES thermostat_screen_energy_in_use_lable_properties =
6484 {
6485     GX_STRING_ID_STRING_67,                  /* string id                      */
6486     GX_FONT_ID_SMALL,                        /* font id                        */
6487     GX_COLOR_ID_TEXT,                        /* normal text color              */
6488     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6489     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
6490 };
6491 GX_PROMPT_PROPERTIES thermostat_screen_overall_today_lable_properties =
6492 {
6493     GX_STRING_ID_STRING_68,                  /* string id                      */
6494     GX_FONT_ID_SMALL,                        /* font id                        */
6495     GX_COLOR_ID_TEXT,                        /* normal text color              */
6496     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6497     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
6498 };
6499 
6500 GX_CONST GX_STUDIO_WIDGET thermostat_screen_num_on_define =
6501 {
6502     "num_on",
6503     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
6504     GX_ID_NONE,                              /* widget id                      */
6505     #if defined(GX_WIDGET_USER_DATA)
6506     0,                                       /* user data                      */
6507     #endif
6508     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6509     0,                                       /* status flags                   */
6510     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
6511     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6512     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6513     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6514     gx_studio_numeric_prompt_create,         /* create function                */
6515     GX_NULL,                                 /* drawing function override      */
6516     GX_NULL,                                 /* event function override        */
6517     {427, 397, 434, 409},                    /* widget size                    */
6518     GX_NULL,                                 /* no next widget                 */
6519     GX_NULL,                                 /* no child widgets               */
6520     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_num_on), /* control block */
6521     (void *) &thermostat_screen_num_on_properties /* extended properties       */
6522 };
6523 
6524 GX_CONST GX_STUDIO_WIDGET thermostat_screen_num_off_define =
6525 {
6526     "num_off",
6527     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
6528     GX_ID_NONE,                              /* widget id                      */
6529     #if defined(GX_WIDGET_USER_DATA)
6530     0,                                       /* user data                      */
6531     #endif
6532     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6533     0,                                       /* status flags                   */
6534     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
6535     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6536     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6537     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6538     gx_studio_numeric_prompt_create,         /* create function                */
6539     GX_NULL,                                 /* drawing function override      */
6540     GX_NULL,                                 /* event function override        */
6541     {482, 397, 489, 409},                    /* widget size                    */
6542     GX_NULL,                                 /* no next widget                 */
6543     GX_NULL,                                 /* no child widgets               */
6544     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_num_off), /* control block */
6545     (void *) &thermostat_screen_num_off_properties /* extended properties      */
6546 };
6547 
6548 GX_CONST GX_STUDIO_WIDGET thermostat_screen_overall_today_lable_define =
6549 {
6550     "overall_today_lable",
6551     GX_TYPE_PROMPT,                          /* widget type                    */
6552     GX_ID_NONE,                              /* widget id                      */
6553     #if defined(GX_WIDGET_USER_DATA)
6554     0,                                       /* user data                      */
6555     #endif
6556     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6557     0,                                       /* status flags                   */
6558     sizeof(GX_PROMPT),                       /* control block size             */
6559     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6560     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6561     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6562     gx_studio_prompt_create,                 /* create function                */
6563     GX_NULL,                                 /* drawing function override      */
6564     GX_NULL,                                 /* event function override        */
6565     {326, 451, 424, 463},                    /* widget size                    */
6566     GX_NULL,                                 /* no next widget                 */
6567     GX_NULL,                                 /* no child widgets               */
6568     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_overall_today_lable), /* control block */
6569     (void *) &thermostat_screen_overall_today_lable_properties /* extended properties */
6570 };
6571 
6572 GX_CONST GX_STUDIO_WIDGET thermostat_screen_energy_in_use_lable_define =
6573 {
6574     "energy_in_use_lable",
6575     GX_TYPE_PROMPT,                          /* widget type                    */
6576     GX_ID_NONE,                              /* widget id                      */
6577     #if defined(GX_WIDGET_USER_DATA)
6578     0,                                       /* user data                      */
6579     #endif
6580     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6581     0,                                       /* status flags                   */
6582     sizeof(GX_PROMPT),                       /* control block size             */
6583     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6584     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6585     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6586     gx_studio_prompt_create,                 /* create function                */
6587     GX_NULL,                                 /* drawing function override      */
6588     GX_NULL,                                 /* event function override        */
6589     {346, 432, 440, 444},                    /* widget size                    */
6590     &thermostat_screen_overall_today_lable_define, /* next widget definition   */
6591     GX_NULL,                                 /* no child widgets               */
6592     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_energy_in_use_lable), /* control block */
6593     (void *) &thermostat_screen_energy_in_use_lable_properties /* extended properties */
6594 };
6595 
6596 GX_CONST GX_STUDIO_WIDGET thermostat_screen_energy_in_use_define =
6597 {
6598     "energy_in_use",
6599     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
6600     GX_ID_NONE,                              /* widget id                      */
6601     #if defined(GX_WIDGET_USER_DATA)
6602     0,                                       /* user data                      */
6603     #endif
6604     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_RIGHT,   /* style flags */
6605     0,                                       /* status flags                   */
6606     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
6607     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6608     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6609     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6610     gx_studio_numeric_prompt_create,         /* create function                */
6611     GX_NULL,                                 /* drawing function override      */
6612     GX_NULL,                                 /* event function override        */
6613     {450, 430, 500, 447},                    /* widget size                    */
6614     &thermostat_screen_energy_in_use_lable_define, /* next widget definition   */
6615     GX_NULL,                                 /* no child widgets               */
6616     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_energy_in_use), /* control block */
6617     (void *) &thermostat_screen_energy_in_use_properties /* extended properties */
6618 };
6619 
6620 GX_CONST GX_STUDIO_WIDGET thermostat_screen_overall_today_define =
6621 {
6622     "overall_today",
6623     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
6624     GX_ID_NONE,                              /* widget id                      */
6625     #if defined(GX_WIDGET_USER_DATA)
6626     0,                                       /* user data                      */
6627     #endif
6628     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_RIGHT,   /* style flags */
6629     0,                                       /* status flags                   */
6630     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
6631     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6632     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6633     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6634     gx_studio_numeric_prompt_create,         /* create function                */
6635     GX_NULL,                                 /* drawing function override      */
6636     GX_NULL,                                 /* event function override        */
6637     {432, 449, 500, 466},                    /* widget size                    */
6638     &thermostat_screen_energy_in_use_define, /* next widget definition         */
6639     GX_NULL,                                 /* no child widgets               */
6640     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_overall_today), /* control block */
6641     (void *) &thermostat_screen_overall_today_properties /* extended properties */
6642 };
6643 
6644 GX_CONST GX_STUDIO_WIDGET thermostat_screen_kwh_lable_2_define =
6645 {
6646     "kwh_lable_2",
6647     GX_TYPE_PROMPT,                          /* widget type                    */
6648     GX_ID_NONE,                              /* widget id                      */
6649     #if defined(GX_WIDGET_USER_DATA)
6650     0,                                       /* user data                      */
6651     #endif
6652     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6653     0,                                       /* status flags                   */
6654     sizeof(GX_PROMPT),                       /* control block size             */
6655     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6656     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6657     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6658     gx_studio_prompt_create,                 /* create function                */
6659     GX_NULL,                                 /* drawing function override      */
6660     GX_NULL,                                 /* event function override        */
6661     {504, 451, 528, 463},                    /* widget size                    */
6662     &thermostat_screen_overall_today_define, /* next widget definition         */
6663     GX_NULL,                                 /* no child widgets               */
6664     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_kwh_lable_2), /* control block */
6665     (void *) &thermostat_screen_kwh_lable_2_properties /* extended properties  */
6666 };
6667 
6668 GX_CONST GX_STUDIO_WIDGET thermostat_screen_kwh_lable_define =
6669 {
6670     "kwh_lable",
6671     GX_TYPE_PROMPT,                          /* widget type                    */
6672     GX_ID_NONE,                              /* widget id                      */
6673     #if defined(GX_WIDGET_USER_DATA)
6674     0,                                       /* user data                      */
6675     #endif
6676     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6677     0,                                       /* status flags                   */
6678     sizeof(GX_PROMPT),                       /* control block size             */
6679     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6680     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6681     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6682     gx_studio_prompt_create,                 /* create function                */
6683     GX_NULL,                                 /* drawing function override      */
6684     GX_NULL,                                 /* event function override        */
6685     {503, 432, 527, 444},                    /* widget size                    */
6686     &thermostat_screen_kwh_lable_2_define,   /* next widget definition         */
6687     GX_NULL,                                 /* no child widgets               */
6688     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_kwh_lable), /* control block */
6689     (void *) &thermostat_screen_kwh_lable_properties /* extended properties    */
6690 };
6691 
6692 GX_CONST GX_STUDIO_WIDGET thermostat_screen_off_lable_define =
6693 {
6694     "off_lable",
6695     GX_TYPE_PROMPT,                          /* widget type                    */
6696     GX_ID_NONE,                              /* widget id                      */
6697     #if defined(GX_WIDGET_USER_DATA)
6698     0,                                       /* user data                      */
6699     #endif
6700     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6701     0,                                       /* status flags                   */
6702     sizeof(GX_PROMPT),                       /* control block size             */
6703     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6704     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6705     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6706     gx_studio_prompt_create,                 /* create function                */
6707     GX_NULL,                                 /* drawing function override      */
6708     GX_NULL,                                 /* event function override        */
6709     {500, 398, 522, 410},                    /* widget size                    */
6710     &thermostat_screen_kwh_lable_define,     /* next widget definition         */
6711     GX_NULL,                                 /* no child widgets               */
6712     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_off_lable), /* control block */
6713     (void *) &thermostat_screen_off_lable_properties /* extended properties    */
6714 };
6715 
6716 GX_CONST GX_STUDIO_WIDGET thermostat_screen_icon_1_define =
6717 {
6718     "icon_1",
6719     GX_TYPE_ICON,                            /* widget type                    */
6720     GX_ID_NONE,                              /* widget id                      */
6721     #if defined(GX_WIDGET_USER_DATA)
6722     0,                                       /* user data                      */
6723     #endif
6724     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
6725     0,                                       /* status flags                   */
6726     sizeof(GX_ICON),                         /* control block size             */
6727     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6728     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6729     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6730     gx_studio_icon_create,                   /* create function                */
6731     GX_NULL,                                 /* drawing function override      */
6732     GX_NULL,                                 /* event function override        */
6733     {474, 393, 495, 413},                    /* widget size                    */
6734     &thermostat_screen_off_lable_define,     /* next widget definition         */
6735     &thermostat_screen_num_off_define,       /* child widget definition        */
6736     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_icon_1), /* control block */
6737     (void *) &thermostat_screen_icon_1_properties /* extended properties       */
6738 };
6739 
6740 GX_CONST GX_STUDIO_WIDGET thermostat_screen_icon_define =
6741 {
6742     "icon",
6743     GX_TYPE_ICON,                            /* widget type                    */
6744     GX_ID_NONE,                              /* widget id                      */
6745     #if defined(GX_WIDGET_USER_DATA)
6746     0,                                       /* user data                      */
6747     #endif
6748     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
6749     0,                                       /* status flags                   */
6750     sizeof(GX_ICON),                         /* control block size             */
6751     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6752     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6753     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6754     gx_studio_icon_create,                   /* create function                */
6755     GX_NULL,                                 /* drawing function override      */
6756     GX_NULL,                                 /* event function override        */
6757     {420, 393, 441, 413},                    /* widget size                    */
6758     &thermostat_screen_icon_1_define,        /* next widget definition         */
6759     &thermostat_screen_num_on_define,        /* child widget definition        */
6760     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_icon), /* control block */
6761     (void *) &thermostat_screen_icon_properties /* extended properties         */
6762 };
6763 
6764 GX_CONST GX_STUDIO_WIDGET thermostat_screen_on_lable_define =
6765 {
6766     "on_lable",
6767     GX_TYPE_PROMPT,                          /* widget type                    */
6768     GX_ID_NONE,                              /* widget id                      */
6769     #if defined(GX_WIDGET_USER_DATA)
6770     0,                                       /* user data                      */
6771     #endif
6772     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
6773     0,                                       /* status flags                   */
6774     sizeof(GX_PROMPT),                       /* control block size             */
6775     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
6776     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
6777     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6778     gx_studio_prompt_create,                 /* create function                */
6779     GX_NULL,                                 /* drawing function override      */
6780     GX_NULL,                                 /* event function override        */
6781     {446, 398, 463, 410},                    /* widget size                    */
6782     &thermostat_screen_icon_define,          /* next widget definition         */
6783     GX_NULL,                                 /* no child widgets               */
6784     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_on_lable), /* control block */
6785     (void *) &thermostat_screen_on_lable_properties /* extended properties     */
6786 };
6787 
6788 GX_CONST GX_STUDIO_WIDGET thermostat_screen_info_win_define =
6789 {
6790     "info_win",
6791     GX_TYPE_WINDOW,                          /* widget type                    */
6792     GX_ID_NONE,                              /* widget id                      */
6793     #if defined(GX_WIDGET_USER_DATA)
6794     0,                                       /* user data                      */
6795     #endif
6796     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
6797     0,                                       /* status flags                   */
6798     sizeof(GX_WINDOW),                       /* control block size             */
6799     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
6800     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
6801     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6802     gx_studio_window_create,                 /* create function                */
6803     GX_NULL,                                 /* drawing function override      */
6804     GX_NULL,                                 /* event function override        */
6805     {323, 387, 528, 469},                    /* widget size                    */
6806     GX_NULL,                                 /* no next widget                 */
6807     &thermostat_screen_on_lable_define,      /* child widget definition        */
6808     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_info_win), /* control block */
6809     (void *) &thermostat_screen_info_win_properties /* extended properties     */
6810 };
6811 
6812 GX_CONST GX_STUDIO_WIDGET thermostat_screen_pagination_4_define =
6813 {
6814     "pagination_4",
6815     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
6816     ID_PAGINATION_4,                         /* widget id                      */
6817     #if defined(GX_WIDGET_USER_DATA)
6818     0,                                       /* user data                      */
6819     #endif
6820     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
6821     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6822     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
6823     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6824     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6825     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6826     gx_studio_radio_button_create,           /* create function                */
6827     GX_NULL,                                 /* drawing function override      */
6828     GX_NULL,                                 /* event function override        */
6829     {353, 68, 368, 83},                      /* widget size                    */
6830     &thermostat_screen_info_win_define,      /* next widget definition         */
6831     GX_NULL,                                 /* no child widgets               */
6832     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_pagination_4), /* control block */
6833     (void *) &thermostat_screen_pagination_4_properties /* extended properties */
6834 };
6835 
6836 GX_CONST GX_STUDIO_WIDGET thermostat_screen_pagination_3_define =
6837 {
6838     "pagination_3",
6839     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
6840     ID_PAGINATION_3,                         /* widget id                      */
6841     #if defined(GX_WIDGET_USER_DATA)
6842     0,                                       /* user data                      */
6843     #endif
6844     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
6845     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6846     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
6847     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6848     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6849     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6850     gx_studio_radio_button_create,           /* create function                */
6851     GX_NULL,                                 /* drawing function override      */
6852     GX_NULL,                                 /* event function override        */
6853     {328, 68, 343, 83},                      /* widget size                    */
6854     &thermostat_screen_pagination_4_define,  /* next widget definition         */
6855     GX_NULL,                                 /* no child widgets               */
6856     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_pagination_3), /* control block */
6857     (void *) &thermostat_screen_pagination_3_properties /* extended properties */
6858 };
6859 
6860 GX_CONST GX_STUDIO_WIDGET thermostat_screen_pagination_2_define =
6861 {
6862     "pagination_2",
6863     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
6864     ID_PAGINATION_2,                         /* widget id                      */
6865     #if defined(GX_WIDGET_USER_DATA)
6866     0,                                       /* user data                      */
6867     #endif
6868     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
6869     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6870     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
6871     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6872     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6873     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6874     gx_studio_radio_button_create,           /* create function                */
6875     GX_NULL,                                 /* drawing function override      */
6876     GX_NULL,                                 /* event function override        */
6877     {302, 68, 317, 83},                      /* widget size                    */
6878     &thermostat_screen_pagination_3_define,  /* next widget definition         */
6879     GX_NULL,                                 /* no child widgets               */
6880     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_pagination_2), /* control block */
6881     (void *) &thermostat_screen_pagination_2_properties /* extended properties */
6882 };
6883 
6884 GX_CONST GX_STUDIO_WIDGET thermostat_screen_pagination_1_define =
6885 {
6886     "pagination_1",
6887     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
6888     ID_PAGINATION_1,                         /* widget id                      */
6889     #if defined(GX_WIDGET_USER_DATA)
6890     0,                                       /* user data                      */
6891     #endif
6892     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
6893     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6894     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
6895     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
6896     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
6897     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6898     gx_studio_radio_button_create,           /* create function                */
6899     GX_NULL,                                 /* drawing function override      */
6900     GX_NULL,                                 /* event function override        */
6901     {276, 68, 291, 83},                      /* widget size                    */
6902     &thermostat_screen_pagination_2_define,  /* next widget definition         */
6903     GX_NULL,                                 /* no child widgets               */
6904     offsetof(THERMOSTAT_SCREEN_CONTROL_BLOCK, thermostat_screen_pagination_1), /* control block */
6905     (void *) &thermostat_screen_pagination_1_properties /* extended properties */
6906 };
6907 
6908 GX_CONST GX_STUDIO_WIDGET thermostat_screen_define =
6909 {
6910     "thermostat_screen",
6911     GX_TYPE_TEMPLATE,                        /* widget type                    */
6912     ID_THERMOSTAT_SCREEN,                    /* widget id                      */
6913     #if defined(GX_WIDGET_USER_DATA)
6914     0,                                       /* user data                      */
6915     #endif
6916     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
6917     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
6918     sizeof(THERMOSTAT_SCREEN_CONTROL_BLOCK), /* control block size             */
6919     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
6920     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
6921     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
6922     gx_studio_template_create,               /* create function                */
6923     GX_NULL,                                 /* drawing function override      */
6924     GX_NULL,                                 /* event function override        */
6925     {0, 0, 639, 479},                        /* widget size                    */
6926     GX_NULL,                                 /* next widget                    */
6927     &thermostat_screen_pagination_1_define,  /* child widget                   */
6928     0,                                       /* control block                  */
6929     (void *) &thermostat_screen_properties   /* extended properties            */
6930 };
6931 GX_TEMPLATE_PROPERTIES lights_base_properties =
6932 {
6933     &controller_base_define,                 /* base info                      */
6934     gx_studio_window_create,                 /* base create function           */
6935     {20, 90, 316, 384}                       /* widget size                    */
6936 };
6937 GX_PIXELMAP_BUTTON_PROPERTIES lights_base_button_open_properties =
6938 {
6939     GX_PIXELMAP_ID_BOX_ICON_POWER_LG,        /* normal pixelmap id             */
6940     GX_PIXELMAP_ID_BOX_ICON_POWER_LG,        /* selected pixelmap id           */
6941     0                                        /* disabled pixelmap id           */
6942 };
6943 GX_ICON_PROPERTIES lights_base_icon_ruller_properties =
6944 {
6945     GX_PIXELMAP_ID_RULLER_LIGHTS,            /* normal pixelmap id             */
6946     0                                        /* selected pixelmap id           */
6947 };
6948 GX_PROMPT_PROPERTIES lights_base_prompt_16_properties =
6949 {
6950     GX_STRING_ID_STRING_1,                   /* string id                      */
6951     GX_FONT_ID_TINY,                         /* font id                        */
6952     GX_COLOR_ID_TEXT,                        /* normal text color              */
6953     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6954     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
6955 };
6956 GX_PROMPT_PROPERTIES lights_base_prompt_16_2_properties =
6957 {
6958     GX_STRING_ID_STRING_7,                   /* string id                      */
6959     GX_FONT_ID_TINY,                         /* font id                        */
6960     GX_COLOR_ID_TEXT,                        /* normal text color              */
6961     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6962     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
6963 };
6964 GX_PROMPT_PROPERTIES lights_base_prompt_16_3_properties =
6965 {
6966     GX_STRING_ID_STRING_8,                   /* string id                      */
6967     GX_FONT_ID_TINY,                         /* font id                        */
6968     GX_COLOR_ID_TEXT,                        /* normal text color              */
6969     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6970     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
6971 };
6972 GX_PROMPT_PROPERTIES lights_base_prompt_16_4_properties =
6973 {
6974     GX_STRING_ID_STRING_55,                  /* string id                      */
6975     GX_FONT_ID_TINY,                         /* font id                        */
6976     GX_COLOR_ID_TEXT,                        /* normal text color              */
6977     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6978     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
6979 };
6980 GX_PROMPT_PROPERTIES lights_base_prompt_16_5_properties =
6981 {
6982     GX_STRING_ID_STRING_57,                  /* string id                      */
6983     GX_FONT_ID_TINY,                         /* font id                        */
6984     GX_COLOR_ID_TEXT,                        /* normal text color              */
6985     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6986     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
6987 };
6988 GX_PROMPT_PROPERTIES lights_base_prompt_16_6_properties =
6989 {
6990     GX_STRING_ID_STRING_56,                  /* string id                      */
6991     GX_FONT_ID_TINY,                         /* font id                        */
6992     GX_COLOR_ID_TEXT,                        /* normal text color              */
6993     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
6994     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
6995 };
6996 GX_PROMPT_PROPERTIES lights_base_prompt_16_7_properties =
6997 {
6998     GX_STRING_ID_STRING_58,                  /* string id                      */
6999     GX_FONT_ID_TINY,                         /* font id                        */
7000     GX_COLOR_ID_TEXT,                        /* normal text color              */
7001     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7002     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7003 };
7004 GX_PROMPT_PROPERTIES lights_base_prompt_16_8_properties =
7005 {
7006     GX_STRING_ID_STRING_59,                  /* string id                      */
7007     GX_FONT_ID_TINY,                         /* font id                        */
7008     GX_COLOR_ID_TEXT,                        /* normal text color              */
7009     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7010     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7011 };
7012 GX_PROMPT_PROPERTIES lights_base_prompt_16_9_properties =
7013 {
7014     GX_STRING_ID_STRING_60,                  /* string id                      */
7015     GX_FONT_ID_TINY,                         /* font id                        */
7016     GX_COLOR_ID_TEXT,                        /* normal text color              */
7017     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7018     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7019 };
7020 GX_PROMPT_PROPERTIES lights_base_prompt_16_10_properties =
7021 {
7022     GX_STRING_ID_STRING_61,                  /* string id                      */
7023     GX_FONT_ID_TINY,                         /* font id                        */
7024     GX_COLOR_ID_TEXT,                        /* normal text color              */
7025     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7026     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7027 };
7028 GX_PROMPT_PROPERTIES lights_base_prompt_16_1_properties =
7029 {
7030     GX_STRING_ID_STRING_80,                  /* string id                      */
7031     GX_FONT_ID_TINY,                         /* font id                        */
7032     GX_COLOR_ID_TEXT,                        /* normal text color              */
7033     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7034     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7035 };
7036 GX_PIXELMAP_BUTTON_PROPERTIES lights_base_button_close_properties =
7037 {
7038     GX_PIXELMAP_ID_BOX_ICON_POWER,           /* normal pixelmap id             */
7039     GX_PIXELMAP_ID_BOX_ICON_POWER_ACTIVE,    /* selected pixelmap id           */
7040     0                                        /* disabled pixelmap id           */
7041 };
7042 GX_RADIAL_SLIDER_PROPERTIES lights_base_radial_slider_properties =
7043 {
7044     95,                                      /* xcenter                        */
7045     92,                                      /* ycenter                        */
7046     78,                                      /* radius                         */
7047     22,                                      /* track width                    */
7048     230,                                     /* current angle                  */
7049     -50,                                     /* min angle                      */
7050     230,                                     /* max angle                      */
7051     GX_PIXELMAP_ID_RULLER_BACKGROUND,        /* background pixelmap            */
7052     GX_PIXELMAP_ID_CIRCULAR_DIAL,            /* needle pixelmap                */
7053     15,                                      /* animation total steps          */
7054     2,                                       /* animation delay                */
7055     GX_ANIMATION_CIRC_EASE_IN_OUT,           /* animation style                */
7056     radial_slider_value_update,              /* animation update callback func */
7057 };
7058 GX_PROMPT_PROPERTIES lights_base_color_text_properties =
7059 {
7060     GX_STRING_ID_WARM_WHITE,                 /* string id                      */
7061     GX_FONT_ID_SMALL,                        /* font id                        */
7062     GX_COLOR_ID_TEXT,                        /* normal text color              */
7063     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7064     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7065 };
7066 GX_NUMERIC_PROMPT_PROPERTIES lights_base_power_value_properties =
7067 {
7068     0,                                       /* string id                      */
7069     GX_FONT_ID_PROMPT,                       /* font id                        */
7070     GX_COLOR_ID_TEXT,                        /* normal text color              */
7071     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7072     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
7073     power_value_format,                      /* format function                */
7074     104596                                   /* numeric prompt value           */
7075 };
7076 GX_PROMPT_PROPERTIES lights_base_power_lable_properties =
7077 {
7078     GX_STRING_ID_STRING_50,                  /* string id                      */
7079     GX_FONT_ID_SMALL,                        /* font id                        */
7080     GX_COLOR_ID_TEXT,                        /* normal text color              */
7081     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7082     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7083 };
7084 GX_NUMERIC_PROMPT_PROPERTIES lights_base_power_percent_value_properties =
7085 {
7086     0,                                       /* string id                      */
7087     GX_FONT_ID_BIG,                          /* font id                        */
7088     GX_COLOR_ID_TEXT,                        /* normal text color              */
7089     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7090     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
7091     GX_NULL,                                 /* format function                */
7092     8                                        /* numeric prompt value           */
7093 };
7094 GX_PROMPT_PROPERTIES lights_base_precent_lable_properties =
7095 {
7096     GX_STRING_ID_STRING_27,                  /* string id                      */
7097     GX_FONT_ID_NORMAL,                       /* font id                        */
7098     GX_COLOR_ID_TEXT,                        /* normal text color              */
7099     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7100     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7101 };
7102 
7103 GX_CONST GX_STUDIO_WIDGET lights_base_prompt_16_1_define =
7104 {
7105     "prompt_16_1",
7106     GX_TYPE_PROMPT,                          /* widget type                    */
7107     GX_ID_NONE,                              /* widget id                      */
7108     #if defined(GX_WIDGET_USER_DATA)
7109     0,                                       /* user data                      */
7110     #endif
7111     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7112     0,                                       /* status flags                   */
7113     sizeof(GX_PROMPT),                       /* control block size             */
7114     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7115     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7116     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7117     gx_studio_prompt_create,                 /* create function                */
7118     GX_NULL,                                 /* drawing function override      */
7119     GX_NULL,                                 /* event function override        */
7120     {100, 320, 105, 329},                    /* widget size                    */
7121     GX_NULL,                                 /* no next widget                 */
7122     GX_NULL,                                 /* no child widgets               */
7123     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_prompt_16_1), /* control block */
7124     (void *) &lights_base_prompt_16_1_properties /* extended properties        */
7125 };
7126 
7127 GX_CONST GX_STUDIO_WIDGET lights_base_prompt_16_10_define =
7128 {
7129     "prompt_16_10",
7130     GX_TYPE_PROMPT,                          /* widget type                    */
7131     GX_ID_NONE,                              /* widget id                      */
7132     #if defined(GX_WIDGET_USER_DATA)
7133     0,                                       /* user data                      */
7134     #endif
7135     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7136     0,                                       /* status flags                   */
7137     sizeof(GX_PROMPT),                       /* control block size             */
7138     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7139     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7140     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7141     gx_studio_prompt_create,                 /* create function                */
7142     GX_NULL,                                 /* drawing function override      */
7143     GX_NULL,                                 /* event function override        */
7144     {223, 318, 240, 327},                    /* widget size                    */
7145     &lights_base_prompt_16_1_define,         /* next widget definition         */
7146     GX_NULL,                                 /* no child widgets               */
7147     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_prompt_16_10), /* control block */
7148     (void *) &lights_base_prompt_16_10_properties /* extended properties       */
7149 };
7150 
7151 GX_CONST GX_STUDIO_WIDGET lights_base_prompt_16_9_define =
7152 {
7153     "prompt_16_9",
7154     GX_TYPE_PROMPT,                          /* widget type                    */
7155     GX_ID_NONE,                              /* widget id                      */
7156     #if defined(GX_WIDGET_USER_DATA)
7157     0,                                       /* user data                      */
7158     #endif
7159     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7160     0,                                       /* status flags                   */
7161     sizeof(GX_PROMPT),                       /* control block size             */
7162     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7163     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7164     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7165     gx_studio_prompt_create,                 /* create function                */
7166     GX_NULL,                                 /* drawing function override      */
7167     GX_NULL,                                 /* event function override        */
7168     {253, 282, 264, 291},                    /* widget size                    */
7169     &lights_base_prompt_16_10_define,        /* next widget definition         */
7170     GX_NULL,                                 /* no child widgets               */
7171     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_prompt_16_9), /* control block */
7172     (void *) &lights_base_prompt_16_9_properties /* extended properties        */
7173 };
7174 
7175 GX_CONST GX_STUDIO_WIDGET lights_base_prompt_16_8_define =
7176 {
7177     "prompt_16_8",
7178     GX_TYPE_PROMPT,                          /* widget type                    */
7179     GX_ID_NONE,                              /* widget id                      */
7180     #if defined(GX_WIDGET_USER_DATA)
7181     0,                                       /* user data                      */
7182     #endif
7183     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7184     0,                                       /* status flags                   */
7185     sizeof(GX_PROMPT),                       /* control block size             */
7186     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7187     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7188     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7189     gx_studio_prompt_create,                 /* create function                */
7190     GX_NULL,                                 /* drawing function override      */
7191     GX_NULL,                                 /* event function override        */
7192     {259, 233, 270, 242},                    /* widget size                    */
7193     &lights_base_prompt_16_9_define,         /* next widget definition         */
7194     GX_NULL,                                 /* no child widgets               */
7195     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_prompt_16_8), /* control block */
7196     (void *) &lights_base_prompt_16_8_properties /* extended properties        */
7197 };
7198 
7199 GX_CONST GX_STUDIO_WIDGET lights_base_prompt_16_7_define =
7200 {
7201     "prompt_16_7",
7202     GX_TYPE_PROMPT,                          /* widget type                    */
7203     GX_ID_NONE,                              /* widget id                      */
7204     #if defined(GX_WIDGET_USER_DATA)
7205     0,                                       /* user data                      */
7206     #endif
7207     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7208     0,                                       /* status flags                   */
7209     sizeof(GX_PROMPT),                       /* control block size             */
7210     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7211     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7212     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7213     gx_studio_prompt_create,                 /* create function                */
7214     GX_NULL,                                 /* drawing function override      */
7215     GX_NULL,                                 /* event function override        */
7216     {243, 185, 254, 194},                    /* widget size                    */
7217     &lights_base_prompt_16_8_define,         /* next widget definition         */
7218     GX_NULL,                                 /* no child widgets               */
7219     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_prompt_16_7), /* control block */
7220     (void *) &lights_base_prompt_16_7_properties /* extended properties        */
7221 };
7222 
7223 GX_CONST GX_STUDIO_WIDGET lights_base_prompt_16_6_define =
7224 {
7225     "prompt_16_6",
7226     GX_TYPE_PROMPT,                          /* widget type                    */
7227     GX_ID_NONE,                              /* widget id                      */
7228     #if defined(GX_WIDGET_USER_DATA)
7229     0,                                       /* user data                      */
7230     #endif
7231     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7232     0,                                       /* status flags                   */
7233     sizeof(GX_PROMPT),                       /* control block size             */
7234     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7235     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7236     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7237     gx_studio_prompt_create,                 /* create function                */
7238     GX_NULL,                                 /* drawing function override      */
7239     GX_NULL,                                 /* event function override        */
7240     {208, 155, 219, 164},                    /* widget size                    */
7241     &lights_base_prompt_16_7_define,         /* next widget definition         */
7242     GX_NULL,                                 /* no child widgets               */
7243     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_prompt_16_6), /* control block */
7244     (void *) &lights_base_prompt_16_6_properties /* extended properties        */
7245 };
7246 
7247 GX_CONST GX_STUDIO_WIDGET lights_base_prompt_16_5_define =
7248 {
7249     "prompt_16_5",
7250     GX_TYPE_PROMPT,                          /* widget type                    */
7251     GX_ID_NONE,                              /* widget id                      */
7252     #if defined(GX_WIDGET_USER_DATA)
7253     0,                                       /* user data                      */
7254     #endif
7255     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7256     0,                                       /* status flags                   */
7257     sizeof(GX_PROMPT),                       /* control block size             */
7258     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7259     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7260     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7261     gx_studio_prompt_create,                 /* create function                */
7262     GX_NULL,                                 /* drawing function override      */
7263     GX_NULL,                                 /* event function override        */
7264     {163, 145, 174, 154},                    /* widget size                    */
7265     &lights_base_prompt_16_6_define,         /* next widget definition         */
7266     GX_NULL,                                 /* no child widgets               */
7267     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_prompt_16_5), /* control block */
7268     (void *) &lights_base_prompt_16_5_properties /* extended properties        */
7269 };
7270 
7271 GX_CONST GX_STUDIO_WIDGET lights_base_prompt_16_4_define =
7272 {
7273     "prompt_16_4",
7274     GX_TYPE_PROMPT,                          /* widget type                    */
7275     GX_ID_NONE,                              /* widget id                      */
7276     #if defined(GX_WIDGET_USER_DATA)
7277     0,                                       /* user data                      */
7278     #endif
7279     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7280     0,                                       /* status flags                   */
7281     sizeof(GX_PROMPT),                       /* control block size             */
7282     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7283     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7284     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7285     gx_studio_prompt_create,                 /* create function                */
7286     GX_NULL,                                 /* drawing function override      */
7287     GX_NULL,                                 /* event function override        */
7288     {117, 154, 128, 166},                    /* widget size                    */
7289     &lights_base_prompt_16_5_define,         /* next widget definition         */
7290     GX_NULL,                                 /* no child widgets               */
7291     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_prompt_16_4), /* control block */
7292     (void *) &lights_base_prompt_16_4_properties /* extended properties        */
7293 };
7294 
7295 GX_CONST GX_STUDIO_WIDGET lights_base_prompt_16_3_define =
7296 {
7297     "prompt_16_3",
7298     GX_TYPE_PROMPT,                          /* widget type                    */
7299     GX_ID_NONE,                              /* widget id                      */
7300     #if defined(GX_WIDGET_USER_DATA)
7301     0,                                       /* user data                      */
7302     #endif
7303     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7304     0,                                       /* status flags                   */
7305     sizeof(GX_PROMPT),                       /* control block size             */
7306     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7307     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7308     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7309     gx_studio_prompt_create,                 /* create function                */
7310     GX_NULL,                                 /* drawing function override      */
7311     GX_NULL,                                 /* event function override        */
7312     {79, 186, 90, 195},                      /* widget size                    */
7313     &lights_base_prompt_16_4_define,         /* next widget definition         */
7314     GX_NULL,                                 /* no child widgets               */
7315     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_prompt_16_3), /* control block */
7316     (void *) &lights_base_prompt_16_3_properties /* extended properties        */
7317 };
7318 
7319 GX_CONST GX_STUDIO_WIDGET lights_base_prompt_16_2_define =
7320 {
7321     "prompt_16_2",
7322     GX_TYPE_PROMPT,                          /* widget type                    */
7323     GX_ID_NONE,                              /* widget id                      */
7324     #if defined(GX_WIDGET_USER_DATA)
7325     0,                                       /* user data                      */
7326     #endif
7327     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7328     0,                                       /* status flags                   */
7329     sizeof(GX_PROMPT),                       /* control block size             */
7330     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7331     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7332     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7333     gx_studio_prompt_create,                 /* create function                */
7334     GX_NULL,                                 /* drawing function override      */
7335     GX_NULL,                                 /* event function override        */
7336     {62, 232, 73, 241},                      /* widget size                    */
7337     &lights_base_prompt_16_3_define,         /* next widget definition         */
7338     GX_NULL,                                 /* no child widgets               */
7339     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_prompt_16_2), /* control block */
7340     (void *) &lights_base_prompt_16_2_properties /* extended properties        */
7341 };
7342 
7343 GX_CONST GX_STUDIO_WIDGET lights_base_prompt_16_define =
7344 {
7345     "prompt_16",
7346     GX_TYPE_PROMPT,                          /* widget type                    */
7347     GX_ID_NONE,                              /* widget id                      */
7348     #if defined(GX_WIDGET_USER_DATA)
7349     0,                                       /* user data                      */
7350     #endif
7351     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7352     0,                                       /* status flags                   */
7353     sizeof(GX_PROMPT),                       /* control block size             */
7354     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7355     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7356     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7357     gx_studio_prompt_create,                 /* create function                */
7358     GX_NULL,                                 /* drawing function override      */
7359     GX_NULL,                                 /* event function override        */
7360     {71, 279, 82, 288},                      /* widget size                    */
7361     &lights_base_prompt_16_2_define,         /* next widget definition         */
7362     GX_NULL,                                 /* no child widgets               */
7363     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_prompt_16), /* control block */
7364     (void *) &lights_base_prompt_16_properties /* extended properties          */
7365 };
7366 
7367 GX_CONST GX_STUDIO_WIDGET lights_base_precent_lable_define =
7368 {
7369     "precent_lable",
7370     GX_TYPE_PROMPT,                          /* widget type                    */
7371     GX_ID_NONE,                              /* widget id                      */
7372     #if defined(GX_WIDGET_USER_DATA)
7373     0,                                       /* user data                      */
7374     #endif
7375     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7376     0,                                       /* status flags                   */
7377     sizeof(GX_PROMPT),                       /* control block size             */
7378     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7379     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7380     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7381     gx_studio_prompt_create,                 /* create function                */
7382     GX_NULL,                                 /* drawing function override      */
7383     GX_NULL,                                 /* event function override        */
7384     {185, 224, 205, 246},                    /* widget size                    */
7385     GX_NULL,                                 /* no next widget                 */
7386     GX_NULL,                                 /* no child widgets               */
7387     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_precent_lable), /* control block */
7388     (void *) &lights_base_precent_lable_properties /* extended properties      */
7389 };
7390 
7391 GX_CONST GX_STUDIO_WIDGET lights_base_power_percent_value_define =
7392 {
7393     "power_percent_value",
7394     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
7395     GX_ID_NONE,                              /* widget id                      */
7396     #if defined(GX_WIDGET_USER_DATA)
7397     0,                                       /* user data                      */
7398     #endif
7399     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7400     0,                                       /* status flags                   */
7401     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
7402     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7403     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7404     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7405     gx_studio_numeric_prompt_create,         /* create function                */
7406     GX_NULL,                                 /* drawing function override      */
7407     GX_NULL,                                 /* event function override        */
7408     {119, 219, 214, 270},                    /* widget size                    */
7409     &lights_base_precent_lable_define,       /* next widget definition         */
7410     GX_NULL,                                 /* no child widgets               */
7411     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_power_percent_value), /* control block */
7412     (void *) &lights_base_power_percent_value_properties /* extended properties */
7413 };
7414 
7415 GX_CONST GX_STUDIO_WIDGET lights_base_power_lable_define =
7416 {
7417     "power_lable",
7418     GX_TYPE_PROMPT,                          /* widget type                    */
7419     GX_ID_NONE,                              /* widget id                      */
7420     #if defined(GX_WIDGET_USER_DATA)
7421     0,                                       /* user data                      */
7422     #endif
7423     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7424     0,                                       /* status flags                   */
7425     sizeof(GX_PROMPT),                       /* control block size             */
7426     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7427     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7428     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7429     gx_studio_prompt_create,                 /* create function                */
7430     GX_NULL,                                 /* drawing function override      */
7431     GX_NULL,                                 /* event function override        */
7432     {185, 337, 209, 349},                    /* widget size                    */
7433     &lights_base_power_percent_value_define, /* next widget definition         */
7434     GX_NULL,                                 /* no child widgets               */
7435     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_power_lable), /* control block */
7436     (void *) &lights_base_power_lable_properties /* extended properties        */
7437 };
7438 
7439 GX_CONST GX_STUDIO_WIDGET lights_base_power_value_define =
7440 {
7441     "power_value",
7442     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
7443     GX_ID_NONE,                              /* widget id                      */
7444     #if defined(GX_WIDGET_USER_DATA)
7445     0,                                       /* user data                      */
7446     #endif
7447     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_RIGHT,   /* style flags */
7448     0,                                       /* status flags                   */
7449     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
7450     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7451     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7452     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7453     gx_studio_numeric_prompt_create,         /* create function                */
7454     GX_NULL,                                 /* drawing function override      */
7455     GX_NULL,                                 /* event function override        */
7456     {128, 333, 181, 350},                    /* widget size                    */
7457     &lights_base_power_lable_define,         /* next widget definition         */
7458     GX_NULL,                                 /* no child widgets               */
7459     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_power_value), /* control block */
7460     (void *) &lights_base_power_value_properties /* extended properties        */
7461 };
7462 
7463 GX_CONST GX_STUDIO_WIDGET lights_base_color_text_define =
7464 {
7465     "color_text",
7466     GX_TYPE_PROMPT,                          /* widget type                    */
7467     GX_ID_NONE,                              /* widget id                      */
7468     #if defined(GX_WIDGET_USER_DATA)
7469     0,                                       /* user data                      */
7470     #endif
7471     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7472     0,                                       /* status flags                   */
7473     sizeof(GX_PROMPT),                       /* control block size             */
7474     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7475     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7476     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7477     gx_studio_prompt_create,                 /* create function                */
7478     GX_NULL,                                 /* drawing function override      */
7479     GX_NULL,                                 /* event function override        */
7480     {127, 316, 208, 328},                    /* widget size                    */
7481     &lights_base_power_value_define,         /* next widget definition         */
7482     GX_NULL,                                 /* no child widgets               */
7483     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_color_text), /* control block */
7484     (void *) &lights_base_color_text_properties /* extended properties         */
7485 };
7486 
7487 GX_CONST GX_STUDIO_WIDGET lights_base_radial_slider_define =
7488 {
7489     "radial_slider",
7490     GX_TYPE_RADIAL_SLIDER,                   /* widget type                    */
7491     ID_RADIAL_SLIDER,                        /* widget id                      */
7492     #if defined(GX_WIDGET_USER_DATA)
7493     0,                                       /* user data                      */
7494     #endif
7495     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
7496     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7497     sizeof(GX_RADIAL_SLIDER),                /* control block size             */
7498     GX_COLOR_ID_RULLER_BG,                   /* normal color id                */
7499     GX_COLOR_ID_RULLER_BG,                   /* selected color id              */
7500     GX_COLOR_ID_RULLER_BG,                   /* disabled color id              */
7501     gx_studio_radial_slider_create,          /* create function                */
7502     (VOID (*)(GX_WIDGET *)) custom_radial_slider_draw, /* drawing function override */
7503     GX_NULL,                                 /* event function override        */
7504     {74, 154, 262, 354},                     /* widget size                    */
7505     GX_NULL,                                 /* no next widget                 */
7506     &lights_base_color_text_define,          /* child widget definition        */
7507     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_radial_slider), /* control block */
7508     (void *) &lights_base_radial_slider_properties /* extended properties      */
7509 };
7510 
7511 GX_CONST GX_STUDIO_WIDGET lights_base_button_close_define =
7512 {
7513     "button_close",
7514     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
7515     ID_CLOSE,                                /* widget id                      */
7516     #if defined(GX_WIDGET_USER_DATA)
7517     0,                                       /* user data                      */
7518     #endif
7519     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
7520     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7521     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
7522     GX_COLOR_ID_PLUS_NORMAL,                 /* normal color id                */
7523     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
7524     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7525     gx_studio_pixelmap_button_create,        /* create function                */
7526     GX_NULL,                                 /* drawing function override      */
7527     GX_NULL,                                 /* event function override        */
7528     {278, 344, 300, 371},                    /* widget size                    */
7529     &lights_base_radial_slider_define,       /* next widget definition         */
7530     GX_NULL,                                 /* no child widgets               */
7531     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_button_close), /* control block */
7532     (void *) &lights_base_button_close_properties /* extended properties       */
7533 };
7534 
7535 GX_CONST GX_STUDIO_WIDGET lights_base_icon_ruller_define =
7536 {
7537     "icon_ruller",
7538     GX_TYPE_ICON,                            /* widget type                    */
7539     GX_ID_NONE,                              /* widget id                      */
7540     #if defined(GX_WIDGET_USER_DATA)
7541     0,                                       /* user data                      */
7542     #endif
7543     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
7544     0,                                       /* status flags                   */
7545     sizeof(GX_ICON),                         /* control block size             */
7546     GX_COLOR_ID_WHITE,                       /* normal color id                */
7547     GX_COLOR_ID_WHITE,                       /* selected color id              */
7548     GX_COLOR_ID_WHITE,                       /* disabled color id              */
7549     gx_studio_icon_create,                   /* create function                */
7550     GX_NULL,                                 /* drawing function override      */
7551     GX_NULL,                                 /* event function override        */
7552     {37, 115, 298, 349},                     /* widget size                    */
7553     &lights_base_button_close_define,        /* next widget definition         */
7554     &lights_base_prompt_16_define,           /* child widget definition        */
7555     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_icon_ruller), /* control block */
7556     (void *) &lights_base_icon_ruller_properties /* extended properties        */
7557 };
7558 
7559 GX_CONST GX_STUDIO_WIDGET lights_base_button_open_define =
7560 {
7561     "button_open",
7562     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
7563     ID_OPEN,                                 /* widget id                      */
7564     #if defined(GX_WIDGET_USER_DATA)
7565     0,                                       /* user data                      */
7566     #endif
7567     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
7568     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7569     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
7570     GX_COLOR_ID_PLUS_NORMAL,                 /* normal color id                */
7571     GX_COLOR_ID_PLUS_SELECTED,               /* selected color id              */
7572     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7573     gx_studio_pixelmap_button_create,        /* create function                */
7574     GX_NULL,                                 /* drawing function override      */
7575     GX_NULL,                                 /* event function override        */
7576     {116, 176, 221, 299},                    /* widget size                    */
7577     &lights_base_icon_ruller_define,         /* next widget definition         */
7578     GX_NULL,                                 /* no child widgets               */
7579     offsetof(LIGHTS_BASE_CONTROL_BLOCK, lights_base_button_open), /* control block */
7580     (void *) &lights_base_button_open_properties /* extended properties        */
7581 };
7582 
7583 GX_CONST GX_STUDIO_WIDGET lights_base_define =
7584 {
7585     "lights_base",
7586     GX_TYPE_TEMPLATE,                        /* widget type                    */
7587     GX_ID_NONE,                              /* widget id                      */
7588     #if defined(GX_WIDGET_USER_DATA)
7589     0,                                       /* user data                      */
7590     #endif
7591     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
7592     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
7593     sizeof(LIGHTS_BASE_CONTROL_BLOCK),       /* control block size             */
7594     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
7595     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
7596     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7597     gx_studio_template_create,               /* create function                */
7598     GX_NULL,                                 /* drawing function override      */
7599     (UINT (*)(GX_WIDGET *, GX_EVENT *)) lights_base_event_process, /* event function override */
7600     {20, 90, 316, 384},                      /* widget size                    */
7601     GX_NULL,                                 /* next widget                    */
7602     &lights_base_button_open_define,         /* child widget                   */
7603     0,                                       /* control block                  */
7604     (void *) &lights_base_properties         /* extended properties            */
7605 };
7606 GX_TEMPLATE_PROPERTIES lights_screen_properties =
7607 {
7608     &screen_base_define,                     /* base info                      */
7609     gx_studio_window_create,                 /* base create function           */
7610     {0, 0, 639, 479}                         /* widget size                    */
7611 };
7612 GX_RADIO_BUTTON_PROPERTIES lights_screen_pagination_1_properties =
7613 {
7614     0,                                       /* string id                      */
7615     GX_FONT_ID_BUTTON,                       /* font id                        */
7616     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
7617     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
7618     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
7619     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
7620     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
7621     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
7622     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
7623 };
7624 GX_RADIO_BUTTON_PROPERTIES lights_screen_pagination_2_properties =
7625 {
7626     0,                                       /* string id                      */
7627     GX_FONT_ID_BUTTON,                       /* font id                        */
7628     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
7629     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
7630     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
7631     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
7632     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
7633     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
7634     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
7635 };
7636 GX_RADIO_BUTTON_PROPERTIES lights_screen_pagination_3_properties =
7637 {
7638     0,                                       /* string id                      */
7639     GX_FONT_ID_BUTTON,                       /* font id                        */
7640     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
7641     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
7642     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
7643     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
7644     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
7645     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
7646     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
7647 };
7648 GX_RADIO_BUTTON_PROPERTIES lights_screen_pagination_4_properties =
7649 {
7650     0,                                       /* string id                      */
7651     GX_FONT_ID_BUTTON,                       /* font id                        */
7652     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
7653     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
7654     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
7655     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
7656     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
7657     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
7658     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
7659 };
7660 GX_WINDOW_PROPERTIES lights_screen_info_win_properties =
7661 {
7662     0                                        /* wallpaper pixelmap id          */
7663 };
7664 GX_PROMPT_PROPERTIES lights_screen_on_lable_properties =
7665 {
7666     GX_STRING_ID_STRING_65,                  /* string id                      */
7667     GX_FONT_ID_SMALL,                        /* font id                        */
7668     GX_COLOR_ID_TEXT,                        /* normal text color              */
7669     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7670     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7671 };
7672 GX_ICON_PROPERTIES lights_screen_icon_properties =
7673 {
7674     GX_PIXELMAP_ID_FOOTER_NUMBER_CIRCLE_ACTIVE, /* normal pixelmap id          */
7675     0                                        /* selected pixelmap id           */
7676 };
7677 GX_NUMERIC_PROMPT_PROPERTIES lights_screen_num_on_properties =
7678 {
7679     0,                                       /* string id                      */
7680     GX_FONT_ID_SMALL,                        /* font id                        */
7681     GX_COLOR_ID_TEXT,                        /* normal text color              */
7682     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7683     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
7684     GX_NULL,                                 /* format function                */
7685     7                                        /* numeric prompt value           */
7686 };
7687 GX_ICON_PROPERTIES lights_screen_icon_1_properties =
7688 {
7689     GX_PIXELMAP_ID_FOOTER_NUMBER_CIRCLE,     /* normal pixelmap id             */
7690     0                                        /* selected pixelmap id           */
7691 };
7692 GX_NUMERIC_PROMPT_PROPERTIES lights_screen_num_off_properties =
7693 {
7694     0,                                       /* string id                      */
7695     GX_FONT_ID_SMALL,                        /* font id                        */
7696     GX_COLOR_ID_TEXT,                        /* normal text color              */
7697     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7698     GX_COLOR_ID_DISABLED,                    /* disabled text color            */
7699     GX_NULL,                                 /* format function                */
7700     0                                        /* numeric prompt value           */
7701 };
7702 GX_PROMPT_PROPERTIES lights_screen_off_lable_properties =
7703 {
7704     GX_STRING_ID_STRING_66,                  /* string id                      */
7705     GX_FONT_ID_SMALL,                        /* font id                        */
7706     GX_COLOR_ID_TEXT,                        /* normal text color              */
7707     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7708     GX_COLOR_ID_DISABLED                     /* disabled text color            */
7709 };
7710 GX_PROMPT_PROPERTIES lights_screen_kwh_lable_properties =
7711 {
7712     GX_STRING_ID_STRING_50,                  /* string id                      */
7713     GX_FONT_ID_SMALL,                        /* font id                        */
7714     GX_COLOR_ID_TEXT,                        /* normal text color              */
7715     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7716     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7717 };
7718 GX_PROMPT_PROPERTIES lights_screen_kwh_lable_2_properties =
7719 {
7720     GX_STRING_ID_STRING_50,                  /* string id                      */
7721     GX_FONT_ID_SMALL,                        /* font id                        */
7722     GX_COLOR_ID_TEXT,                        /* normal text color              */
7723     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7724     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7725 };
7726 GX_NUMERIC_PROMPT_PROPERTIES lights_screen_overall_today_properties =
7727 {
7728     0,                                       /* string id                      */
7729     GX_FONT_ID_SYSTEM,                       /* font id                        */
7730     GX_COLOR_ID_TEXT,                        /* normal text color              */
7731     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7732     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
7733     power_value_format,                      /* format function                */
7734     8746594                                  /* numeric prompt value           */
7735 };
7736 GX_NUMERIC_PROMPT_PROPERTIES lights_screen_energy_in_use_properties =
7737 {
7738     0,                                       /* string id                      */
7739     GX_FONT_ID_SYSTEM,                       /* font id                        */
7740     GX_COLOR_ID_TEXT,                        /* normal text color              */
7741     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7742     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
7743     power_value_format,                      /* format function                */
7744     68361                                    /* numeric prompt value           */
7745 };
7746 GX_PROMPT_PROPERTIES lights_screen_energy_in_use_lable_properties =
7747 {
7748     GX_STRING_ID_STRING_67,                  /* string id                      */
7749     GX_FONT_ID_SMALL,                        /* font id                        */
7750     GX_COLOR_ID_TEXT,                        /* normal text color              */
7751     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7752     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7753 };
7754 GX_PROMPT_PROPERTIES lights_screen_overall_today_lable_properties =
7755 {
7756     GX_STRING_ID_STRING_68,                  /* string id                      */
7757     GX_FONT_ID_SMALL,                        /* font id                        */
7758     GX_COLOR_ID_TEXT,                        /* normal text color              */
7759     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
7760     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
7761 };
7762 
7763 GX_CONST GX_STUDIO_WIDGET lights_screen_num_on_define =
7764 {
7765     "num_on",
7766     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
7767     GX_ID_NONE,                              /* widget id                      */
7768     #if defined(GX_WIDGET_USER_DATA)
7769     0,                                       /* user data                      */
7770     #endif
7771     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7772     0,                                       /* status flags                   */
7773     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
7774     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7775     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7776     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7777     gx_studio_numeric_prompt_create,         /* create function                */
7778     GX_NULL,                                 /* drawing function override      */
7779     GX_NULL,                                 /* event function override        */
7780     {427, 398, 434, 410},                    /* widget size                    */
7781     GX_NULL,                                 /* no next widget                 */
7782     GX_NULL,                                 /* no child widgets               */
7783     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_num_on), /* control block */
7784     (void *) &lights_screen_num_on_properties /* extended properties           */
7785 };
7786 
7787 GX_CONST GX_STUDIO_WIDGET lights_screen_num_off_define =
7788 {
7789     "num_off",
7790     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
7791     GX_ID_NONE,                              /* widget id                      */
7792     #if defined(GX_WIDGET_USER_DATA)
7793     0,                                       /* user data                      */
7794     #endif
7795     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7796     0,                                       /* status flags                   */
7797     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
7798     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7799     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7800     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7801     gx_studio_numeric_prompt_create,         /* create function                */
7802     GX_NULL,                                 /* drawing function override      */
7803     GX_NULL,                                 /* event function override        */
7804     {481, 398, 488, 410},                    /* widget size                    */
7805     GX_NULL,                                 /* no next widget                 */
7806     GX_NULL,                                 /* no child widgets               */
7807     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_num_off), /* control block */
7808     (void *) &lights_screen_num_off_properties /* extended properties          */
7809 };
7810 
7811 GX_CONST GX_STUDIO_WIDGET lights_screen_overall_today_lable_define =
7812 {
7813     "overall_today_lable",
7814     GX_TYPE_PROMPT,                          /* widget type                    */
7815     GX_ID_NONE,                              /* widget id                      */
7816     #if defined(GX_WIDGET_USER_DATA)
7817     0,                                       /* user data                      */
7818     #endif
7819     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7820     0,                                       /* status flags                   */
7821     sizeof(GX_PROMPT),                       /* control block size             */
7822     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7823     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7824     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7825     gx_studio_prompt_create,                 /* create function                */
7826     GX_NULL,                                 /* drawing function override      */
7827     GX_NULL,                                 /* event function override        */
7828     {326, 451, 424, 463},                    /* widget size                    */
7829     GX_NULL,                                 /* no next widget                 */
7830     GX_NULL,                                 /* no child widgets               */
7831     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_overall_today_lable), /* control block */
7832     (void *) &lights_screen_overall_today_lable_properties /* extended properties */
7833 };
7834 
7835 GX_CONST GX_STUDIO_WIDGET lights_screen_energy_in_use_lable_define =
7836 {
7837     "energy_in_use_lable",
7838     GX_TYPE_PROMPT,                          /* widget type                    */
7839     GX_ID_NONE,                              /* widget id                      */
7840     #if defined(GX_WIDGET_USER_DATA)
7841     0,                                       /* user data                      */
7842     #endif
7843     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7844     0,                                       /* status flags                   */
7845     sizeof(GX_PROMPT),                       /* control block size             */
7846     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7847     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7848     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7849     gx_studio_prompt_create,                 /* create function                */
7850     GX_NULL,                                 /* drawing function override      */
7851     GX_NULL,                                 /* event function override        */
7852     {346, 432, 440, 444},                    /* widget size                    */
7853     &lights_screen_overall_today_lable_define, /* next widget definition       */
7854     GX_NULL,                                 /* no child widgets               */
7855     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_energy_in_use_lable), /* control block */
7856     (void *) &lights_screen_energy_in_use_lable_properties /* extended properties */
7857 };
7858 
7859 GX_CONST GX_STUDIO_WIDGET lights_screen_energy_in_use_define =
7860 {
7861     "energy_in_use",
7862     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
7863     GX_ID_NONE,                              /* widget id                      */
7864     #if defined(GX_WIDGET_USER_DATA)
7865     0,                                       /* user data                      */
7866     #endif
7867     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_RIGHT,   /* style flags */
7868     0,                                       /* status flags                   */
7869     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
7870     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7871     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7872     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7873     gx_studio_numeric_prompt_create,         /* create function                */
7874     GX_NULL,                                 /* drawing function override      */
7875     GX_NULL,                                 /* event function override        */
7876     {450, 430, 500, 447},                    /* widget size                    */
7877     &lights_screen_energy_in_use_lable_define, /* next widget definition       */
7878     GX_NULL,                                 /* no child widgets               */
7879     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_energy_in_use), /* control block */
7880     (void *) &lights_screen_energy_in_use_properties /* extended properties    */
7881 };
7882 
7883 GX_CONST GX_STUDIO_WIDGET lights_screen_overall_today_define =
7884 {
7885     "overall_today",
7886     GX_TYPE_NUMERIC_PROMPT,                  /* widget type                    */
7887     GX_ID_NONE,                              /* widget id                      */
7888     #if defined(GX_WIDGET_USER_DATA)
7889     0,                                       /* user data                      */
7890     #endif
7891     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_RIGHT,   /* style flags */
7892     0,                                       /* status flags                   */
7893     sizeof(GX_NUMERIC_PROMPT),               /* control block size             */
7894     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7895     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7896     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7897     gx_studio_numeric_prompt_create,         /* create function                */
7898     GX_NULL,                                 /* drawing function override      */
7899     GX_NULL,                                 /* event function override        */
7900     {432, 449, 500, 466},                    /* widget size                    */
7901     &lights_screen_energy_in_use_define,     /* next widget definition         */
7902     GX_NULL,                                 /* no child widgets               */
7903     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_overall_today), /* control block */
7904     (void *) &lights_screen_overall_today_properties /* extended properties    */
7905 };
7906 
7907 GX_CONST GX_STUDIO_WIDGET lights_screen_kwh_lable_2_define =
7908 {
7909     "kwh_lable_2",
7910     GX_TYPE_PROMPT,                          /* widget type                    */
7911     GX_ID_NONE,                              /* widget id                      */
7912     #if defined(GX_WIDGET_USER_DATA)
7913     0,                                       /* user data                      */
7914     #endif
7915     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7916     0,                                       /* status flags                   */
7917     sizeof(GX_PROMPT),                       /* control block size             */
7918     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7919     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7920     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7921     gx_studio_prompt_create,                 /* create function                */
7922     GX_NULL,                                 /* drawing function override      */
7923     GX_NULL,                                 /* event function override        */
7924     {504, 451, 528, 463},                    /* widget size                    */
7925     &lights_screen_overall_today_define,     /* next widget definition         */
7926     GX_NULL,                                 /* no child widgets               */
7927     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_kwh_lable_2), /* control block */
7928     (void *) &lights_screen_kwh_lable_2_properties /* extended properties      */
7929 };
7930 
7931 GX_CONST GX_STUDIO_WIDGET lights_screen_kwh_lable_define =
7932 {
7933     "kwh_lable",
7934     GX_TYPE_PROMPT,                          /* widget type                    */
7935     GX_ID_NONE,                              /* widget id                      */
7936     #if defined(GX_WIDGET_USER_DATA)
7937     0,                                       /* user data                      */
7938     #endif
7939     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7940     0,                                       /* status flags                   */
7941     sizeof(GX_PROMPT),                       /* control block size             */
7942     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7943     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7944     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7945     gx_studio_prompt_create,                 /* create function                */
7946     GX_NULL,                                 /* drawing function override      */
7947     GX_NULL,                                 /* event function override        */
7948     {503, 432, 527, 444},                    /* widget size                    */
7949     &lights_screen_kwh_lable_2_define,       /* next widget definition         */
7950     GX_NULL,                                 /* no child widgets               */
7951     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_kwh_lable), /* control block */
7952     (void *) &lights_screen_kwh_lable_properties /* extended properties        */
7953 };
7954 
7955 GX_CONST GX_STUDIO_WIDGET lights_screen_off_lable_define =
7956 {
7957     "off_lable",
7958     GX_TYPE_PROMPT,                          /* widget type                    */
7959     GX_ID_NONE,                              /* widget id                      */
7960     #if defined(GX_WIDGET_USER_DATA)
7961     0,                                       /* user data                      */
7962     #endif
7963     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
7964     0,                                       /* status flags                   */
7965     sizeof(GX_PROMPT),                       /* control block size             */
7966     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7967     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7968     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7969     gx_studio_prompt_create,                 /* create function                */
7970     GX_NULL,                                 /* drawing function override      */
7971     GX_NULL,                                 /* event function override        */
7972     {500, 398, 522, 410},                    /* widget size                    */
7973     &lights_screen_kwh_lable_define,         /* next widget definition         */
7974     GX_NULL,                                 /* no child widgets               */
7975     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_off_lable), /* control block */
7976     (void *) &lights_screen_off_lable_properties /* extended properties        */
7977 };
7978 
7979 GX_CONST GX_STUDIO_WIDGET lights_screen_icon_1_define =
7980 {
7981     "icon_1",
7982     GX_TYPE_ICON,                            /* widget type                    */
7983     GX_ID_NONE,                              /* widget id                      */
7984     #if defined(GX_WIDGET_USER_DATA)
7985     0,                                       /* user data                      */
7986     #endif
7987     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
7988     0,                                       /* status flags                   */
7989     sizeof(GX_ICON),                         /* control block size             */
7990     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
7991     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
7992     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
7993     gx_studio_icon_create,                   /* create function                */
7994     GX_NULL,                                 /* drawing function override      */
7995     GX_NULL,                                 /* event function override        */
7996     {474, 393, 495, 413},                    /* widget size                    */
7997     &lights_screen_off_lable_define,         /* next widget definition         */
7998     &lights_screen_num_off_define,           /* child widget definition        */
7999     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_icon_1), /* control block */
8000     (void *) &lights_screen_icon_1_properties /* extended properties           */
8001 };
8002 
8003 GX_CONST GX_STUDIO_WIDGET lights_screen_icon_define =
8004 {
8005     "icon",
8006     GX_TYPE_ICON,                            /* widget type                    */
8007     GX_ID_NONE,                              /* widget id                      */
8008     #if defined(GX_WIDGET_USER_DATA)
8009     0,                                       /* user data                      */
8010     #endif
8011     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
8012     0,                                       /* status flags                   */
8013     sizeof(GX_ICON),                         /* control block size             */
8014     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
8015     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
8016     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8017     gx_studio_icon_create,                   /* create function                */
8018     GX_NULL,                                 /* drawing function override      */
8019     GX_NULL,                                 /* event function override        */
8020     {420, 393, 441, 413},                    /* widget size                    */
8021     &lights_screen_icon_1_define,            /* next widget definition         */
8022     &lights_screen_num_on_define,            /* child widget definition        */
8023     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_icon), /* control block */
8024     (void *) &lights_screen_icon_properties  /* extended properties            */
8025 };
8026 
8027 GX_CONST GX_STUDIO_WIDGET lights_screen_on_lable_define =
8028 {
8029     "on_lable",
8030     GX_TYPE_PROMPT,                          /* widget type                    */
8031     GX_ID_NONE,                              /* widget id                      */
8032     #if defined(GX_WIDGET_USER_DATA)
8033     0,                                       /* user data                      */
8034     #endif
8035     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
8036     0,                                       /* status flags                   */
8037     sizeof(GX_PROMPT),                       /* control block size             */
8038     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
8039     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
8040     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8041     gx_studio_prompt_create,                 /* create function                */
8042     GX_NULL,                                 /* drawing function override      */
8043     GX_NULL,                                 /* event function override        */
8044     {446, 398, 463, 410},                    /* widget size                    */
8045     &lights_screen_icon_define,              /* next widget definition         */
8046     GX_NULL,                                 /* no child widgets               */
8047     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_on_lable), /* control block */
8048     (void *) &lights_screen_on_lable_properties /* extended properties         */
8049 };
8050 
8051 GX_CONST GX_STUDIO_WIDGET lights_screen_info_win_define =
8052 {
8053     "info_win",
8054     GX_TYPE_WINDOW,                          /* widget type                    */
8055     GX_ID_NONE,                              /* widget id                      */
8056     #if defined(GX_WIDGET_USER_DATA)
8057     0,                                       /* user data                      */
8058     #endif
8059     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
8060     0,                                       /* status flags                   */
8061     sizeof(GX_WINDOW),                       /* control block size             */
8062     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8063     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8064     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8065     gx_studio_window_create,                 /* create function                */
8066     GX_NULL,                                 /* drawing function override      */
8067     GX_NULL,                                 /* event function override        */
8068     {323, 387, 528, 469},                    /* widget size                    */
8069     GX_NULL,                                 /* no next widget                 */
8070     &lights_screen_on_lable_define,          /* child widget definition        */
8071     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_info_win), /* control block */
8072     (void *) &lights_screen_info_win_properties /* extended properties         */
8073 };
8074 
8075 GX_CONST GX_STUDIO_WIDGET lights_screen_pagination_4_define =
8076 {
8077     "pagination_4",
8078     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
8079     ID_PAGINATION_4,                         /* widget id                      */
8080     #if defined(GX_WIDGET_USER_DATA)
8081     0,                                       /* user data                      */
8082     #endif
8083     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
8084     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8085     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
8086     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8087     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8088     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8089     gx_studio_radio_button_create,           /* create function                */
8090     GX_NULL,                                 /* drawing function override      */
8091     GX_NULL,                                 /* event function override        */
8092     {353, 68, 368, 83},                      /* widget size                    */
8093     &lights_screen_info_win_define,          /* next widget definition         */
8094     GX_NULL,                                 /* no child widgets               */
8095     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_pagination_4), /* control block */
8096     (void *) &lights_screen_pagination_4_properties /* extended properties     */
8097 };
8098 
8099 GX_CONST GX_STUDIO_WIDGET lights_screen_pagination_3_define =
8100 {
8101     "pagination_3",
8102     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
8103     ID_PAGINATION_3,                         /* widget id                      */
8104     #if defined(GX_WIDGET_USER_DATA)
8105     0,                                       /* user data                      */
8106     #endif
8107     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
8108     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8109     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
8110     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8111     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8112     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8113     gx_studio_radio_button_create,           /* create function                */
8114     GX_NULL,                                 /* drawing function override      */
8115     GX_NULL,                                 /* event function override        */
8116     {328, 68, 343, 83},                      /* widget size                    */
8117     &lights_screen_pagination_4_define,      /* next widget definition         */
8118     GX_NULL,                                 /* no child widgets               */
8119     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_pagination_3), /* control block */
8120     (void *) &lights_screen_pagination_3_properties /* extended properties     */
8121 };
8122 
8123 GX_CONST GX_STUDIO_WIDGET lights_screen_pagination_2_define =
8124 {
8125     "pagination_2",
8126     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
8127     ID_PAGINATION_2,                         /* widget id                      */
8128     #if defined(GX_WIDGET_USER_DATA)
8129     0,                                       /* user data                      */
8130     #endif
8131     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
8132     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8133     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
8134     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8135     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8136     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8137     gx_studio_radio_button_create,           /* create function                */
8138     GX_NULL,                                 /* drawing function override      */
8139     GX_NULL,                                 /* event function override        */
8140     {302, 68, 317, 83},                      /* widget size                    */
8141     &lights_screen_pagination_3_define,      /* next widget definition         */
8142     GX_NULL,                                 /* no child widgets               */
8143     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_pagination_2), /* control block */
8144     (void *) &lights_screen_pagination_2_properties /* extended properties     */
8145 };
8146 
8147 GX_CONST GX_STUDIO_WIDGET lights_screen_pagination_1_define =
8148 {
8149     "pagination_1",
8150     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
8151     ID_PAGINATION_1,                         /* widget id                      */
8152     #if defined(GX_WIDGET_USER_DATA)
8153     0,                                       /* user data                      */
8154     #endif
8155     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
8156     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8157     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
8158     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8159     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8160     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8161     gx_studio_radio_button_create,           /* create function                */
8162     GX_NULL,                                 /* drawing function override      */
8163     GX_NULL,                                 /* event function override        */
8164     {276, 68, 291, 83},                      /* widget size                    */
8165     &lights_screen_pagination_2_define,      /* next widget definition         */
8166     GX_NULL,                                 /* no child widgets               */
8167     offsetof(LIGHTS_SCREEN_CONTROL_BLOCK, lights_screen_pagination_1), /* control block */
8168     (void *) &lights_screen_pagination_1_properties /* extended properties     */
8169 };
8170 
8171 GX_CONST GX_STUDIO_WIDGET lights_screen_define =
8172 {
8173     "lights_screen",
8174     GX_TYPE_TEMPLATE,                        /* widget type                    */
8175     ID_LIGHTS_SCREEN,                        /* widget id                      */
8176     #if defined(GX_WIDGET_USER_DATA)
8177     0,                                       /* user data                      */
8178     #endif
8179     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
8180     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8181     sizeof(LIGHTS_SCREEN_CONTROL_BLOCK),     /* control block size             */
8182     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8183     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8184     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8185     gx_studio_template_create,               /* create function                */
8186     GX_NULL,                                 /* drawing function override      */
8187     GX_NULL,                                 /* event function override        */
8188     {0, 0, 639, 479},                        /* widget size                    */
8189     GX_NULL,                                 /* next widget                    */
8190     &lights_screen_pagination_1_define,      /* child widget                   */
8191     0,                                       /* control block                  */
8192     (void *) &lights_screen_properties       /* extended properties            */
8193 };
8194 GX_TEMPLATE_PROPERTIES locks_door_base_properties =
8195 {
8196     &controller_base_define,                 /* base info                      */
8197     gx_studio_window_create,                 /* base create function           */
8198     {323, 89, 621, 385}                      /* widget size                    */
8199 };
8200 GX_ICON_PROPERTIES locks_door_base_status_icon_properties =
8201 {
8202     GX_PIXELMAP_ID_LED_GREEN,                /* normal pixelmap id             */
8203     0                                        /* selected pixelmap id           */
8204 };
8205 GX_PROMPT_PROPERTIES locks_door_base_status_text_properties =
8206 {
8207     GX_STRING_ID_STRING_47,                  /* string id                      */
8208     GX_FONT_ID_SMALL,                        /* font id                        */
8209     GX_COLOR_ID_TEXT,                        /* normal text color              */
8210     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
8211     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
8212 };
8213 GX_PIXELMAP_BUTTON_PROPERTIES locks_door_base_button_lock_properties =
8214 {
8215     GX_PIXELMAP_ID_LOCKS_ROUND_BTN_BIG_ACTIVE, /* normal pixelmap id           */
8216     GX_PIXELMAP_ID_LOCKS_ROUND_BTN_BIG_ACTIVE_HOVER, /* selected pixelmap id   */
8217     0                                        /* disabled pixelmap id           */
8218 };
8219 GX_ICON_PROPERTIES locks_door_base_lock_icon_properties =
8220 {
8221     GX_PIXELMAP_ID_LOCKS_ICON_BTN_CLOSED_LOCK, /* normal pixelmap id           */
8222     GX_PIXELMAP_ID_LOCKS_ICON_BTN_CLOSED_LOCK_HOVER  /* selected pixelmap id   */
8223 };
8224 GX_PROMPT_PROPERTIES locks_door_base_lock_text_properties =
8225 {
8226     GX_STRING_ID_LOCKED,                     /* string id                      */
8227     GX_FONT_ID_PROMPT,                       /* font id                        */
8228     GX_COLOR_ID_BLUE,                        /* normal text color              */
8229     GX_COLOR_ID_BLUE,                        /* selected text color            */
8230     GX_COLOR_ID_BLUE                         /* disabled text color            */
8231 };
8232 GX_PIXELMAP_BUTTON_PROPERTIES locks_door_base_button_close_properties =
8233 {
8234     GX_PIXELMAP_ID_BOX_ICON_POWER,           /* normal pixelmap id             */
8235     GX_PIXELMAP_ID_BOX_ICON_POWER_ACTIVE,    /* selected pixelmap id           */
8236     0                                        /* disabled pixelmap id           */
8237 };
8238 GX_PIXELMAP_BUTTON_PROPERTIES locks_door_base_button_open_properties =
8239 {
8240     GX_PIXELMAP_ID_BOX_ICON_POWER_LG,        /* normal pixelmap id             */
8241     GX_PIXELMAP_ID_BOX_ICON_POWER_LG,        /* selected pixelmap id           */
8242     0                                        /* disabled pixelmap id           */
8243 };
8244 
8245 GX_CONST GX_STUDIO_WIDGET locks_door_base_lock_text_define =
8246 {
8247     "lock_text",
8248     GX_TYPE_PROMPT,                          /* widget type                    */
8249     GX_ID_NONE,                              /* widget id                      */
8250     #if defined(GX_WIDGET_USER_DATA)
8251     0,                                       /* user data                      */
8252     #endif
8253     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_COPY|GX_STYLE_TEXT_CENTER,   /* style flags */
8254     0,                                       /* status flags                   */
8255     sizeof(GX_PROMPT),                       /* control block size             */
8256     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
8257     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
8258     GX_COLOR_ID_GREEN,                       /* disabled color id              */
8259     gx_studio_prompt_create,                 /* create function                */
8260     GX_NULL,                                 /* drawing function override      */
8261     GX_NULL,                                 /* event function override        */
8262     {430, 262, 514, 279},                    /* widget size                    */
8263     GX_NULL,                                 /* no next widget                 */
8264     GX_NULL,                                 /* no child widgets               */
8265     offsetof(LOCKS_DOOR_BASE_CONTROL_BLOCK, locks_door_base_lock_text), /* control block */
8266     (void *) &locks_door_base_lock_text_properties /* extended properties      */
8267 };
8268 
8269 GX_CONST GX_STUDIO_WIDGET locks_door_base_lock_icon_define =
8270 {
8271     "lock_icon",
8272     GX_TYPE_ICON,                            /* widget type                    */
8273     GX_ID_NONE,                              /* widget id                      */
8274     #if defined(GX_WIDGET_USER_DATA)
8275     0,                                       /* user data                      */
8276     #endif
8277     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER,   /* style flags */
8278     0,                                       /* status flags                   */
8279     sizeof(GX_ICON),                         /* control block size             */
8280     GX_COLOR_ID_BLUE,                        /* normal color id                */
8281     GX_COLOR_ID_BLUE,                        /* selected color id              */
8282     GX_COLOR_ID_BLUE,                        /* disabled color id              */
8283     gx_studio_icon_create,                   /* create function                */
8284     GX_NULL,                                 /* drawing function override      */
8285     GX_NULL,                                 /* event function override        */
8286     {438, 185, 506, 251},                    /* widget size                    */
8287     &locks_door_base_lock_text_define,       /* next widget definition         */
8288     GX_NULL,                                 /* no child widgets               */
8289     offsetof(LOCKS_DOOR_BASE_CONTROL_BLOCK, locks_door_base_lock_icon), /* control block */
8290     (void *) &locks_door_base_lock_icon_properties /* extended properties      */
8291 };
8292 
8293 GX_CONST GX_STUDIO_WIDGET locks_door_base_button_open_define =
8294 {
8295     "button_open",
8296     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
8297     ID_OPEN,                                 /* widget id                      */
8298     #if defined(GX_WIDGET_USER_DATA)
8299     0,                                       /* user data                      */
8300     #endif
8301     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
8302     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8303     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
8304     GX_COLOR_ID_PLUS_NORMAL,                 /* normal color id                */
8305     GX_COLOR_ID_PLUS_SELECTED,               /* selected color id              */
8306     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8307     gx_studio_pixelmap_button_create,        /* create function                */
8308     GX_NULL,                                 /* drawing function override      */
8309     GX_NULL,                                 /* event function override        */
8310     {419, 175, 524, 298},                    /* widget size                    */
8311     GX_NULL,                                 /* no next widget                 */
8312     GX_NULL,                                 /* no child widgets               */
8313     offsetof(LOCKS_DOOR_BASE_CONTROL_BLOCK, locks_door_base_button_open), /* control block */
8314     (void *) &locks_door_base_button_open_properties /* extended properties    */
8315 };
8316 
8317 GX_CONST GX_STUDIO_WIDGET locks_door_base_button_close_define =
8318 {
8319     "button_close",
8320     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
8321     ID_CLOSE,                                /* widget id                      */
8322     #if defined(GX_WIDGET_USER_DATA)
8323     0,                                       /* user data                      */
8324     #endif
8325     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
8326     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8327     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
8328     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8329     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8330     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8331     gx_studio_pixelmap_button_create,        /* create function                */
8332     GX_NULL,                                 /* drawing function override      */
8333     GX_NULL,                                 /* event function override        */
8334     {582, 345, 604, 372},                    /* widget size                    */
8335     &locks_door_base_button_open_define,     /* next widget definition         */
8336     GX_NULL,                                 /* no child widgets               */
8337     offsetof(LOCKS_DOOR_BASE_CONTROL_BLOCK, locks_door_base_button_close), /* control block */
8338     (void *) &locks_door_base_button_close_properties /* extended properties   */
8339 };
8340 
8341 GX_CONST GX_STUDIO_WIDGET locks_door_base_button_lock_define =
8342 {
8343     "button_lock",
8344     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
8345     ID_LOCK_BUTTON,                          /* widget id                      */
8346     #if defined(GX_WIDGET_USER_DATA)
8347     0,                                       /* user data                      */
8348     #endif
8349     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
8350     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8351     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
8352     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8353     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8354     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8355     gx_studio_pixelmap_button_create,        /* create function                */
8356     GX_NULL,                                 /* drawing function override      */
8357     GX_NULL,                                 /* event function override        */
8358     {376, 151, 561, 336},                    /* widget size                    */
8359     &locks_door_base_button_close_define,    /* next widget definition         */
8360     &locks_door_base_lock_icon_define,       /* child widget definition        */
8361     offsetof(LOCKS_DOOR_BASE_CONTROL_BLOCK, locks_door_base_button_lock), /* control block */
8362     (void *) &locks_door_base_button_lock_properties /* extended properties    */
8363 };
8364 
8365 GX_CONST GX_STUDIO_WIDGET locks_door_base_status_text_define =
8366 {
8367     "status_text",
8368     GX_TYPE_PROMPT,                          /* widget type                    */
8369     ID_STATUS,                               /* widget id                      */
8370     #if defined(GX_WIDGET_USER_DATA)
8371     0,                                       /* user data                      */
8372     #endif
8373     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_COPY|GX_STYLE_TEXT_LEFT,   /* style flags */
8374     0,                                       /* status flags                   */
8375     sizeof(GX_PROMPT),                       /* control block size             */
8376     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
8377     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
8378     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8379     gx_studio_prompt_create,                 /* create function                */
8380     GX_NULL,                                 /* drawing function override      */
8381     GX_NULL,                                 /* event function override        */
8382     {362, 134, 421, 146},                    /* widget size                    */
8383     &locks_door_base_button_lock_define,     /* next widget definition         */
8384     GX_NULL,                                 /* no child widgets               */
8385     offsetof(LOCKS_DOOR_BASE_CONTROL_BLOCK, locks_door_base_status_text), /* control block */
8386     (void *) &locks_door_base_status_text_properties /* extended properties    */
8387 };
8388 
8389 GX_CONST GX_STUDIO_WIDGET locks_door_base_status_icon_define =
8390 {
8391     "status_icon",
8392     GX_TYPE_ICON,                            /* widget type                    */
8393     ID_STATUS,                               /* widget id                      */
8394     #if defined(GX_WIDGET_USER_DATA)
8395     0,                                       /* user data                      */
8396     #endif
8397     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
8398     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8399     sizeof(GX_ICON),                         /* control block size             */
8400     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
8401     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
8402     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8403     gx_studio_icon_create,                   /* create function                */
8404     GX_NULL,                                 /* drawing function override      */
8405     GX_NULL,                                 /* event function override        */
8406     {340, 129, 359, 148},                    /* widget size                    */
8407     &locks_door_base_status_text_define,     /* next widget definition         */
8408     GX_NULL,                                 /* no child widgets               */
8409     offsetof(LOCKS_DOOR_BASE_CONTROL_BLOCK, locks_door_base_status_icon), /* control block */
8410     (void *) &locks_door_base_status_icon_properties /* extended properties    */
8411 };
8412 
8413 GX_CONST GX_STUDIO_WIDGET locks_door_base_define =
8414 {
8415     "locks_door_base",
8416     GX_TYPE_TEMPLATE,                        /* widget type                    */
8417     GX_ID_NONE,                              /* widget id                      */
8418     #if defined(GX_WIDGET_USER_DATA)
8419     0,                                       /* user data                      */
8420     #endif
8421     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
8422     0,                                       /* status flags                   */
8423     sizeof(LOCKS_DOOR_BASE_CONTROL_BLOCK),   /* control block size             */
8424     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8425     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8426     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8427     gx_studio_template_create,               /* create function                */
8428     GX_NULL,                                 /* drawing function override      */
8429     (UINT (*)(GX_WIDGET *, GX_EVENT *)) locks_door_base_event_process, /* event function override */
8430     {323, 89, 621, 385},                     /* widget size                    */
8431     GX_NULL,                                 /* next widget                    */
8432     &locks_door_base_status_icon_define,     /* child widget                   */
8433     0,                                       /* control block                  */
8434     (void *) &locks_door_base_properties     /* extended properties            */
8435 };
8436 GX_TEMPLATE_PROPERTIES locks_screen_properties =
8437 {
8438     &screen_base_define,                     /* base info                      */
8439     gx_studio_window_create,                 /* base create function           */
8440     {0, 0, 639, 479}                         /* widget size                    */
8441 };
8442 GX_RADIO_BUTTON_PROPERTIES locks_screen_pagination_1_properties =
8443 {
8444     0,                                       /* string id                      */
8445     GX_FONT_ID_BUTTON,                       /* font id                        */
8446     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
8447     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
8448     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
8449     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
8450     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
8451     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
8452     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
8453 };
8454 GX_RADIO_BUTTON_PROPERTIES locks_screen_pagination_2_properties =
8455 {
8456     0,                                       /* string id                      */
8457     GX_FONT_ID_BUTTON,                       /* font id                        */
8458     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
8459     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
8460     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
8461     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
8462     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
8463     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
8464     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
8465 };
8466 GX_RADIO_BUTTON_PROPERTIES locks_screen_pagination_3_properties =
8467 {
8468     0,                                       /* string id                      */
8469     GX_FONT_ID_BUTTON,                       /* font id                        */
8470     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
8471     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
8472     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
8473     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
8474     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
8475     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
8476     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
8477 };
8478 
8479 GX_CONST GX_STUDIO_WIDGET locks_screen_pagination_3_define =
8480 {
8481     "pagination_3",
8482     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
8483     ID_PAGINATION_3,                         /* widget id                      */
8484     #if defined(GX_WIDGET_USER_DATA)
8485     0,                                       /* user data                      */
8486     #endif
8487     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
8488     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8489     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
8490     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8491     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8492     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8493     gx_studio_radio_button_create,           /* create function                */
8494     GX_NULL,                                 /* drawing function override      */
8495     GX_NULL,                                 /* event function override        */
8496     {341, 68, 356, 83},                      /* widget size                    */
8497     GX_NULL,                                 /* no next widget                 */
8498     GX_NULL,                                 /* no child widgets               */
8499     offsetof(LOCKS_SCREEN_CONTROL_BLOCK, locks_screen_pagination_3), /* control block */
8500     (void *) &locks_screen_pagination_3_properties /* extended properties      */
8501 };
8502 
8503 GX_CONST GX_STUDIO_WIDGET locks_screen_pagination_2_define =
8504 {
8505     "pagination_2",
8506     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
8507     ID_PAGINATION_2,                         /* widget id                      */
8508     #if defined(GX_WIDGET_USER_DATA)
8509     0,                                       /* user data                      */
8510     #endif
8511     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
8512     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8513     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
8514     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8515     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8516     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8517     gx_studio_radio_button_create,           /* create function                */
8518     GX_NULL,                                 /* drawing function override      */
8519     GX_NULL,                                 /* event function override        */
8520     {315, 68, 330, 83},                      /* widget size                    */
8521     &locks_screen_pagination_3_define,       /* next widget definition         */
8522     GX_NULL,                                 /* no child widgets               */
8523     offsetof(LOCKS_SCREEN_CONTROL_BLOCK, locks_screen_pagination_2), /* control block */
8524     (void *) &locks_screen_pagination_2_properties /* extended properties      */
8525 };
8526 
8527 GX_CONST GX_STUDIO_WIDGET locks_screen_pagination_1_define =
8528 {
8529     "pagination_1",
8530     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
8531     ID_PAGINATION_1,                         /* widget id                      */
8532     #if defined(GX_WIDGET_USER_DATA)
8533     0,                                       /* user data                      */
8534     #endif
8535     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
8536     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8537     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
8538     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8539     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8540     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8541     gx_studio_radio_button_create,           /* create function                */
8542     GX_NULL,                                 /* drawing function override      */
8543     GX_NULL,                                 /* event function override        */
8544     {289, 68, 304, 83},                      /* widget size                    */
8545     &locks_screen_pagination_2_define,       /* next widget definition         */
8546     GX_NULL,                                 /* no child widgets               */
8547     offsetof(LOCKS_SCREEN_CONTROL_BLOCK, locks_screen_pagination_1), /* control block */
8548     (void *) &locks_screen_pagination_1_properties /* extended properties      */
8549 };
8550 
8551 GX_CONST GX_STUDIO_WIDGET locks_screen_define =
8552 {
8553     "locks_screen",
8554     GX_TYPE_TEMPLATE,                        /* widget type                    */
8555     ID_LOCKS_SCREEN,                         /* widget id                      */
8556     #if defined(GX_WIDGET_USER_DATA)
8557     0,                                       /* user data                      */
8558     #endif
8559     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
8560     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8561     sizeof(LOCKS_SCREEN_CONTROL_BLOCK),      /* control block size             */
8562     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8563     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8564     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8565     gx_studio_template_create,               /* create function                */
8566     GX_NULL,                                 /* drawing function override      */
8567     GX_NULL,                                 /* event function override        */
8568     {0, 0, 639, 479},                        /* widget size                    */
8569     GX_NULL,                                 /* next widget                    */
8570     &locks_screen_pagination_1_define,       /* child widget                   */
8571     0,                                       /* control block                  */
8572     (void *) &locks_screen_properties        /* extended properties            */
8573 };
8574 GX_TEMPLATE_PROPERTIES win_San_Diego_properties =
8575 {
8576     &weather_base_define,                    /* base info                      */
8577     gx_studio_window_create,                 /* base create function           */
8578     {20, 90, 630, 384}                       /* widget size                    */
8579 };
8580 
8581 GX_CONST GX_STUDIO_WIDGET win_San_Diego_define =
8582 {
8583     "win_San_Diego",
8584     GX_TYPE_TEMPLATE,                        /* widget type                    */
8585     GX_ID_NONE,                              /* widget id                      */
8586     #if defined(GX_WIDGET_USER_DATA)
8587     0,                                       /* user data                      */
8588     #endif
8589     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
8590     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8591     sizeof(WIN_SAN_DIEGO_CONTROL_BLOCK),     /* control block size             */
8592     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8593     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8594     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8595     gx_studio_template_create,               /* create function                */
8596     GX_NULL,                                 /* drawing function override      */
8597     GX_NULL,                                 /* event function override        */
8598     {20, 90, 630, 384},                      /* widget size                    */
8599     GX_NULL,                                 /* next widget                    */
8600     GX_NULL,                                 /* child widget                   */
8601     0,                                       /* control block                  */
8602     (void *) &win_San_Diego_properties       /* extended properties            */
8603 };
8604 GX_TEMPLATE_PROPERTIES win_New_York_properties =
8605 {
8606     &weather_base_define,                    /* base info                      */
8607     gx_studio_window_create,                 /* base create function           */
8608     {20, 90, 630, 384}                       /* widget size                    */
8609 };
8610 
8611 GX_CONST GX_STUDIO_WIDGET win_New_York_define =
8612 {
8613     "win_New_York",
8614     GX_TYPE_TEMPLATE,                        /* widget type                    */
8615     GX_ID_NONE,                              /* widget id                      */
8616     #if defined(GX_WIDGET_USER_DATA)
8617     0,                                       /* user data                      */
8618     #endif
8619     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
8620     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8621     sizeof(WIN_NEW_YORK_CONTROL_BLOCK),      /* control block size             */
8622     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8623     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8624     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8625     gx_studio_template_create,               /* create function                */
8626     GX_NULL,                                 /* drawing function override      */
8627     GX_NULL,                                 /* event function override        */
8628     {20, 90, 630, 384},                      /* widget size                    */
8629     GX_NULL,                                 /* next widget                    */
8630     GX_NULL,                                 /* child widget                   */
8631     0,                                       /* control block                  */
8632     (void *) &win_New_York_properties        /* extended properties            */
8633 };
8634 GX_TEMPLATE_PROPERTIES win_Las_Vegas_properties =
8635 {
8636     &weather_base_define,                    /* base info                      */
8637     gx_studio_window_create,                 /* base create function           */
8638     {20, 90, 630, 384}                       /* widget size                    */
8639 };
8640 
8641 GX_CONST GX_STUDIO_WIDGET win_Las_Vegas_define =
8642 {
8643     "win_Las_Vegas",
8644     GX_TYPE_TEMPLATE,                        /* widget type                    */
8645     GX_ID_NONE,                              /* widget id                      */
8646     #if defined(GX_WIDGET_USER_DATA)
8647     0,                                       /* user data                      */
8648     #endif
8649     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
8650     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8651     sizeof(WIN_LAS_VEGAS_CONTROL_BLOCK),     /* control block size             */
8652     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8653     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8654     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8655     gx_studio_template_create,               /* create function                */
8656     GX_NULL,                                 /* drawing function override      */
8657     GX_NULL,                                 /* event function override        */
8658     {20, 90, 630, 384},                      /* widget size                    */
8659     GX_NULL,                                 /* next widget                    */
8660     GX_NULL,                                 /* child widget                   */
8661     0,                                       /* control block                  */
8662     (void *) &win_Las_Vegas_properties       /* extended properties            */
8663 };
8664 GX_TEMPLATE_PROPERTIES weather_screen_properties =
8665 {
8666     &screen_base_define,                     /* base info                      */
8667     gx_studio_window_create,                 /* base create function           */
8668     {0, 0, 639, 479}                         /* widget size                    */
8669 };
8670 GX_RADIO_BUTTON_PROPERTIES weather_screen_pagination_1_properties =
8671 {
8672     0,                                       /* string id                      */
8673     GX_FONT_ID_BUTTON,                       /* font id                        */
8674     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
8675     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
8676     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
8677     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
8678     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
8679     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
8680     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
8681 };
8682 GX_RADIO_BUTTON_PROPERTIES weather_screen_pagination_2_properties =
8683 {
8684     0,                                       /* string id                      */
8685     GX_FONT_ID_BUTTON,                       /* font id                        */
8686     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
8687     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
8688     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
8689     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
8690     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
8691     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
8692     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
8693 };
8694 GX_RADIO_BUTTON_PROPERTIES weather_screen_pagination_3_properties =
8695 {
8696     0,                                       /* string id                      */
8697     GX_FONT_ID_BUTTON,                       /* font id                        */
8698     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
8699     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
8700     GX_COLOR_ID_DISABLED_TEXT,               /* disabled text color            */
8701     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off pixelmap id                */
8702     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE,    /* on pixelmap id                 */
8703     GX_PIXELMAP_ID_PAGINATION_DOT,           /* off disabled pixelmap id       */
8704     GX_PIXELMAP_ID_PAGINATION_DOT_ACTIVE     /* on disabled pixelmap id        */
8705 };
8706 
8707 GX_CONST GX_STUDIO_WIDGET weather_screen_pagination_3_define =
8708 {
8709     "pagination_3",
8710     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
8711     ID_PAGINATION_3,                         /* widget id                      */
8712     #if defined(GX_WIDGET_USER_DATA)
8713     0,                                       /* user data                      */
8714     #endif
8715     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
8716     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8717     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
8718     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8719     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8720     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8721     gx_studio_radio_button_create,           /* create function                */
8722     GX_NULL,                                 /* drawing function override      */
8723     GX_NULL,                                 /* event function override        */
8724     {341, 68, 356, 83},                      /* widget size                    */
8725     GX_NULL,                                 /* no next widget                 */
8726     GX_NULL,                                 /* no child widgets               */
8727     offsetof(WEATHER_SCREEN_CONTROL_BLOCK, weather_screen_pagination_3), /* control block */
8728     (void *) &weather_screen_pagination_3_properties /* extended properties    */
8729 };
8730 
8731 GX_CONST GX_STUDIO_WIDGET weather_screen_pagination_2_define =
8732 {
8733     "pagination_2",
8734     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
8735     ID_PAGINATION_2,                         /* widget id                      */
8736     #if defined(GX_WIDGET_USER_DATA)
8737     0,                                       /* user data                      */
8738     #endif
8739     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
8740     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8741     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
8742     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8743     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8744     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8745     gx_studio_radio_button_create,           /* create function                */
8746     GX_NULL,                                 /* drawing function override      */
8747     GX_NULL,                                 /* event function override        */
8748     {315, 68, 330, 83},                      /* widget size                    */
8749     &weather_screen_pagination_3_define,     /* next widget definition         */
8750     GX_NULL,                                 /* no child widgets               */
8751     offsetof(WEATHER_SCREEN_CONTROL_BLOCK, weather_screen_pagination_2), /* control block */
8752     (void *) &weather_screen_pagination_2_properties /* extended properties    */
8753 };
8754 
8755 GX_CONST GX_STUDIO_WIDGET weather_screen_pagination_1_define =
8756 {
8757     "pagination_1",
8758     GX_TYPE_RADIO_BUTTON,                    /* widget type                    */
8759     ID_PAGINATION_1,                         /* widget id                      */
8760     #if defined(GX_WIDGET_USER_DATA)
8761     0,                                       /* user data                      */
8762     #endif
8763     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_BUTTON_PUSHED|GX_STYLE_BUTTON_RADIO|GX_STYLE_TEXT_CENTER,   /* style flags */
8764     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8765     sizeof(GX_RADIO_BUTTON),                 /* control block size             */
8766     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
8767     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
8768     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8769     gx_studio_radio_button_create,           /* create function                */
8770     GX_NULL,                                 /* drawing function override      */
8771     GX_NULL,                                 /* event function override        */
8772     {289, 68, 304, 83},                      /* widget size                    */
8773     &weather_screen_pagination_2_define,     /* next widget definition         */
8774     GX_NULL,                                 /* no child widgets               */
8775     offsetof(WEATHER_SCREEN_CONTROL_BLOCK, weather_screen_pagination_1), /* control block */
8776     (void *) &weather_screen_pagination_1_properties /* extended properties    */
8777 };
8778 
8779 GX_CONST GX_STUDIO_WIDGET weather_screen_define =
8780 {
8781     "weather_screen",
8782     GX_TYPE_TEMPLATE,                        /* widget type                    */
8783     ID_WEATHER_SCREEN,                       /* widget id                      */
8784     #if defined(GX_WIDGET_USER_DATA)
8785     0,                                       /* user data                      */
8786     #endif
8787     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
8788     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8789     sizeof(WEATHER_SCREEN_CONTROL_BLOCK),    /* control block size             */
8790     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8791     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8792     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8793     gx_studio_template_create,               /* create function                */
8794     GX_NULL,                                 /* drawing function override      */
8795     GX_NULL,                                 /* event function override        */
8796     {0, 0, 639, 479},                        /* widget size                    */
8797     GX_NULL,                                 /* next widget                    */
8798     &weather_screen_pagination_1_define,     /* child widget                   */
8799     0,                                       /* control block                  */
8800     (void *) &weather_screen_properties      /* extended properties            */
8801 };
8802 GX_TEMPLATE_PROPERTIES add_base_properties =
8803 {
8804     &controller_base_define,                 /* base info                      */
8805     gx_studio_window_create,                 /* base create function           */
8806     {324, 90, 620, 384}                      /* widget size                    */
8807 };
8808 GX_PIXELMAP_BUTTON_PROPERTIES add_base_add_properties =
8809 {
8810     GX_PIXELMAP_ID_BOX_ICON_PLUS_LG,         /* normal pixelmap id             */
8811     GX_PIXELMAP_ID_BOX_ICON_PLUS_LG,         /* selected pixelmap id           */
8812     0                                        /* disabled pixelmap id           */
8813 };
8814 
8815 GX_CONST GX_STUDIO_WIDGET add_base_add_define =
8816 {
8817     "add",
8818     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
8819     ID_ADD,                                  /* widget id                      */
8820     #if defined(GX_WIDGET_USER_DATA)
8821     0,                                       /* user data                      */
8822     #endif
8823     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
8824     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8825     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
8826     GX_COLOR_ID_PLUS_NORMAL,                 /* normal color id                */
8827     GX_COLOR_ID_PLUS_SELECTED,               /* selected color id              */
8828     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8829     gx_studio_pixelmap_button_create,        /* create function                */
8830     GX_NULL,                                 /* drawing function override      */
8831     GX_NULL,                                 /* event function override        */
8832     {405, 177, 535, 306},                    /* widget size                    */
8833     GX_NULL,                                 /* no next widget                 */
8834     GX_NULL,                                 /* no child widgets               */
8835     offsetof(ADD_BASE_CONTROL_BLOCK, add_base_add), /* control block           */
8836     (void *) &add_base_add_properties        /* extended properties            */
8837 };
8838 
8839 GX_CONST GX_STUDIO_WIDGET add_base_define =
8840 {
8841     "add_base",
8842     GX_TYPE_TEMPLATE,                        /* widget type                    */
8843     GX_ID_NONE,                              /* widget id                      */
8844     #if defined(GX_WIDGET_USER_DATA)
8845     0,                                       /* user data                      */
8846     #endif
8847     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
8848     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8849     sizeof(ADD_BASE_CONTROL_BLOCK),          /* control block size             */
8850     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8851     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8852     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8853     gx_studio_template_create,               /* create function                */
8854     GX_NULL,                                 /* drawing function override      */
8855     GX_NULL,                                 /* event function override        */
8856     {324, 90, 620, 384},                     /* widget size                    */
8857     GX_NULL,                                 /* next widget                    */
8858     &add_base_add_define,                    /* child widget                   */
8859     0,                                       /* control block                  */
8860     (void *) &add_base_properties            /* extended properties            */
8861 };
8862 GX_WINDOW_PROPERTIES thermostat_page_4_properties =
8863 {
8864     0                                        /* wallpaper pixelmap id          */
8865 };
8866 GX_TEMPLATE_PROPERTIES thermostat_page_4_office_properties =
8867 {
8868     &thermostat_base_define,                 /* base info                      */
8869     gx_studio_template_create,               /* base create function           */
8870     {20, 90, 316, 384}                       /* widget size                    */
8871 };
8872 GX_TEMPLATE_PROPERTIES thermostat_page_4_add_room_properties =
8873 {
8874     &add_base_define,                        /* base info                      */
8875     gx_studio_template_create,               /* base create function           */
8876     {324, 90, 620, 384}                      /* widget size                    */
8877 };
8878 
8879 GX_CONST GX_STUDIO_WIDGET thermostat_page_4_add_room_define =
8880 {
8881     "add_room",
8882     GX_TYPE_TEMPLATE,                        /* widget type                    */
8883     GX_ID_NONE,                              /* widget id                      */
8884     #if defined(GX_WIDGET_USER_DATA)
8885     0,                                       /* user data                      */
8886     #endif
8887     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
8888     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8889     sizeof(ADD_BASE_CONTROL_BLOCK),          /* control block size             */
8890     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8891     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8892     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8893     gx_studio_template_create,               /* create function                */
8894     GX_NULL,                                 /* drawing function override      */
8895     GX_NULL,                                 /* event function override        */
8896     {324, 90, 620, 384},                     /* widget size                    */
8897     GX_NULL,                                 /* no next widget                 */
8898     GX_NULL,                                 /* no child widgets               */
8899     offsetof(THERMOSTAT_PAGE_4_CONTROL_BLOCK, thermostat_page_4_add_room), /* control block */
8900     (void *) &thermostat_page_4_add_room_properties /* extended properties     */
8901 };
8902 
8903 GX_CONST GX_STUDIO_WIDGET thermostat_page_4_office_define =
8904 {
8905     "office",
8906     GX_TYPE_TEMPLATE,                        /* widget type                    */
8907     GX_ID_NONE,                              /* widget id                      */
8908     #if defined(GX_WIDGET_USER_DATA)
8909     0,                                       /* user data                      */
8910     #endif
8911     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
8912     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8913     sizeof(THERMOSTAT_BASE_CONTROL_BLOCK),   /* control block size             */
8914     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8915     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8916     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8917     gx_studio_template_create,               /* create function                */
8918     GX_NULL,                                 /* drawing function override      */
8919     GX_NULL,                                 /* event function override        */
8920     {20, 90, 316, 384},                      /* widget size                    */
8921     &thermostat_page_4_add_room_define,      /* next widget definition         */
8922     GX_NULL,                                 /* no child widgets               */
8923     offsetof(THERMOSTAT_PAGE_4_CONTROL_BLOCK, thermostat_page_4_office), /* control block */
8924     (void *) &thermostat_page_4_office_properties /* extended properties       */
8925 };
8926 
8927 GX_CONST GX_STUDIO_WIDGET thermostat_page_4_define =
8928 {
8929     "thermostat_page_4",
8930     GX_TYPE_WINDOW,                          /* widget type                    */
8931     GX_ID_NONE,                              /* widget id                      */
8932     #if defined(GX_WIDGET_USER_DATA)
8933     0,                                       /* user data                      */
8934     #endif
8935     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
8936     0,                                       /* status flags                   */
8937     sizeof(THERMOSTAT_PAGE_4_CONTROL_BLOCK), /* control block size             */
8938     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8939     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8940     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8941     gx_studio_window_create,                 /* create function                */
8942     GX_NULL,                                 /* drawing function override      */
8943     GX_NULL,                                 /* event function override        */
8944     {20, 90, 630, 384},                      /* widget size                    */
8945     GX_NULL,                                 /* next widget                    */
8946     &thermostat_page_4_office_define,        /* child widget                   */
8947     0,                                       /* control block                  */
8948     (void *) &thermostat_page_4_properties   /* extended properties            */
8949 };
8950 GX_WINDOW_PROPERTIES thermostat_page_3_properties =
8951 {
8952     0                                        /* wallpaper pixelmap id          */
8953 };
8954 GX_TEMPLATE_PROPERTIES thermostat_page_3_dinning_room_properties =
8955 {
8956     &thermostat_base_define,                 /* base info                      */
8957     gx_studio_template_create,               /* base create function           */
8958     {20, 90, 316, 384}                       /* widget size                    */
8959 };
8960 GX_TEMPLATE_PROPERTIES thermostat_page_3_outdoor_patio_properties =
8961 {
8962     &thermostat_base_define,                 /* base info                      */
8963     gx_studio_template_create,               /* base create function           */
8964     {324, 90, 620, 384}                      /* widget size                    */
8965 };
8966 
8967 GX_CONST GX_STUDIO_WIDGET thermostat_page_3_outdoor_patio_define =
8968 {
8969     "outdoor_patio",
8970     GX_TYPE_TEMPLATE,                        /* widget type                    */
8971     GX_ID_NONE,                              /* widget id                      */
8972     #if defined(GX_WIDGET_USER_DATA)
8973     0,                                       /* user data                      */
8974     #endif
8975     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
8976     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
8977     sizeof(THERMOSTAT_BASE_CONTROL_BLOCK),   /* control block size             */
8978     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
8979     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
8980     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
8981     gx_studio_template_create,               /* create function                */
8982     GX_NULL,                                 /* drawing function override      */
8983     GX_NULL,                                 /* event function override        */
8984     {324, 90, 620, 384},                     /* widget size                    */
8985     GX_NULL,                                 /* no next widget                 */
8986     GX_NULL,                                 /* no child widgets               */
8987     offsetof(THERMOSTAT_PAGE_3_CONTROL_BLOCK, thermostat_page_3_outdoor_patio), /* control block */
8988     (void *) &thermostat_page_3_outdoor_patio_properties /* extended properties */
8989 };
8990 
8991 GX_CONST GX_STUDIO_WIDGET thermostat_page_3_dinning_room_define =
8992 {
8993     "dinning_room",
8994     GX_TYPE_TEMPLATE,                        /* widget type                    */
8995     GX_ID_NONE,                              /* widget id                      */
8996     #if defined(GX_WIDGET_USER_DATA)
8997     0,                                       /* user data                      */
8998     #endif
8999     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9000     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9001     sizeof(THERMOSTAT_BASE_CONTROL_BLOCK),   /* control block size             */
9002     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9003     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9004     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9005     gx_studio_template_create,               /* create function                */
9006     GX_NULL,                                 /* drawing function override      */
9007     GX_NULL,                                 /* event function override        */
9008     {20, 90, 316, 384},                      /* widget size                    */
9009     &thermostat_page_3_outdoor_patio_define, /* next widget definition         */
9010     GX_NULL,                                 /* no child widgets               */
9011     offsetof(THERMOSTAT_PAGE_3_CONTROL_BLOCK, thermostat_page_3_dinning_room), /* control block */
9012     (void *) &thermostat_page_3_dinning_room_properties /* extended properties */
9013 };
9014 
9015 GX_CONST GX_STUDIO_WIDGET thermostat_page_3_define =
9016 {
9017     "thermostat_page_3",
9018     GX_TYPE_WINDOW,                          /* widget type                    */
9019     GX_ID_NONE,                              /* widget id                      */
9020     #if defined(GX_WIDGET_USER_DATA)
9021     0,                                       /* user data                      */
9022     #endif
9023     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
9024     0,                                       /* status flags                   */
9025     sizeof(THERMOSTAT_PAGE_3_CONTROL_BLOCK), /* control block size             */
9026     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9027     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9028     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9029     gx_studio_window_create,                 /* create function                */
9030     GX_NULL,                                 /* drawing function override      */
9031     GX_NULL,                                 /* event function override        */
9032     {20, 90, 630, 384},                      /* widget size                    */
9033     GX_NULL,                                 /* next widget                    */
9034     &thermostat_page_3_dinning_room_define,  /* child widget                   */
9035     0,                                       /* control block                  */
9036     (void *) &thermostat_page_3_properties   /* extended properties            */
9037 };
9038 GX_WINDOW_PROPERTIES thermostat_page_2_properties =
9039 {
9040     0                                        /* wallpaper pixelmap id          */
9041 };
9042 GX_TEMPLATE_PROPERTIES thermostat_page_2_kids_bedroom_properties =
9043 {
9044     &thermostat_base_define,                 /* base info                      */
9045     gx_studio_template_create,               /* base create function           */
9046     {20, 90, 316, 384}                       /* widget size                    */
9047 };
9048 GX_TEMPLATE_PROPERTIES thermostat_page_2_living_room_properties =
9049 {
9050     &thermostat_base_define,                 /* base info                      */
9051     gx_studio_template_create,               /* base create function           */
9052     {324, 90, 620, 384}                      /* widget size                    */
9053 };
9054 
9055 GX_CONST GX_STUDIO_WIDGET thermostat_page_2_living_room_define =
9056 {
9057     "living_room",
9058     GX_TYPE_TEMPLATE,                        /* widget type                    */
9059     GX_ID_NONE,                              /* widget id                      */
9060     #if defined(GX_WIDGET_USER_DATA)
9061     0,                                       /* user data                      */
9062     #endif
9063     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9064     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9065     sizeof(THERMOSTAT_BASE_CONTROL_BLOCK),   /* control block size             */
9066     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9067     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9068     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9069     gx_studio_template_create,               /* create function                */
9070     GX_NULL,                                 /* drawing function override      */
9071     GX_NULL,                                 /* event function override        */
9072     {324, 90, 620, 384},                     /* widget size                    */
9073     GX_NULL,                                 /* no next widget                 */
9074     GX_NULL,                                 /* no child widgets               */
9075     offsetof(THERMOSTAT_PAGE_2_CONTROL_BLOCK, thermostat_page_2_living_room), /* control block */
9076     (void *) &thermostat_page_2_living_room_properties /* extended properties  */
9077 };
9078 
9079 GX_CONST GX_STUDIO_WIDGET thermostat_page_2_kids_bedroom_define =
9080 {
9081     "kids_bedroom",
9082     GX_TYPE_TEMPLATE,                        /* widget type                    */
9083     GX_ID_NONE,                              /* widget id                      */
9084     #if defined(GX_WIDGET_USER_DATA)
9085     0,                                       /* user data                      */
9086     #endif
9087     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9088     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9089     sizeof(THERMOSTAT_BASE_CONTROL_BLOCK),   /* control block size             */
9090     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9091     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9092     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9093     gx_studio_template_create,               /* create function                */
9094     GX_NULL,                                 /* drawing function override      */
9095     GX_NULL,                                 /* event function override        */
9096     {20, 90, 316, 384},                      /* widget size                    */
9097     &thermostat_page_2_living_room_define,   /* next widget definition         */
9098     GX_NULL,                                 /* no child widgets               */
9099     offsetof(THERMOSTAT_PAGE_2_CONTROL_BLOCK, thermostat_page_2_kids_bedroom), /* control block */
9100     (void *) &thermostat_page_2_kids_bedroom_properties /* extended properties */
9101 };
9102 
9103 GX_CONST GX_STUDIO_WIDGET thermostat_page_2_define =
9104 {
9105     "thermostat_page_2",
9106     GX_TYPE_WINDOW,                          /* widget type                    */
9107     GX_ID_NONE,                              /* widget id                      */
9108     #if defined(GX_WIDGET_USER_DATA)
9109     0,                                       /* user data                      */
9110     #endif
9111     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
9112     0,                                       /* status flags                   */
9113     sizeof(THERMOSTAT_PAGE_2_CONTROL_BLOCK), /* control block size             */
9114     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9115     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9116     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9117     gx_studio_window_create,                 /* create function                */
9118     GX_NULL,                                 /* drawing function override      */
9119     GX_NULL,                                 /* event function override        */
9120     {20, 90, 630, 384},                      /* widget size                    */
9121     GX_NULL,                                 /* next widget                    */
9122     &thermostat_page_2_kids_bedroom_define,  /* child widget                   */
9123     0,                                       /* control block                  */
9124     (void *) &thermostat_page_2_properties   /* extended properties            */
9125 };
9126 GX_WINDOW_PROPERTIES thermostat_page_1_properties =
9127 {
9128     0                                        /* wallpaper pixelmap id          */
9129 };
9130 GX_TEMPLATE_PROPERTIES thermostat_page_1_kitchen_properties =
9131 {
9132     &thermostat_base_define,                 /* base info                      */
9133     gx_studio_template_create,               /* base create function           */
9134     {20, 90, 316, 384}                       /* widget size                    */
9135 };
9136 GX_TEMPLATE_PROPERTIES thermostat_page_1_master_bedroom_properties =
9137 {
9138     &thermostat_base_define,                 /* base info                      */
9139     gx_studio_template_create,               /* base create function           */
9140     {324, 90, 620, 384}                      /* widget size                    */
9141 };
9142 
9143 GX_CONST GX_STUDIO_WIDGET thermostat_page_1_master_bedroom_define =
9144 {
9145     "master_bedroom",
9146     GX_TYPE_TEMPLATE,                        /* widget type                    */
9147     GX_ID_NONE,                              /* widget id                      */
9148     #if defined(GX_WIDGET_USER_DATA)
9149     0,                                       /* user data                      */
9150     #endif
9151     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9152     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9153     sizeof(THERMOSTAT_BASE_CONTROL_BLOCK),   /* control block size             */
9154     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9155     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9156     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9157     gx_studio_template_create,               /* create function                */
9158     GX_NULL,                                 /* drawing function override      */
9159     GX_NULL,                                 /* event function override        */
9160     {324, 90, 620, 384},                     /* widget size                    */
9161     GX_NULL,                                 /* no next widget                 */
9162     GX_NULL,                                 /* no child widgets               */
9163     offsetof(THERMOSTAT_PAGE_1_CONTROL_BLOCK, thermostat_page_1_master_bedroom), /* control block */
9164     (void *) &thermostat_page_1_master_bedroom_properties /* extended properties */
9165 };
9166 
9167 GX_CONST GX_STUDIO_WIDGET thermostat_page_1_kitchen_define =
9168 {
9169     "kitchen",
9170     GX_TYPE_TEMPLATE,                        /* widget type                    */
9171     GX_ID_NONE,                              /* widget id                      */
9172     #if defined(GX_WIDGET_USER_DATA)
9173     0,                                       /* user data                      */
9174     #endif
9175     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9176     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9177     sizeof(THERMOSTAT_BASE_CONTROL_BLOCK),   /* control block size             */
9178     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9179     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9180     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9181     gx_studio_template_create,               /* create function                */
9182     GX_NULL,                                 /* drawing function override      */
9183     GX_NULL,                                 /* event function override        */
9184     {20, 90, 316, 384},                      /* widget size                    */
9185     &thermostat_page_1_master_bedroom_define, /* next widget definition        */
9186     GX_NULL,                                 /* no child widgets               */
9187     offsetof(THERMOSTAT_PAGE_1_CONTROL_BLOCK, thermostat_page_1_kitchen), /* control block */
9188     (void *) &thermostat_page_1_kitchen_properties /* extended properties      */
9189 };
9190 
9191 GX_CONST GX_STUDIO_WIDGET thermostat_page_1_define =
9192 {
9193     "thermostat_page_1",
9194     GX_TYPE_WINDOW,                          /* widget type                    */
9195     GX_ID_NONE,                              /* widget id                      */
9196     #if defined(GX_WIDGET_USER_DATA)
9197     0,                                       /* user data                      */
9198     #endif
9199     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT,   /* style flags                */
9200     0,                                       /* status flags                   */
9201     sizeof(THERMOSTAT_PAGE_1_CONTROL_BLOCK), /* control block size             */
9202     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9203     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9204     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9205     gx_studio_window_create,                 /* create function                */
9206     GX_NULL,                                 /* drawing function override      */
9207     GX_NULL,                                 /* event function override        */
9208     {20, 90, 630, 384},                      /* widget size                    */
9209     GX_NULL,                                 /* next widget                    */
9210     &thermostat_page_1_kitchen_define,       /* child widget                   */
9211     0,                                       /* control block                  */
9212     (void *) &thermostat_page_1_properties   /* extended properties            */
9213 };
9214 GX_WINDOW_PROPERTIES lights_page_3_properties =
9215 {
9216     0                                        /* wallpaper pixelmap id          */
9217 };
9218 GX_TEMPLATE_PROPERTIES lights_page_3_dinning_room_properties =
9219 {
9220     &lights_base_define,                     /* base info                      */
9221     gx_studio_template_create,               /* base create function           */
9222     {20, 90, 316, 384}                       /* widget size                    */
9223 };
9224 GX_TEMPLATE_PROPERTIES lights_page_3_outdoor_patio_properties =
9225 {
9226     &lights_base_define,                     /* base info                      */
9227     gx_studio_template_create,               /* base create function           */
9228     {324, 90, 620, 384}                      /* widget size                    */
9229 };
9230 
9231 GX_CONST GX_STUDIO_WIDGET lights_page_3_outdoor_patio_define =
9232 {
9233     "outdoor_patio",
9234     GX_TYPE_TEMPLATE,                        /* widget type                    */
9235     GX_ID_NONE,                              /* widget id                      */
9236     #if defined(GX_WIDGET_USER_DATA)
9237     0,                                       /* user data                      */
9238     #endif
9239     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9240     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9241     sizeof(LIGHTS_BASE_CONTROL_BLOCK),       /* control block size             */
9242     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9243     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9244     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9245     gx_studio_template_create,               /* create function                */
9246     GX_NULL,                                 /* drawing function override      */
9247     GX_NULL,                                 /* event function override        */
9248     {324, 90, 620, 384},                     /* widget size                    */
9249     GX_NULL,                                 /* no next widget                 */
9250     GX_NULL,                                 /* no child widgets               */
9251     offsetof(LIGHTS_PAGE_3_CONTROL_BLOCK, lights_page_3_outdoor_patio), /* control block */
9252     (void *) &lights_page_3_outdoor_patio_properties /* extended properties    */
9253 };
9254 
9255 GX_CONST GX_STUDIO_WIDGET lights_page_3_dinning_room_define =
9256 {
9257     "dinning_room",
9258     GX_TYPE_TEMPLATE,                        /* widget type                    */
9259     GX_ID_NONE,                              /* widget id                      */
9260     #if defined(GX_WIDGET_USER_DATA)
9261     0,                                       /* user data                      */
9262     #endif
9263     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9264     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9265     sizeof(LIGHTS_BASE_CONTROL_BLOCK),       /* control block size             */
9266     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9267     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9268     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9269     gx_studio_template_create,               /* create function                */
9270     GX_NULL,                                 /* drawing function override      */
9271     GX_NULL,                                 /* event function override        */
9272     {20, 90, 316, 384},                      /* widget size                    */
9273     &lights_page_3_outdoor_patio_define,     /* next widget definition         */
9274     GX_NULL,                                 /* no child widgets               */
9275     offsetof(LIGHTS_PAGE_3_CONTROL_BLOCK, lights_page_3_dinning_room), /* control block */
9276     (void *) &lights_page_3_dinning_room_properties /* extended properties     */
9277 };
9278 
9279 GX_CONST GX_STUDIO_WIDGET lights_page_3_define =
9280 {
9281     "lights_page_3",
9282     GX_TYPE_WINDOW,                          /* widget type                    */
9283     GX_ID_NONE,                              /* widget id                      */
9284     #if defined(GX_WIDGET_USER_DATA)
9285     0,                                       /* user data                      */
9286     #endif
9287     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9288     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9289     sizeof(LIGHTS_PAGE_3_CONTROL_BLOCK),     /* control block size             */
9290     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9291     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9292     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9293     gx_studio_window_create,                 /* create function                */
9294     GX_NULL,                                 /* drawing function override      */
9295     GX_NULL,                                 /* event function override        */
9296     {20, 90, 630, 384},                      /* widget size                    */
9297     GX_NULL,                                 /* next widget                    */
9298     &lights_page_3_dinning_room_define,      /* child widget                   */
9299     0,                                       /* control block                  */
9300     (void *) &lights_page_3_properties       /* extended properties            */
9301 };
9302 GX_WINDOW_PROPERTIES lights_page_2_properties =
9303 {
9304     0                                        /* wallpaper pixelmap id          */
9305 };
9306 GX_TEMPLATE_PROPERTIES lights_page_2_kids_bedroom_properties =
9307 {
9308     &lights_base_define,                     /* base info                      */
9309     gx_studio_template_create,               /* base create function           */
9310     {20, 90, 316, 384}                       /* widget size                    */
9311 };
9312 GX_TEMPLATE_PROPERTIES lights_page_2_living_room_properties =
9313 {
9314     &lights_base_define,                     /* base info                      */
9315     gx_studio_template_create,               /* base create function           */
9316     {324, 90, 620, 384}                      /* widget size                    */
9317 };
9318 
9319 GX_CONST GX_STUDIO_WIDGET lights_page_2_living_room_define =
9320 {
9321     "living_room",
9322     GX_TYPE_TEMPLATE,                        /* widget type                    */
9323     GX_ID_NONE,                              /* widget id                      */
9324     #if defined(GX_WIDGET_USER_DATA)
9325     0,                                       /* user data                      */
9326     #endif
9327     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9328     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9329     sizeof(LIGHTS_BASE_CONTROL_BLOCK),       /* control block size             */
9330     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9331     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9332     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9333     gx_studio_template_create,               /* create function                */
9334     GX_NULL,                                 /* drawing function override      */
9335     GX_NULL,                                 /* event function override        */
9336     {324, 90, 620, 384},                     /* widget size                    */
9337     GX_NULL,                                 /* no next widget                 */
9338     GX_NULL,                                 /* no child widgets               */
9339     offsetof(LIGHTS_PAGE_2_CONTROL_BLOCK, lights_page_2_living_room), /* control block */
9340     (void *) &lights_page_2_living_room_properties /* extended properties      */
9341 };
9342 
9343 GX_CONST GX_STUDIO_WIDGET lights_page_2_kids_bedroom_define =
9344 {
9345     "kids_bedroom",
9346     GX_TYPE_TEMPLATE,                        /* widget type                    */
9347     GX_ID_NONE,                              /* widget id                      */
9348     #if defined(GX_WIDGET_USER_DATA)
9349     0,                                       /* user data                      */
9350     #endif
9351     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9352     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9353     sizeof(LIGHTS_BASE_CONTROL_BLOCK),       /* control block size             */
9354     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9355     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9356     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9357     gx_studio_template_create,               /* create function                */
9358     GX_NULL,                                 /* drawing function override      */
9359     GX_NULL,                                 /* event function override        */
9360     {20, 90, 316, 384},                      /* widget size                    */
9361     &lights_page_2_living_room_define,       /* next widget definition         */
9362     GX_NULL,                                 /* no child widgets               */
9363     offsetof(LIGHTS_PAGE_2_CONTROL_BLOCK, lights_page_2_kids_bedroom), /* control block */
9364     (void *) &lights_page_2_kids_bedroom_properties /* extended properties     */
9365 };
9366 
9367 GX_CONST GX_STUDIO_WIDGET lights_page_2_define =
9368 {
9369     "lights_page_2",
9370     GX_TYPE_WINDOW,                          /* widget type                    */
9371     GX_ID_NONE,                              /* widget id                      */
9372     #if defined(GX_WIDGET_USER_DATA)
9373     0,                                       /* user data                      */
9374     #endif
9375     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9376     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9377     sizeof(LIGHTS_PAGE_2_CONTROL_BLOCK),     /* control block size             */
9378     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9379     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9380     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9381     gx_studio_window_create,                 /* create function                */
9382     GX_NULL,                                 /* drawing function override      */
9383     GX_NULL,                                 /* event function override        */
9384     {20, 90, 630, 384},                      /* widget size                    */
9385     GX_NULL,                                 /* next widget                    */
9386     &lights_page_2_kids_bedroom_define,      /* child widget                   */
9387     0,                                       /* control block                  */
9388     (void *) &lights_page_2_properties       /* extended properties            */
9389 };
9390 GX_WINDOW_PROPERTIES lights_page_4_properties =
9391 {
9392     0                                        /* wallpaper pixelmap id          */
9393 };
9394 GX_TEMPLATE_PROPERTIES lights_page_4_office_properties =
9395 {
9396     &lights_base_define,                     /* base info                      */
9397     gx_studio_template_create,               /* base create function           */
9398     {20, 90, 316, 384}                       /* widget size                    */
9399 };
9400 GX_TEMPLATE_PROPERTIES lights_page_4_add_light_properties =
9401 {
9402     &add_base_define,                        /* base info                      */
9403     gx_studio_template_create,               /* base create function           */
9404     {324, 90, 620, 384}                      /* widget size                    */
9405 };
9406 
9407 GX_CONST GX_STUDIO_WIDGET lights_page_4_add_light_define =
9408 {
9409     "add_light",
9410     GX_TYPE_TEMPLATE,                        /* widget type                    */
9411     GX_ID_NONE,                              /* widget id                      */
9412     #if defined(GX_WIDGET_USER_DATA)
9413     0,                                       /* user data                      */
9414     #endif
9415     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9416     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9417     sizeof(ADD_BASE_CONTROL_BLOCK),          /* control block size             */
9418     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9419     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9420     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9421     gx_studio_template_create,               /* create function                */
9422     GX_NULL,                                 /* drawing function override      */
9423     GX_NULL,                                 /* event function override        */
9424     {324, 90, 620, 384},                     /* widget size                    */
9425     GX_NULL,                                 /* no next widget                 */
9426     GX_NULL,                                 /* no child widgets               */
9427     offsetof(LIGHTS_PAGE_4_CONTROL_BLOCK, lights_page_4_add_light), /* control block */
9428     (void *) &lights_page_4_add_light_properties /* extended properties        */
9429 };
9430 
9431 GX_CONST GX_STUDIO_WIDGET lights_page_4_office_define =
9432 {
9433     "office",
9434     GX_TYPE_TEMPLATE,                        /* widget type                    */
9435     GX_ID_NONE,                              /* widget id                      */
9436     #if defined(GX_WIDGET_USER_DATA)
9437     0,                                       /* user data                      */
9438     #endif
9439     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9440     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9441     sizeof(LIGHTS_BASE_CONTROL_BLOCK),       /* control block size             */
9442     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9443     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9444     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9445     gx_studio_template_create,               /* create function                */
9446     GX_NULL,                                 /* drawing function override      */
9447     GX_NULL,                                 /* event function override        */
9448     {20, 90, 316, 384},                      /* widget size                    */
9449     &lights_page_4_add_light_define,         /* next widget definition         */
9450     GX_NULL,                                 /* no child widgets               */
9451     offsetof(LIGHTS_PAGE_4_CONTROL_BLOCK, lights_page_4_office), /* control block */
9452     (void *) &lights_page_4_office_properties /* extended properties           */
9453 };
9454 
9455 GX_CONST GX_STUDIO_WIDGET lights_page_4_define =
9456 {
9457     "lights_page_4",
9458     GX_TYPE_WINDOW,                          /* widget type                    */
9459     GX_ID_NONE,                              /* widget id                      */
9460     #if defined(GX_WIDGET_USER_DATA)
9461     0,                                       /* user data                      */
9462     #endif
9463     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9464     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9465     sizeof(LIGHTS_PAGE_4_CONTROL_BLOCK),     /* control block size             */
9466     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9467     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9468     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9469     gx_studio_window_create,                 /* create function                */
9470     GX_NULL,                                 /* drawing function override      */
9471     GX_NULL,                                 /* event function override        */
9472     {20, 90, 630, 384},                      /* widget size                    */
9473     GX_NULL,                                 /* next widget                    */
9474     &lights_page_4_office_define,            /* child widget                   */
9475     0,                                       /* control block                  */
9476     (void *) &lights_page_4_properties       /* extended properties            */
9477 };
9478 GX_WINDOW_PROPERTIES lights_page_1_properties =
9479 {
9480     0                                        /* wallpaper pixelmap id          */
9481 };
9482 GX_TEMPLATE_PROPERTIES lights_page_1_kitchen_properties =
9483 {
9484     &lights_base_define,                     /* base info                      */
9485     gx_studio_template_create,               /* base create function           */
9486     {20, 90, 316, 384}                       /* widget size                    */
9487 };
9488 GX_TEMPLATE_PROPERTIES lights_page_1_master_bedroom_properties =
9489 {
9490     &lights_base_define,                     /* base info                      */
9491     gx_studio_template_create,               /* base create function           */
9492     {324, 90, 620, 384}                      /* widget size                    */
9493 };
9494 
9495 GX_CONST GX_STUDIO_WIDGET lights_page_1_master_bedroom_define =
9496 {
9497     "master_bedroom",
9498     GX_TYPE_TEMPLATE,                        /* widget type                    */
9499     GX_ID_NONE,                              /* widget id                      */
9500     #if defined(GX_WIDGET_USER_DATA)
9501     0,                                       /* user data                      */
9502     #endif
9503     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9504     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9505     sizeof(LIGHTS_BASE_CONTROL_BLOCK),       /* control block size             */
9506     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9507     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9508     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9509     gx_studio_template_create,               /* create function                */
9510     GX_NULL,                                 /* drawing function override      */
9511     GX_NULL,                                 /* event function override        */
9512     {324, 90, 620, 384},                     /* widget size                    */
9513     GX_NULL,                                 /* no next widget                 */
9514     GX_NULL,                                 /* no child widgets               */
9515     offsetof(LIGHTS_PAGE_1_CONTROL_BLOCK, lights_page_1_master_bedroom), /* control block */
9516     (void *) &lights_page_1_master_bedroom_properties /* extended properties   */
9517 };
9518 
9519 GX_CONST GX_STUDIO_WIDGET lights_page_1_kitchen_define =
9520 {
9521     "kitchen",
9522     GX_TYPE_TEMPLATE,                        /* widget type                    */
9523     GX_ID_NONE,                              /* widget id                      */
9524     #if defined(GX_WIDGET_USER_DATA)
9525     0,                                       /* user data                      */
9526     #endif
9527     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9528     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9529     sizeof(LIGHTS_BASE_CONTROL_BLOCK),       /* control block size             */
9530     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9531     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9532     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9533     gx_studio_template_create,               /* create function                */
9534     GX_NULL,                                 /* drawing function override      */
9535     GX_NULL,                                 /* event function override        */
9536     {20, 90, 316, 384},                      /* widget size                    */
9537     &lights_page_1_master_bedroom_define,    /* next widget definition         */
9538     GX_NULL,                                 /* no child widgets               */
9539     offsetof(LIGHTS_PAGE_1_CONTROL_BLOCK, lights_page_1_kitchen), /* control block */
9540     (void *) &lights_page_1_kitchen_properties /* extended properties          */
9541 };
9542 
9543 GX_CONST GX_STUDIO_WIDGET lights_page_1_define =
9544 {
9545     "lights_page_1",
9546     GX_TYPE_WINDOW,                          /* widget type                    */
9547     GX_ID_NONE,                              /* widget id                      */
9548     #if defined(GX_WIDGET_USER_DATA)
9549     0,                                       /* user data                      */
9550     #endif
9551     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9552     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9553     sizeof(LIGHTS_PAGE_1_CONTROL_BLOCK),     /* control block size             */
9554     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9555     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9556     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9557     gx_studio_window_create,                 /* create function                */
9558     GX_NULL,                                 /* drawing function override      */
9559     GX_NULL,                                 /* event function override        */
9560     {20, 90, 630, 384},                      /* widget size                    */
9561     GX_NULL,                                 /* next widget                    */
9562     &lights_page_1_kitchen_define,           /* child widget                   */
9563     0,                                       /* control block                  */
9564     (void *) &lights_page_1_properties       /* extended properties            */
9565 };
9566 GX_WINDOW_PROPERTIES locks_page_3_properties =
9567 {
9568     0                                        /* wallpaper pixelmap id          */
9569 };
9570 GX_TEMPLATE_PROPERTIES locks_page_3_lower_deck_door_properties =
9571 {
9572     &locks_door_base_define,                 /* base info                      */
9573     gx_studio_template_create,               /* base create function           */
9574     {20, 90, 316, 384}                       /* widget size                    */
9575 };
9576 GX_TEMPLATE_PROPERTIES locks_page_3_add_lock_properties =
9577 {
9578     &add_base_define,                        /* base info                      */
9579     gx_studio_template_create,               /* base create function           */
9580     {324, 90, 620, 384}                      /* widget size                    */
9581 };
9582 
9583 GX_CONST GX_STUDIO_WIDGET locks_page_3_add_lock_define =
9584 {
9585     "add_lock",
9586     GX_TYPE_TEMPLATE,                        /* widget type                    */
9587     GX_ID_NONE,                              /* widget id                      */
9588     #if defined(GX_WIDGET_USER_DATA)
9589     0,                                       /* user data                      */
9590     #endif
9591     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9592     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9593     sizeof(ADD_BASE_CONTROL_BLOCK),          /* control block size             */
9594     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9595     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9596     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9597     gx_studio_template_create,               /* create function                */
9598     GX_NULL,                                 /* drawing function override      */
9599     GX_NULL,                                 /* event function override        */
9600     {324, 90, 620, 384},                     /* widget size                    */
9601     GX_NULL,                                 /* no next widget                 */
9602     GX_NULL,                                 /* no child widgets               */
9603     offsetof(LOCKS_PAGE_3_CONTROL_BLOCK, locks_page_3_add_lock), /* control block */
9604     (void *) &locks_page_3_add_lock_properties /* extended properties          */
9605 };
9606 
9607 GX_CONST GX_STUDIO_WIDGET locks_page_3_lower_deck_door_define =
9608 {
9609     "lower_deck_door",
9610     GX_TYPE_TEMPLATE,                        /* widget type                    */
9611     GX_ID_NONE,                              /* widget id                      */
9612     #if defined(GX_WIDGET_USER_DATA)
9613     0,                                       /* user data                      */
9614     #endif
9615     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9616     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9617     sizeof(LOCKS_DOOR_BASE_CONTROL_BLOCK),   /* control block size             */
9618     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9619     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9620     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9621     gx_studio_template_create,               /* create function                */
9622     GX_NULL,                                 /* drawing function override      */
9623     GX_NULL,                                 /* event function override        */
9624     {20, 90, 316, 384},                      /* widget size                    */
9625     &locks_page_3_add_lock_define,           /* next widget definition         */
9626     GX_NULL,                                 /* no child widgets               */
9627     offsetof(LOCKS_PAGE_3_CONTROL_BLOCK, locks_page_3_lower_deck_door), /* control block */
9628     (void *) &locks_page_3_lower_deck_door_properties /* extended properties   */
9629 };
9630 
9631 GX_CONST GX_STUDIO_WIDGET locks_page_3_define =
9632 {
9633     "locks_page_3",
9634     GX_TYPE_WINDOW,                          /* widget type                    */
9635     GX_ID_NONE,                              /* widget id                      */
9636     #if defined(GX_WIDGET_USER_DATA)
9637     0,                                       /* user data                      */
9638     #endif
9639     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9640     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9641     sizeof(LOCKS_PAGE_3_CONTROL_BLOCK),      /* control block size             */
9642     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9643     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9644     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9645     gx_studio_window_create,                 /* create function                */
9646     GX_NULL,                                 /* drawing function override      */
9647     GX_NULL,                                 /* event function override        */
9648     {20, 90, 630, 384},                      /* widget size                    */
9649     GX_NULL,                                 /* next widget                    */
9650     &locks_page_3_lower_deck_door_define,    /* child widget                   */
9651     0,                                       /* control block                  */
9652     (void *) &locks_page_3_properties        /* extended properties            */
9653 };
9654 GX_WINDOW_PROPERTIES locks_page_2_properties =
9655 {
9656     0                                        /* wallpaper pixelmap id          */
9657 };
9658 GX_TEMPLATE_PROPERTIES locks_page_2_upper_deck_door_properties =
9659 {
9660     &locks_door_base_define,                 /* base info                      */
9661     gx_studio_template_create,               /* base create function           */
9662     {324, 90, 620, 384}                      /* widget size                    */
9663 };
9664 GX_TEMPLATE_PROPERTIES locks_page_2_patio_door_properties =
9665 {
9666     &locks_door_base_define,                 /* base info                      */
9667     gx_studio_template_create,               /* base create function           */
9668     {20, 90, 316, 384}                       /* widget size                    */
9669 };
9670 
9671 GX_CONST GX_STUDIO_WIDGET locks_page_2_patio_door_define =
9672 {
9673     "patio_door",
9674     GX_TYPE_TEMPLATE,                        /* widget type                    */
9675     GX_ID_NONE,                              /* widget id                      */
9676     #if defined(GX_WIDGET_USER_DATA)
9677     0,                                       /* user data                      */
9678     #endif
9679     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9680     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9681     sizeof(LOCKS_DOOR_BASE_CONTROL_BLOCK),   /* control block size             */
9682     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9683     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9684     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9685     gx_studio_template_create,               /* create function                */
9686     GX_NULL,                                 /* drawing function override      */
9687     GX_NULL,                                 /* event function override        */
9688     {20, 90, 316, 384},                      /* widget size                    */
9689     GX_NULL,                                 /* no next widget                 */
9690     GX_NULL,                                 /* no child widgets               */
9691     offsetof(LOCKS_PAGE_2_CONTROL_BLOCK, locks_page_2_patio_door), /* control block */
9692     (void *) &locks_page_2_patio_door_properties /* extended properties        */
9693 };
9694 
9695 GX_CONST GX_STUDIO_WIDGET locks_page_2_upper_deck_door_define =
9696 {
9697     "upper_deck_door",
9698     GX_TYPE_TEMPLATE,                        /* widget type                    */
9699     GX_ID_NONE,                              /* widget id                      */
9700     #if defined(GX_WIDGET_USER_DATA)
9701     0,                                       /* user data                      */
9702     #endif
9703     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9704     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9705     sizeof(LOCKS_DOOR_BASE_CONTROL_BLOCK),   /* control block size             */
9706     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9707     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9708     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9709     gx_studio_template_create,               /* create function                */
9710     GX_NULL,                                 /* drawing function override      */
9711     GX_NULL,                                 /* event function override        */
9712     {324, 90, 620, 384},                     /* widget size                    */
9713     &locks_page_2_patio_door_define,         /* next widget definition         */
9714     GX_NULL,                                 /* no child widgets               */
9715     offsetof(LOCKS_PAGE_2_CONTROL_BLOCK, locks_page_2_upper_deck_door), /* control block */
9716     (void *) &locks_page_2_upper_deck_door_properties /* extended properties   */
9717 };
9718 
9719 GX_CONST GX_STUDIO_WIDGET locks_page_2_define =
9720 {
9721     "locks_page_2",
9722     GX_TYPE_WINDOW,                          /* widget type                    */
9723     GX_ID_NONE,                              /* widget id                      */
9724     #if defined(GX_WIDGET_USER_DATA)
9725     0,                                       /* user data                      */
9726     #endif
9727     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
9728     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
9729     sizeof(LOCKS_PAGE_2_CONTROL_BLOCK),      /* control block size             */
9730     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
9731     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
9732     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9733     gx_studio_window_create,                 /* create function                */
9734     GX_NULL,                                 /* drawing function override      */
9735     GX_NULL,                                 /* event function override        */
9736     {20, 90, 630, 384},                      /* widget size                    */
9737     GX_NULL,                                 /* next widget                    */
9738     &locks_page_2_upper_deck_door_define,    /* child widget                   */
9739     0,                                       /* control block                  */
9740     (void *) &locks_page_2_properties        /* extended properties            */
9741 };
9742 GX_WINDOW_PROPERTIES locks_page_1_properties =
9743 {
9744     0                                        /* wallpaper pixelmap id          */
9745 };
9746 GX_TEMPLATE_PROPERTIES locks_page_1_security_alarm_properties =
9747 {
9748     &controller_base_define,                 /* base info                      */
9749     gx_studio_window_create,                 /* base create function           */
9750     {20, 90, 316, 384}                       /* widget size                    */
9751 };
9752 GX_ICON_PROPERTIES locks_page_1_icon_3_properties =
9753 {
9754     GX_PIXELMAP_ID_LED_GREEN,                /* normal pixelmap id             */
9755     0                                        /* selected pixelmap id           */
9756 };
9757 GX_PROMPT_PROPERTIES locks_page_1_prompt_15_1_properties =
9758 {
9759     GX_STRING_ID_STRING_37,                  /* string id                      */
9760     GX_FONT_ID_SMALL,                        /* font id                        */
9761     GX_COLOR_ID_TEXT,                        /* normal text color              */
9762     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
9763     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
9764 };
9765 GX_PIXELMAP_BUTTON_PROPERTIES locks_page_1_button_enable_diable_properties =
9766 {
9767     GX_PIXELMAP_ID_LOCKS_ROUND_BTN_BIG,      /* normal pixelmap id             */
9768     GX_PIXELMAP_ID_LOCKS_ROUND_BTN_BIG_HOVER, /* selected pixelmap id          */
9769     0                                        /* disabled pixelmap id           */
9770 };
9771 GX_ICON_PROPERTIES locks_page_1_icon_5_properties =
9772 {
9773     GX_PIXELMAP_ID_LOCKS_ICON_BTN_BECON,     /* normal pixelmap id             */
9774     GX_PIXELMAP_ID_LOCKS_ICON_BTN_BECON_HOVER  /* selected pixelmap id         */
9775 };
9776 GX_PROMPT_PROPERTIES locks_page_1_enable_disable_text_properties =
9777 {
9778     GX_STRING_ID_DISABLED,                   /* string id                      */
9779     GX_FONT_ID_PROMPT,                       /* font id                        */
9780     GX_COLOR_ID_GREEN,                       /* normal text color              */
9781     GX_COLOR_ID_GREEN,                       /* selected text color            */
9782     GX_COLOR_ID_GREEN                        /* disabled text color            */
9783 };
9784 GX_PIXELMAP_BUTTON_PROPERTIES locks_page_1_button_lock_properties =
9785 {
9786     GX_PIXELMAP_ID_LOCKS_ROUND_BTN_SMALL_ACTIVE, /* normal pixelmap id         */
9787     GX_PIXELMAP_ID_LOCKS_ROUND_BTN_SMALL,    /* selected pixelmap id           */
9788     0                                        /* disabled pixelmap id           */
9789 };
9790 GX_ICON_PROPERTIES locks_page_1_lock_unlock_icon_properties =
9791 {
9792     GX_PIXELMAP_ID_LOCKS_ICON_BTN_SMALL_CLOSED_LOCK, /* normal pixelmap id     */
9793     GX_PIXELMAP_ID_LOCKS_ICON_BTN_SMALL_CLOSED_LOCK_HOVER  /* selected pixelmap id */
9794 };
9795 GX_PROMPT_PROPERTIES locks_page_1_lock_unlock_text_properties =
9796 {
9797     GX_STRING_ID_UNLOCK_ALL,                 /* string id                      */
9798     GX_FONT_ID_SMALL,                        /* font id                        */
9799     GX_COLOR_ID_BLUE,                        /* normal text color              */
9800     GX_COLOR_ID_BLUE,                        /* selected text color            */
9801     GX_COLOR_ID_BLUE                         /* disabled text color            */
9802 };
9803 GX_ICON_PROPERTIES locks_page_1_icon_1_properties =
9804 {
9805     GX_PIXELMAP_ID_LED_YELLOW,               /* normal pixelmap id             */
9806     0                                        /* selected pixelmap id           */
9807 };
9808 GX_ICON_PROPERTIES locks_page_1_icon_2_properties =
9809 {
9810     GX_PIXELMAP_ID_LED_BLACK,                /* normal pixelmap id             */
9811     0                                        /* selected pixelmap id           */
9812 };
9813 GX_PROMPT_PROPERTIES locks_page_1_prompt_15_5_properties =
9814 {
9815     GX_STRING_ID_STRING_43,                  /* string id                      */
9816     GX_FONT_ID_SMALL,                        /* font id                        */
9817     GX_COLOR_ID_TEXT,                        /* normal text color              */
9818     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
9819     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
9820 };
9821 GX_ML_TEXT_BUTTON_PROPERTIES locks_page_1_multi_line_button_properties =
9822 {
9823     GX_STRING_ID_STRING_45,                  /* string id                      */
9824     GX_FONT_ID_SMALL,                        /* font id                        */
9825     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
9826     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
9827     GX_COLOR_ID_DISABLED_TEXT                /* disabled text color            */
9828 };
9829 GX_TEMPLATE_PROPERTIES locks_page_1_front_door_properties =
9830 {
9831     &locks_door_base_define,                 /* base info                      */
9832     gx_studio_template_create,               /* base create function           */
9833     {324, 90, 620, 384}                      /* widget size                    */
9834 };
9835 
9836 GX_CONST GX_STUDIO_WIDGET locks_page_1_enable_disable_text_define =
9837 {
9838     "enable_disable_text",
9839     GX_TYPE_PROMPT,                          /* widget type                    */
9840     GX_ID_NONE,                              /* widget id                      */
9841     #if defined(GX_WIDGET_USER_DATA)
9842     0,                                       /* user data                      */
9843     #endif
9844     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_COPY|GX_STYLE_TEXT_CENTER,   /* style flags */
9845     0,                                       /* status flags                   */
9846     sizeof(GX_PROMPT),                       /* control block size             */
9847     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
9848     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
9849     GX_COLOR_ID_GREEN,                       /* disabled color id              */
9850     gx_studio_prompt_create,                 /* create function                */
9851     GX_NULL,                                 /* drawing function override      */
9852     GX_NULL,                                 /* event function override        */
9853     {98, 263, 173, 280},                     /* widget size                    */
9854     GX_NULL,                                 /* no next widget                 */
9855     GX_NULL,                                 /* no child widgets               */
9856     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_enable_disable_text), /* control block */
9857     (void *) &locks_page_1_enable_disable_text_properties /* extended properties */
9858 };
9859 
9860 GX_CONST GX_STUDIO_WIDGET locks_page_1_icon_5_define =
9861 {
9862     "icon_5",
9863     GX_TYPE_ICON,                            /* widget type                    */
9864     GX_ID_NONE,                              /* widget id                      */
9865     #if defined(GX_WIDGET_USER_DATA)
9866     0,                                       /* user data                      */
9867     #endif
9868     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
9869     0,                                       /* status flags                   */
9870     sizeof(GX_ICON),                         /* control block size             */
9871     GX_COLOR_ID_GREEN,                       /* normal color id                */
9872     GX_COLOR_ID_GREEN,                       /* selected color id              */
9873     GX_COLOR_ID_GREEN,                       /* disabled color id              */
9874     gx_studio_icon_create,                   /* create function                */
9875     GX_NULL,                                 /* drawing function override      */
9876     GX_NULL,                                 /* event function override        */
9877     {101, 187, 169, 253},                    /* widget size                    */
9878     &locks_page_1_enable_disable_text_define, /* next widget definition        */
9879     GX_NULL,                                 /* no child widgets               */
9880     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_icon_5), /* control block */
9881     (void *) &locks_page_1_icon_5_properties /* extended properties            */
9882 };
9883 
9884 GX_CONST GX_STUDIO_WIDGET locks_page_1_lock_unlock_text_define =
9885 {
9886     "lock_unlock_text",
9887     GX_TYPE_PROMPT,                          /* widget type                    */
9888     GX_ID_NONE,                              /* widget id                      */
9889     #if defined(GX_WIDGET_USER_DATA)
9890     0,                                       /* user data                      */
9891     #endif
9892     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_COPY|GX_STYLE_TEXT_CENTER,   /* style flags */
9893     0,                                       /* status flags                   */
9894     sizeof(GX_PROMPT),                       /* control block size             */
9895     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
9896     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
9897     GX_COLOR_ID_GREEN,                       /* disabled color id              */
9898     gx_studio_prompt_create,                 /* create function                */
9899     GX_NULL,                                 /* drawing function override      */
9900     GX_NULL,                                 /* event function override        */
9901     {203, 318, 278, 330},                    /* widget size                    */
9902     GX_NULL,                                 /* no next widget                 */
9903     GX_NULL,                                 /* no child widgets               */
9904     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_lock_unlock_text), /* control block */
9905     (void *) &locks_page_1_lock_unlock_text_properties /* extended properties  */
9906 };
9907 
9908 GX_CONST GX_STUDIO_WIDGET locks_page_1_lock_unlock_icon_define =
9909 {
9910     "lock_unlock_icon",
9911     GX_TYPE_ICON,                            /* widget type                    */
9912     GX_ID_NONE,                              /* widget id                      */
9913     #if defined(GX_WIDGET_USER_DATA)
9914     0,                                       /* user data                      */
9915     #endif
9916     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
9917     0,                                       /* status flags                   */
9918     sizeof(GX_ICON),                         /* control block size             */
9919     GX_COLOR_ID_BLUE,                        /* normal color id                */
9920     GX_COLOR_ID_BLUE,                        /* selected color id              */
9921     GX_COLOR_ID_BLUE,                        /* disabled color id              */
9922     gx_studio_icon_create,                   /* create function                */
9923     GX_NULL,                                 /* drawing function override      */
9924     GX_NULL,                                 /* event function override        */
9925     {221, 276, 259, 314},                    /* widget size                    */
9926     &locks_page_1_lock_unlock_text_define,   /* next widget definition         */
9927     GX_NULL,                                 /* no child widgets               */
9928     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_lock_unlock_icon), /* control block */
9929     (void *) &locks_page_1_lock_unlock_icon_properties /* extended properties  */
9930 };
9931 
9932 GX_CONST GX_STUDIO_WIDGET locks_page_1_multi_line_button_define =
9933 {
9934     "multi_line_button",
9935     GX_TYPE_MULTI_LINE_TEXT_BUTTON,          /* widget type                    */
9936     ID_STATUS,                               /* widget id                      */
9937     #if defined(GX_WIDGET_USER_DATA)
9938     0,                                       /* user data                      */
9939     #endif
9940     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_RIGHT,   /* style flags */
9941     0,                                       /* status flags                   */
9942     sizeof(GX_MULTI_LINE_TEXT_BUTTON),       /* control block size             */
9943     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
9944     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
9945     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9946     gx_studio_multi_line_text_button_create,     /* create function            */
9947     GX_NULL,                                 /* drawing function override      */
9948     GX_NULL,                                 /* event function override        */
9949     {235, 155, 298, 180},                    /* widget size                    */
9950     GX_NULL,                                 /* no next widget                 */
9951     GX_NULL,                                 /* no child widgets               */
9952     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_multi_line_button), /* control block */
9953     (void *) &locks_page_1_multi_line_button_properties /* extended properties */
9954 };
9955 
9956 GX_CONST GX_STUDIO_WIDGET locks_page_1_prompt_15_5_define =
9957 {
9958     "prompt_15_5",
9959     GX_TYPE_PROMPT,                          /* widget type                    */
9960     ID_STATUS,                               /* widget id                      */
9961     #if defined(GX_WIDGET_USER_DATA)
9962     0,                                       /* user data                      */
9963     #endif
9964     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
9965     0,                                       /* status flags                   */
9966     sizeof(GX_PROMPT),                       /* control block size             */
9967     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
9968     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
9969     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9970     gx_studio_prompt_create,                 /* create function                */
9971     GX_NULL,                                 /* drawing function override      */
9972     GX_NULL,                                 /* event function override        */
9973     {61, 352, 155, 364},                     /* widget size                    */
9974     &locks_page_1_multi_line_button_define,  /* next widget definition         */
9975     GX_NULL,                                 /* no child widgets               */
9976     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_prompt_15_5), /* control block */
9977     (void *) &locks_page_1_prompt_15_5_properties /* extended properties       */
9978 };
9979 
9980 GX_CONST GX_STUDIO_WIDGET locks_page_1_icon_2_define =
9981 {
9982     "icon_2",
9983     GX_TYPE_ICON,                            /* widget type                    */
9984     ID_STATUS,                               /* widget id                      */
9985     #if defined(GX_WIDGET_USER_DATA)
9986     0,                                       /* user data                      */
9987     #endif
9988     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
9989     0,                                       /* status flags                   */
9990     sizeof(GX_ICON),                         /* control block size             */
9991     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
9992     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
9993     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
9994     gx_studio_icon_create,                   /* create function                */
9995     GX_NULL,                                 /* drawing function override      */
9996     GX_NULL,                                 /* event function override        */
9997     {35, 346, 54, 365},                      /* widget size                    */
9998     &locks_page_1_prompt_15_5_define,        /* next widget definition         */
9999     GX_NULL,                                 /* no child widgets               */
10000     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_icon_2), /* control block */
10001     (void *) &locks_page_1_icon_2_properties /* extended properties            */
10002 };
10003 
10004 GX_CONST GX_STUDIO_WIDGET locks_page_1_icon_1_define =
10005 {
10006     "icon_1",
10007     GX_TYPE_ICON,                            /* widget type                    */
10008     ID_STATUS,                               /* widget id                      */
10009     #if defined(GX_WIDGET_USER_DATA)
10010     0,                                       /* user data                      */
10011     #endif
10012     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
10013     0,                                       /* status flags                   */
10014     sizeof(GX_ICON),                         /* control block size             */
10015     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
10016     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
10017     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
10018     gx_studio_icon_create,                   /* create function                */
10019     GX_NULL,                                 /* drawing function override      */
10020     GX_NULL,                                 /* event function override        */
10021     {274, 130, 293, 149},                    /* widget size                    */
10022     &locks_page_1_icon_2_define,             /* next widget definition         */
10023     GX_NULL,                                 /* no child widgets               */
10024     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_icon_1), /* control block */
10025     (void *) &locks_page_1_icon_1_properties /* extended properties            */
10026 };
10027 
10028 GX_CONST GX_STUDIO_WIDGET locks_page_1_button_lock_define =
10029 {
10030     "button_lock",
10031     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
10032     ID_BUTTON_LOCK_UNLOCK_ALL,               /* widget id                      */
10033     #if defined(GX_WIDGET_USER_DATA)
10034     0,                                       /* user data                      */
10035     #endif
10036     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
10037     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
10038     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
10039     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
10040     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
10041     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
10042     gx_studio_pixelmap_button_create,        /* create function                */
10043     GX_NULL,                                 /* drawing function override      */
10044     GX_NULL,                                 /* event function override        */
10045     {185, 254, 291, 360},                    /* widget size                    */
10046     &locks_page_1_icon_1_define,             /* next widget definition         */
10047     &locks_page_1_lock_unlock_icon_define,   /* child widget definition        */
10048     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_button_lock), /* control block */
10049     (void *) &locks_page_1_button_lock_properties /* extended properties       */
10050 };
10051 
10052 GX_CONST GX_STUDIO_WIDGET locks_page_1_button_enable_diable_define =
10053 {
10054     "button_enable_diable",
10055     GX_TYPE_PIXELMAP_BUTTON,                 /* widget type                    */
10056     ID_BUTTON_ENABLE_DISABLE,                /* widget id                      */
10057     #if defined(GX_WIDGET_USER_DATA)
10058     0,                                       /* user data                      */
10059     #endif
10060     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED,   /* style flags                    */
10061     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
10062     sizeof(GX_PIXELMAP_BUTTON),              /* control block size             */
10063     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
10064     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
10065     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
10066     gx_studio_pixelmap_button_create,        /* create function                */
10067     GX_NULL,                                 /* drawing function override      */
10068     GX_NULL,                                 /* event function override        */
10069     {42, 149, 227, 334},                     /* widget size                    */
10070     &locks_page_1_button_lock_define,        /* next widget definition         */
10071     &locks_page_1_icon_5_define,             /* child widget definition        */
10072     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_button_enable_diable), /* control block */
10073     (void *) &locks_page_1_button_enable_diable_properties /* extended properties */
10074 };
10075 
10076 GX_CONST GX_STUDIO_WIDGET locks_page_1_prompt_15_1_define =
10077 {
10078     "prompt_15_1",
10079     GX_TYPE_PROMPT,                          /* widget type                    */
10080     ID_STATUS,                               /* widget id                      */
10081     #if defined(GX_WIDGET_USER_DATA)
10082     0,                                       /* user data                      */
10083     #endif
10084     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER,   /* style flags */
10085     0,                                       /* status flags                   */
10086     sizeof(GX_PROMPT),                       /* control block size             */
10087     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
10088     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
10089     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
10090     gx_studio_prompt_create,                 /* create function                */
10091     GX_NULL,                                 /* drawing function override      */
10092     GX_NULL,                                 /* event function override        */
10093     {59, 134, 118, 146},                     /* widget size                    */
10094     &locks_page_1_button_enable_diable_define, /* next widget definition       */
10095     GX_NULL,                                 /* no child widgets               */
10096     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_prompt_15_1), /* control block */
10097     (void *) &locks_page_1_prompt_15_1_properties /* extended properties       */
10098 };
10099 
10100 GX_CONST GX_STUDIO_WIDGET locks_page_1_icon_3_define =
10101 {
10102     "icon_3",
10103     GX_TYPE_ICON,                            /* widget type                    */
10104     ID_STATUS,                               /* widget id                      */
10105     #if defined(GX_WIDGET_USER_DATA)
10106     0,                                       /* user data                      */
10107     #endif
10108     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_HALIGN_LEFT|GX_STYLE_VALIGN_TOP,   /* style flags */
10109     0,                                       /* status flags                   */
10110     sizeof(GX_ICON),                         /* control block size             */
10111     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
10112     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
10113     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
10114     gx_studio_icon_create,                   /* create function                */
10115     GX_NULL,                                 /* drawing function override      */
10116     GX_NULL,                                 /* event function override        */
10117     {35, 130, 54, 149},                      /* widget size                    */
10118     &locks_page_1_prompt_15_1_define,        /* next widget definition         */
10119     GX_NULL,                                 /* no child widgets               */
10120     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_icon_3), /* control block */
10121     (void *) &locks_page_1_icon_3_properties /* extended properties            */
10122 };
10123 
10124 GX_CONST GX_STUDIO_WIDGET locks_page_1_front_door_define =
10125 {
10126     "front_door",
10127     GX_TYPE_TEMPLATE,                        /* widget type                    */
10128     GX_ID_NONE,                              /* widget id                      */
10129     #if defined(GX_WIDGET_USER_DATA)
10130     0,                                       /* user data                      */
10131     #endif
10132     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
10133     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
10134     sizeof(LOCKS_DOOR_BASE_CONTROL_BLOCK),   /* control block size             */
10135     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
10136     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
10137     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
10138     gx_studio_template_create,               /* create function                */
10139     GX_NULL,                                 /* drawing function override      */
10140     GX_NULL,                                 /* event function override        */
10141     {324, 90, 620, 384},                     /* widget size                    */
10142     GX_NULL,                                 /* no next widget                 */
10143     GX_NULL,                                 /* no child widgets               */
10144     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_front_door), /* control block */
10145     (void *) &locks_page_1_front_door_properties /* extended properties        */
10146 };
10147 
10148 GX_CONST GX_STUDIO_WIDGET locks_page_1_security_alarm_define =
10149 {
10150     "security_alarm",
10151     GX_TYPE_TEMPLATE,                        /* widget type                    */
10152     GX_ID_NONE,                              /* widget id                      */
10153     #if defined(GX_WIDGET_USER_DATA)
10154     0,                                       /* user data                      */
10155     #endif
10156     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
10157     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
10158     sizeof(CONTROLLER_BASE_CONTROL_BLOCK),   /* control block size             */
10159     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
10160     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
10161     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
10162     gx_studio_template_create,               /* create function                */
10163     GX_NULL,                                 /* drawing function override      */
10164     GX_NULL,                                 /* event function override        */
10165     {20, 90, 316, 384},                      /* widget size                    */
10166     &locks_page_1_front_door_define,         /* next widget definition         */
10167     &locks_page_1_icon_3_define,             /* child widget definition        */
10168     offsetof(LOCKS_PAGE_1_CONTROL_BLOCK, locks_page_1_security_alarm), /* control block */
10169     (void *) &locks_page_1_security_alarm_properties /* extended properties    */
10170 };
10171 
10172 GX_CONST GX_STUDIO_WIDGET locks_page_1_define =
10173 {
10174     "locks_page_1",
10175     GX_TYPE_WINDOW,                          /* widget type                    */
10176     GX_ID_NONE,                              /* widget id                      */
10177     #if defined(GX_WIDGET_USER_DATA)
10178     0,                                       /* user data                      */
10179     #endif
10180     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED,   /* style flags */
10181     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
10182     sizeof(LOCKS_PAGE_1_CONTROL_BLOCK),      /* control block size             */
10183     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
10184     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
10185     GX_COLOR_ID_DISABLED_FILL,               /* disabled color id              */
10186     gx_studio_window_create,                 /* create function                */
10187     GX_NULL,                                 /* drawing function override      */
10188     (UINT (*)(GX_WIDGET *, GX_EVENT *)) locks_page_1_event_process, /* event function override */
10189     {20, 90, 630, 384},                      /* widget size                    */
10190     GX_NULL,                                 /* next widget                    */
10191     &locks_page_1_security_alarm_define,     /* child widget                   */
10192     0,                                       /* control block                  */
10193     (void *) &locks_page_1_properties        /* extended properties            */
10194 };
10195 GX_CONST GX_STUDIO_WIDGET_ENTRY demo_guix_home_automation_widget_table[] =
10196 {
10197     { &thermostat_page_4_define, (GX_WIDGET *) &thermostat_page_4 },
10198     { &thermostat_page_3_define, (GX_WIDGET *) &thermostat_page_3 },
10199     { &thermostat_page_2_define, (GX_WIDGET *) &thermostat_page_2 },
10200     { &thermostat_page_1_define, (GX_WIDGET *) &thermostat_page_1 },
10201     { &thermostat_screen_define, (GX_WIDGET *) &thermostat_screen },
10202     { &lights_page_3_define, (GX_WIDGET *) &lights_page_3 },
10203     { &lights_page_2_define, (GX_WIDGET *) &lights_page_2 },
10204     { &lights_page_4_define, (GX_WIDGET *) &lights_page_4 },
10205     { &lights_page_1_define, (GX_WIDGET *) &lights_page_1 },
10206     { &lights_screen_define, (GX_WIDGET *) &lights_screen },
10207     { &locks_page_3_define, (GX_WIDGET *) &locks_page_3 },
10208     { &locks_page_2_define, (GX_WIDGET *) &locks_page_2 },
10209     { &locks_page_1_define, (GX_WIDGET *) &locks_page_1 },
10210     { &locks_screen_define, (GX_WIDGET *) &locks_screen },
10211     { &win_San_Diego_define, (GX_WIDGET *) &win_San_Diego },
10212     { &win_New_York_define, (GX_WIDGET *) &win_New_York },
10213     { &win_Las_Vegas_define, (GX_WIDGET *) &win_Las_Vegas },
10214     { &weather_screen_define, (GX_WIDGET *) &weather_screen },
10215     { &passcode_screen_define, (GX_WIDGET *) &passcode_screen },
10216     { &main_screen_define, (GX_WIDGET *) &main_screen },
10217     {GX_NULL, GX_NULL}
10218 };
10219 
gx_studio_nested_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)10220 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
10221 {
10222     UINT status = GX_SUCCESS;
10223     GX_WIDGET *widget = GX_NULL;
10224     GX_VALUE   list_count = 0;
10225     GX_VALUE   list_total_count = 0;
10226 
10227     if(parent && (parent->gx_widget_type == GX_TYPE_MENU))
10228     {
10229         list_total_count = ((GX_MENU *)parent)->gx_menu_list_total_count;
10230     }
10231 
10232     while(definition && status == GX_SUCCESS)
10233     {
10234         if (definition->create_function)
10235         {
10236             if (definition->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
10237             {
10238                 status = gx_widget_allocate(&widget, definition->control_block_size);
10239                 if (status != GX_SUCCESS)
10240                 {
10241                     return GX_NULL;
10242                 }
10243             }
10244             else
10245             {
10246                 if (control == GX_NULL)
10247                 {
10248                     return GX_NULL;
10249                 }
10250                 widget = (GX_WIDGET *) (control + definition->control_block_offset);
10251             }
10252 
10253             status = definition->create_function(definition, widget, parent);
10254 
10255             if(list_count < list_total_count)
10256             {
10257                 gx_menu_insert((GX_MENU *)parent, widget);
10258                 ((GX_MENU *)parent)->gx_menu_list_total_count--;
10259                 list_count++;
10260             }
10261 
10262             if (status == GX_SUCCESS)
10263             {
10264                 if (definition->widget_type != GX_TYPE_TEMPLATE)
10265                 {
10266 #if defined(GUIX_5_4_0_COMPATIBILITY)
10267                     gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id);
10268 #else
10269                     gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id, definition->disabled_fill_color_id);
10270 #endif
10271                 }
10272 
10273                 if (!(definition->status & GX_STATUS_ACCEPTS_FOCUS))
10274                 {
10275                     gx_widget_status_remove(widget, GX_STATUS_ACCEPTS_FOCUS);
10276                 }
10277 
10278                 if (definition->draw_function)
10279                 {
10280                     gx_widget_draw_set(widget, definition->draw_function);
10281                 }
10282                 if (definition->event_function)
10283                 {
10284                     gx_widget_event_process_set(widget, definition->event_function);
10285                 }
10286 
10287                 #if defined(GX_WIDGET_USER_DATA)
10288                 widget->gx_widget_user_data = definition->user_data;
10289                 #endif
10290 
10291                 if (definition->child_widget)
10292                 {
10293                     gx_studio_nested_widget_create(control, definition->child_widget, widget);
10294                 }
10295             }
10296             definition = definition->next_widget;
10297         }
10298     }
10299     return widget;
10300 }
10301 
gx_studio_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)10302 GX_WIDGET *gx_studio_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
10303 {
10304     GX_WIDGET *widget;
10305     widget = gx_studio_nested_widget_create(control, definition, GX_NULL);
10306 
10307     if (parent && widget)
10308     {
10309         gx_widget_attach(parent, widget);
10310     }
10311     return widget;
10312 }
10313 
gx_studio_named_widget_create(char * name,GX_WIDGET * parent,GX_WIDGET ** new_widget)10314 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget)
10315 {
10316     UINT status = GX_FAILURE;
10317     GX_CONST GX_STUDIO_WIDGET_ENTRY *entry = demo_guix_home_automation_widget_table;
10318     GX_WIDGET *widget = GX_NULL;
10319 
10320     while(entry->widget_information)
10321     {
10322         if (!strcmp(name, entry->widget_information->widget_name))
10323         {
10324             widget = gx_studio_widget_create((GX_BYTE *) entry->widget, entry->widget_information, parent);
10325             if (widget)
10326             {
10327                 status = GX_SUCCESS;
10328             }
10329             break;
10330         }
10331         entry++;
10332     }
10333 
10334     if (new_widget)
10335     {
10336         *new_widget = widget;
10337     }
10338     return status;
10339 }
10340 
10341 
gx_studio_display_configure(USHORT display,UINT (* driver)(GX_DISPLAY *),GX_UBYTE language,USHORT theme,GX_WINDOW_ROOT ** return_root)10342 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *),
10343     GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root)
10344 {
10345     GX_CONST GX_THEME *theme_ptr;
10346     GX_RECTANGLE size;
10347 
10348     GX_STUDIO_DISPLAY_INFO *display_info = &demo_guix_home_automation_display_table[display];
10349 
10350 
10351 /* create the requested display                                                */
10352 
10353     gx_display_create(display_info->display,
10354                       display_info->name,
10355                       driver,
10356                       (GX_VALUE) display_info->x_resolution,
10357                       (GX_VALUE) display_info->y_resolution);
10358 
10359 
10360 /* install the request theme                                                   */
10361 
10362     if(display_info->theme_table)
10363     {
10364         theme_ptr = display_info->theme_table[theme];
10365         if(theme_ptr)
10366         {
10367             gx_display_color_table_set(display_info->display, theme_ptr->theme_color_table, theme_ptr->theme_color_table_size);
10368 
10369 /* install the color palette if required                                       */
10370             if (display_info->display->gx_display_driver_palette_set &&
10371                 theme_ptr->theme_palette != NULL)
10372             {
10373                 display_info->display->gx_display_driver_palette_set(display_info->display, theme_ptr->theme_palette, theme_ptr->theme_palette_size);
10374             }
10375 
10376             gx_display_font_table_set(display_info->display, theme_ptr->theme_font_table, theme_ptr->theme_font_table_size);
10377             gx_display_pixelmap_table_set(display_info->display, theme_ptr->theme_pixelmap_table, theme_ptr->theme_pixelmap_table_size);
10378             gx_system_scroll_appearance_set(theme_ptr->theme_vertical_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_vertical_scrollbar_appearance);
10379             gx_system_scroll_appearance_set(theme_ptr->theme_horizontal_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_horizontal_scrollbar_appearance);
10380         }
10381     }
10382 
10383 /* Install the language table.                                                 */
10384 
10385     if(display_info->language_table)
10386     {
10387         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);
10388         gx_display_active_language_set(display_info->display, language);
10389     }
10390 
10391 /* Set screen rotation angle.                                                  */
10392 
10393     display_info->display->gx_display_rotation_angle = display_info->rotation_angle;
10394 
10395 /* create the canvas for this display                                          */
10396 
10397     gx_canvas_create(display_info->canvas,
10398                      display_info->canvas_name,
10399                      display_info->display,
10400                      GX_CANVAS_MANAGED | GX_CANVAS_VISIBLE,
10401                      display_info->x_resolution,
10402                      display_info->y_resolution,
10403                      display_info->canvas_memory,
10404                      display_info->canvas_memory_size);
10405 
10406 /* Create the root window for this canvas                                      */
10407 
10408     gx_utility_rectangle_define(&size,
10409                                 0, 0,
10410                                 (GX_VALUE) (display_info->x_resolution - 1),
10411                                 (GX_VALUE) (display_info->y_resolution - 1));
10412 
10413     gx_window_root_create(display_info->root_window,
10414                           display_info->name,
10415                           display_info->canvas, GX_STYLE_NONE, 0, &size);
10416     if (return_root)
10417     {
10418         *return_root = display_info->root_window;
10419     }
10420     return GX_SUCCESS;
10421 }
10422 #undef GUIX_STUDIO_GENERATED_FILE
10423