1 /*******************************************************************************/
2 /*  This file is auto-generated by Azure RTOS GUIX Studio. Do not edit this    */
3 /*  file by hand. Modifications to this file should only be made by running    */
4 /*  the Azure RTOS GUIX Studio application and re-generating the application   */
5 /*  specification file(s). For more information please refer to the Azure RTOS */
6 /*  GUIX Studio User Guide, or visit our web site at azure.com/rtos            */
7 /*                                                                             */
8 /*  GUIX Studio Revision 6.2.0.1                                               */
9 /*  Date (dd.mm.yyyy): 31.10.2022   Time (hh:mm): 14:09                        */
10 /*******************************************************************************/
11 
12 
13 #define GUIX_STUDIO_GENERATED_FILE
14 #include <stddef.h>
15 #include "dynamic_menu_resources.h"
16 #include "dynamic_menu_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 GENRE_SCREEN_CONTROL_BLOCK genre_screen;
20 ARTISTS_SCREEN_CONTROL_BLOCK artists_screen;
21 TOP_MENU_CONTROL_BLOCK top_menu;
22 GX_CONST GX_STUDIO_WIDGET second_level_derived_screen_define;
23 GX_CONST GX_STUDIO_WIDGET playlist_screen_define;
24 GX_CONST GX_STUDIO_WIDGET albums_screen_define;
25 GX_CONST GX_STUDIO_WIDGET songs_screen_define;
26 GX_DISPLAY Main_Display_control_block;
27 GX_WINDOW_ROOT Main_Display_root_window;
28 GX_CANVAS  Main_Display_canvas_control_block;
29 ULONG      Main_Display_canvas_memory[76800];
30 
31 extern GX_CONST GX_THEME *Main_Display_theme_table[];
32 extern GX_CONST GX_STRING *Main_Display_language_table[];
33 
34 GX_STUDIO_DISPLAY_INFO dynamic_menu_display_table[1] =
35 {
36     {
37     "Main_Display",
38     "Main_Display_canvas",
39     Main_Display_theme_table,
40     Main_Display_language_table,
41     MAIN_DISPLAY_THEME_TABLE_SIZE,
42     MAIN_DISPLAY_LANGUAGE_TABLE_SIZE,
43     MAIN_DISPLAY_STRING_TABLE_SIZE,
44     240,                                     /* x resolution                   */
45     320,                                     /* y resolution                   */
46     &Main_Display_control_block,
47     &Main_Display_canvas_control_block,
48     &Main_Display_root_window,
49     Main_Display_canvas_memory,              /* canvas memory area             */
50     307200,                                  /* canvas memory size in bytes    */
51     0                                        /* rotation angle                 */
52     }
53 };
54 
55 
gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)56 UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
57 {
58     UINT status;
59     GX_TEXT_BUTTON *button = (GX_TEXT_BUTTON *) control_block;
60     GX_TEXT_BUTTON_PROPERTIES *props = (GX_TEXT_BUTTON_PROPERTIES *) info->properties;
61     status = gx_text_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
62     if (status == GX_SUCCESS)
63     {
64         gx_text_button_font_set(button, props->font_id);
65 #if defined(GUIX_5_4_0_COMPATIBILITY)
66         gx_text_button_text_color_set(button, props->normal_text_color_id, props->selected_text_color_id);
67 #else
68         gx_text_button_text_color_set(button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
69 #endif
70     }
71     return status;
72 }
73 
gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)74 UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
75 {
76     UINT status;
77     GX_PROMPT *prompt = (GX_PROMPT *) control_block;
78     GX_PROMPT_PROPERTIES *props = (GX_PROMPT_PROPERTIES *) info->properties;
79     status = gx_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size);
80     if (status == GX_SUCCESS)
81     {
82         gx_prompt_font_set(prompt, props->font_id);
83 #if defined(GUIX_5_4_0_COMPATIBILITY)
84         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
85 #else
86         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
87 #endif
88     }
89     return status;
90 }
91 
gx_studio_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)92 UINT gx_studio_pixelmap_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
93 {
94     UINT status;
95     GX_PIXELMAP_PROMPT *pix_prompt = (GX_PIXELMAP_PROMPT *) control_block;
96     GX_PROMPT *prompt = (GX_PROMPT *) pix_prompt;
97     GX_PIXELMAP_PROMPT_PROPERTIES *props = (GX_PIXELMAP_PROMPT_PROPERTIES *) info->properties;
98     status = gx_pixelmap_prompt_create(pix_prompt, info->widget_name, parent,
99                props->string_id,
100                props->fill_map_id,
101                info->style, info->widget_id, &info->size);
102 
103     if (status == GX_SUCCESS)
104     {
105         gx_pixelmap_prompt_pixelmap_set(pix_prompt,
106                                         props->left_map_id,
107                                         props->fill_map_id,
108                                         props->right_map_id,
109                                         props->selected_left_map_id,
110                                         props->selected_fill_map_id,
111                                         props->selected_right_map_id);
112         gx_prompt_font_set(prompt, props->font_id);
113 #if defined(GUIX_5_4_0_COMPATIBILITY)
114         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id);
115 #else
116         gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id);
117 #endif
118     }
119     return status;
120 }
121 
gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)122 UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
123 {
124     UINT status;
125     GX_WINDOW *window = (GX_WINDOW *) control_block;
126     GX_WINDOW_PROPERTIES *props = (GX_WINDOW_PROPERTIES *) info->properties;
127     status = gx_window_create(window, info->widget_name, parent, info->style, info->widget_id, &info->size);
128     if (status == GX_SUCCESS)
129     {
130         if (props->wallpaper_id)
131         {
132             gx_window_wallpaper_set(window, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
133         }
134     }
135     return status;
136 }
137 
gx_studio_vertical_list_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)138 UINT gx_studio_vertical_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
139 {
140     UINT status;
141     GX_VERTICAL_LIST *list = (GX_VERTICAL_LIST *) control_block;
142     GX_VERTICAL_LIST_PROPERTIES *props = (GX_VERTICAL_LIST_PROPERTIES *) info->properties;
143     status = gx_vertical_list_create(list, info->widget_name, parent, props->total_rows,
144                                      props->callback, info->style, info->widget_id, &info->size);
145     if (status == GX_SUCCESS)
146     {
147         if (props->wallpaper_id)
148         {
149             gx_window_wallpaper_set((GX_WINDOW *) list, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER);
150         }
151     }
152     return status;
153 }
154 
gx_studio_template_create(GX_CONST GX_STUDIO_WIDGET * info,GX_WIDGET * control_block,GX_WIDGET * parent)155 UINT gx_studio_template_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
156 {
157     UINT status = GX_SUCCESS;
158     GX_STUDIO_WIDGET derived;
159     GX_TEMPLATE_PROPERTIES *props = (GX_TEMPLATE_PROPERTIES *) info->properties;
160 
161                                              /* create base widget and children */
162     derived =            *props->base_info;
163     derived.widget_id =   info->widget_id;
164     derived.widget_name = info->widget_name;
165 
166     if (info->style & GX_STYLE_ENABLED)
167     {
168         derived.style |= GX_STYLE_ENABLED;
169     }
170     else
171     {
172         derived.style &= ~GX_STYLE_ENABLED;
173     }
174     if (info->status & GX_STATUS_ACCEPTS_FOCUS)
175     {
176         derived.status |= GX_STATUS_ACCEPTS_FOCUS;
177     }
178     else
179     {
180         derived.status &= ~GX_STATUS_ACCEPTS_FOCUS;
181     }
182 
183     #if defined(GX_WIDGET_USER_DATA)
184     derived.user_data =   info->user_data;
185     #endif
186 
187     control_block = gx_studio_widget_create((GX_BYTE *) control_block, &derived, parent);
188     if (control_block)
189     {
190         if (info->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
191         {
192             control_block->gx_widget_status |= GX_STATUS_DYNAMICALLY_ALLOCATED;
193         }
194         if (derived.size.gx_rectangle_left != info->size.gx_rectangle_left ||
195             derived.size.gx_rectangle_top != info->size.gx_rectangle_top)
196         {
197             gx_widget_shift(control_block,
198                 info->size.gx_rectangle_left - derived.size.gx_rectangle_left,
199                 info->size.gx_rectangle_top - derived.size.gx_rectangle_top, GX_FALSE);
200         }
201     }
202     else
203     {
204         status = GX_FAILURE;
205     }
206     return status;
207 }
208 GX_WINDOW_PROPERTIES menu_screen_template_properties =
209 {
210     GX_PIXELMAP_ID_CHECKBOX_OFF              /* wallpaper pixelmap id          */
211 };
212 GX_TEXT_BUTTON_PROPERTIES menu_screen_template_back_button_properties =
213 {
214     GX_STRING_ID_STRING_46,                  /* string id                      */
215     GX_FONT_ID_BUTTON,                       /* font id                        */
216     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
217     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
218     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
219 };
220 
221 GX_CONST GX_STUDIO_WIDGET menu_screen_template_back_button_define =
222 {
223     "back_button",
224     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
225     IDB_BACK,                                /* widget id                      */
226     #if defined(GX_WIDGET_USER_DATA)
227     0,                                       /* user data                      */
228     #endif
229     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
230     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
231     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
232     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
233     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
234     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
235     gx_studio_text_button_create,            /* create function                */
236     GX_NULL,                                 /* drawing function override      */
237     GX_NULL,                                 /* event function override        */
238     {80, 272, 159, 303},                     /* widget size                    */
239     GX_NULL,                                 /* no next widget                 */
240     GX_NULL,                                 /* no child widgets               */
241     offsetof(MENU_SCREEN_TEMPLATE_CONTROL_BLOCK, menu_screen_template_back_button), /* control block */
242     (void *) &menu_screen_template_back_button_properties /* extended properties */
243 };
244 
245 GX_CONST GX_STUDIO_WIDGET menu_screen_template_define =
246 {
247     "menu_screen_template",
248     GX_TYPE_WINDOW,                          /* widget type                    */
249     GX_ID_NONE,                              /* widget id                      */
250     #if defined(GX_WIDGET_USER_DATA)
251     0,                                       /* user data                      */
252     #endif
253     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TILE_WALLPAPER,   /* style flags */
254     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
255     sizeof(MENU_SCREEN_TEMPLATE_CONTROL_BLOCK), /* control block size          */
256     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
257     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
258     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
259     gx_studio_window_create,                 /* create function                */
260     GX_NULL,                                 /* drawing function override      */
261     (UINT (*)(GX_WIDGET *, GX_EVENT *)) sub_menu_event, /* event function override */
262     {0, 0, 239, 319},                        /* widget size                    */
263     GX_NULL,                                 /* next widget                    */
264     &menu_screen_template_back_button_define, /* child widget                  */
265     0,                                       /* control block                  */
266     (void *) &menu_screen_template_properties /* extended properties           */
267 };
268 GX_WINDOW_PROPERTIES top_menu_properties =
269 {
270     0                                        /* wallpaper pixelmap id          */
271 };
272 GX_PIXELMAP_PROMPT_PROPERTIES top_menu_albums_button_properties =
273 {
274     GX_STRING_ID_STRING_39,                  /* string id                      */
275     GX_FONT_ID_MENUFONT,                     /* font id                        */
276     GX_COLOR_ID_TEXT,                        /* normal text color              */
277     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
278     GX_COLOR_ID_TEXT,                        /* disabled text color            */
279     GX_PIXELMAP_ID_TFIELD_LEFT_SMALL,        /* left pixelmap id               */
280     GX_PIXELMAP_ID_TFIELD_FILL_SMALL,        /* fill pixelmap id               */
281     GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL,       /* right pixelmap id              */
282     0,                                       /* selected left pixelmap id      */
283     0,                                       /* selected fill pixelmap id      */
284     0                                        /* selected right pixelmap id     */
285 };
286 GX_PIXELMAP_PROMPT_PROPERTIES top_menu_artists_button_properties =
287 {
288     GX_STRING_ID_STRING_40,                  /* string id                      */
289     GX_FONT_ID_MENUFONT,                     /* font id                        */
290     GX_COLOR_ID_TEXT,                        /* normal text color              */
291     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
292     GX_COLOR_ID_TEXT,                        /* disabled text color            */
293     GX_PIXELMAP_ID_TFIELD_LEFT_SMALL,        /* left pixelmap id               */
294     GX_PIXELMAP_ID_TFIELD_FILL_SMALL,        /* fill pixelmap id               */
295     GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL,       /* right pixelmap id              */
296     0,                                       /* selected left pixelmap id      */
297     0,                                       /* selected fill pixelmap id      */
298     0                                        /* selected right pixelmap id     */
299 };
300 GX_PIXELMAP_PROMPT_PROPERTIES top_menu_genres_button_properties =
301 {
302     GX_STRING_ID_STRING_41,                  /* string id                      */
303     GX_FONT_ID_MENUFONT,                     /* font id                        */
304     GX_COLOR_ID_TEXT,                        /* normal text color              */
305     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
306     GX_COLOR_ID_TEXT,                        /* disabled text color            */
307     GX_PIXELMAP_ID_TFIELD_LEFT_SMALL,        /* left pixelmap id               */
308     GX_PIXELMAP_ID_TFIELD_FILL_SMALL,        /* fill pixelmap id               */
309     GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL,       /* right pixelmap id              */
310     0,                                       /* selected left pixelmap id      */
311     0,                                       /* selected fill pixelmap id      */
312     0                                        /* selected right pixelmap id     */
313 };
314 GX_PIXELMAP_PROMPT_PROPERTIES top_menu_playlist_button_properties =
315 {
316     GX_STRING_ID_STRING_44,                  /* string id                      */
317     GX_FONT_ID_MENUFONT,                     /* font id                        */
318     GX_COLOR_ID_TEXT,                        /* normal text color              */
319     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
320     GX_COLOR_ID_TEXT,                        /* disabled text color            */
321     GX_PIXELMAP_ID_TFIELD_LEFT_SMALL,        /* left pixelmap id               */
322     GX_PIXELMAP_ID_TFIELD_FILL_SMALL,        /* fill pixelmap id               */
323     GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL,       /* right pixelmap id              */
324     0,                                       /* selected left pixelmap id      */
325     0,                                       /* selected fill pixelmap id      */
326     0                                        /* selected right pixelmap id     */
327 };
328 GX_PIXELMAP_PROMPT_PROPERTIES top_menu_songs_button_properties =
329 {
330     GX_STRING_ID_STRING_43,                  /* string id                      */
331     GX_FONT_ID_MENUFONT,                     /* font id                        */
332     GX_COLOR_ID_TEXT,                        /* normal text color              */
333     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
334     GX_COLOR_ID_TEXT,                        /* disabled text color            */
335     GX_PIXELMAP_ID_TFIELD_LEFT_SMALL,        /* left pixelmap id               */
336     GX_PIXELMAP_ID_TFIELD_FILL_SMALL,        /* fill pixelmap id               */
337     GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL,       /* right pixelmap id              */
338     0,                                       /* selected left pixelmap id      */
339     0,                                       /* selected fill pixelmap id      */
340     0                                        /* selected right pixelmap id     */
341 };
342 GX_PIXELMAP_PROMPT_PROPERTIES top_menu_settings_properties =
343 {
344     GX_STRING_ID_STRING_14,                  /* string id                      */
345     GX_FONT_ID_MENUFONT,                     /* font id                        */
346     GX_COLOR_ID_TEXT,                        /* normal text color              */
347     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
348     GX_COLOR_ID_TEXT,                        /* disabled text color            */
349     GX_PIXELMAP_ID_TFIELD_LEFT_SMALL,        /* left pixelmap id               */
350     GX_PIXELMAP_ID_TFIELD_FILL_SMALL,        /* fill pixelmap id               */
351     GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL,       /* right pixelmap id              */
352     0,                                       /* selected left pixelmap id      */
353     0,                                       /* selected fill pixelmap id      */
354     0                                        /* selected right pixelmap id     */
355 };
356 
357 GX_CONST GX_STUDIO_WIDGET top_menu_settings_define =
358 {
359     "settings",
360     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
361     ID_SETTINGS,                             /* widget id                      */
362     #if defined(GX_WIDGET_USER_DATA)
363     0,                                       /* user data                      */
364     #endif
365     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
366     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
367     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
368     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
369     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
370     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
371     gx_studio_pixelmap_prompt_create,        /* create function                */
372     GX_NULL,                                 /* drawing function override      */
373     GX_NULL,                                 /* event function override        */
374     {32, 251, 205, 288},                     /* widget size                    */
375     GX_NULL,                                 /* no next widget                 */
376     GX_NULL,                                 /* no child widgets               */
377     offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_settings), /* control block      */
378     (void *) &top_menu_settings_properties   /* extended properties            */
379 };
380 
381 GX_CONST GX_STUDIO_WIDGET top_menu_songs_button_define =
382 {
383     "songs_button",
384     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
385     ID_SONGS,                                /* widget id                      */
386     #if defined(GX_WIDGET_USER_DATA)
387     0,                                       /* user data                      */
388     #endif
389     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
390     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
391     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
392     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
393     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
394     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
395     gx_studio_pixelmap_prompt_create,        /* create function                */
396     GX_NULL,                                 /* drawing function override      */
397     GX_NULL,                                 /* event function override        */
398     {33, 204, 206, 241},                     /* widget size                    */
399     &top_menu_settings_define,               /* next widget definition         */
400     GX_NULL,                                 /* no child widgets               */
401     offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_songs_button), /* control block  */
402     (void *) &top_menu_songs_button_properties /* extended properties          */
403 };
404 
405 GX_CONST GX_STUDIO_WIDGET top_menu_playlist_button_define =
406 {
407     "playlist_button",
408     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
409     ID_PLAYLISTS,                            /* widget id                      */
410     #if defined(GX_WIDGET_USER_DATA)
411     0,                                       /* user data                      */
412     #endif
413     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
414     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
415     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
416     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
417     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
418     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
419     gx_studio_pixelmap_prompt_create,        /* create function                */
420     GX_NULL,                                 /* drawing function override      */
421     GX_NULL,                                 /* event function override        */
422     {33, 160, 206, 197},                     /* widget size                    */
423     &top_menu_songs_button_define,           /* next widget definition         */
424     GX_NULL,                                 /* no child widgets               */
425     offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_playlist_button), /* control block */
426     (void *) &top_menu_playlist_button_properties /* extended properties       */
427 };
428 
429 GX_CONST GX_STUDIO_WIDGET top_menu_genres_button_define =
430 {
431     "genres_button",
432     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
433     ID_GENRES,                               /* widget id                      */
434     #if defined(GX_WIDGET_USER_DATA)
435     0,                                       /* user data                      */
436     #endif
437     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
438     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
439     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
440     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
441     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
442     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
443     gx_studio_pixelmap_prompt_create,        /* create function                */
444     GX_NULL,                                 /* drawing function override      */
445     GX_NULL,                                 /* event function override        */
446     {33, 116, 206, 153},                     /* widget size                    */
447     &top_menu_playlist_button_define,        /* next widget definition         */
448     GX_NULL,                                 /* no child widgets               */
449     offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_genres_button), /* control block */
450     (void *) &top_menu_genres_button_properties /* extended properties         */
451 };
452 
453 GX_CONST GX_STUDIO_WIDGET top_menu_artists_button_define =
454 {
455     "artists_button",
456     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
457     ID_ARTISTS,                              /* widget id                      */
458     #if defined(GX_WIDGET_USER_DATA)
459     0,                                       /* user data                      */
460     #endif
461     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
462     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
463     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
464     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
465     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
466     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
467     gx_studio_pixelmap_prompt_create,        /* create function                */
468     GX_NULL,                                 /* drawing function override      */
469     GX_NULL,                                 /* event function override        */
470     {33, 72, 206, 109},                      /* widget size                    */
471     &top_menu_genres_button_define,          /* next widget definition         */
472     GX_NULL,                                 /* no child widgets               */
473     offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_artists_button), /* control block */
474     (void *) &top_menu_artists_button_properties /* extended properties        */
475 };
476 
477 GX_CONST GX_STUDIO_WIDGET top_menu_albums_button_define =
478 {
479     "albums_button",
480     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
481     ID_ALBUMS,                               /* widget id                      */
482     #if defined(GX_WIDGET_USER_DATA)
483     0,                                       /* user data                      */
484     #endif
485     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
486     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
487     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
488     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
489     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
490     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
491     gx_studio_pixelmap_prompt_create,        /* create function                */
492     GX_NULL,                                 /* drawing function override      */
493     GX_NULL,                                 /* event function override        */
494     {33, 28, 206, 65},                       /* widget size                    */
495     &top_menu_artists_button_define,         /* next widget definition         */
496     GX_NULL,                                 /* no child widgets               */
497     offsetof(TOP_MENU_CONTROL_BLOCK, top_menu_albums_button), /* control block */
498     (void *) &top_menu_albums_button_properties /* extended properties         */
499 };
500 
501 GX_CONST GX_STUDIO_WIDGET top_menu_define =
502 {
503     "top_menu",
504     GX_TYPE_WINDOW,                          /* widget type                    */
505     GX_ID_NONE,                              /* widget id                      */
506     #if defined(GX_WIDGET_USER_DATA)
507     0,                                       /* user data                      */
508     #endif
509     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED,   /* style flags                    */
510     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
511     sizeof(TOP_MENU_CONTROL_BLOCK),          /* control block size             */
512     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
513     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
514     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
515     gx_studio_window_create,                 /* create function                */
516     GX_NULL,                                 /* drawing function override      */
517     (UINT (*)(GX_WIDGET *, GX_EVENT *)) top_menu_event, /* event function override */
518     {0, 0, 239, 319},                        /* widget size                    */
519     GX_NULL,                                 /* next widget                    */
520     &top_menu_albums_button_define,          /* child widget                   */
521     0,                                       /* control block                  */
522     (void *) &top_menu_properties            /* extended properties            */
523 };
524 GX_TEMPLATE_PROPERTIES second_level_template_properties =
525 {
526     &menu_screen_template_define,            /* base info                      */
527     gx_studio_window_create,                 /* base create function           */
528     {0, 0, 239, 319}                         /* widget size                    */
529 };
530 GX_WINDOW_PROPERTIES second_level_template_second_level_template_child_properties =
531 {
532     0                                        /* wallpaper pixelmap id          */
533 };
534 GX_PROMPT_PROPERTIES second_level_template_prompt_5_properties =
535 {
536     GX_STRING_ID_STRING_14,                  /* string id                      */
537     GX_FONT_ID_MENUFONT,                     /* font id                        */
538     GX_COLOR_ID_TEXT,                        /* normal text color              */
539     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
540     GX_COLOR_ID_TEXT                         /* disabled text color            */
541 };
542 
543 GX_CONST GX_STUDIO_WIDGET second_level_template_prompt_5_define =
544 {
545     "prompt_5",
546     GX_TYPE_PROMPT,                          /* widget type                    */
547     GX_ID_NONE,                              /* widget id                      */
548     #if defined(GX_WIDGET_USER_DATA)
549     0,                                       /* user data                      */
550     #endif
551     GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
552     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
553     sizeof(GX_PROMPT),                       /* control block size             */
554     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
555     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
556     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
557     gx_studio_prompt_create,                 /* create function                */
558     GX_NULL,                                 /* drawing function override      */
559     GX_NULL,                                 /* event function override        */
560     {64, 36, 174, 60},                       /* widget size                    */
561     GX_NULL,                                 /* no next widget                 */
562     GX_NULL,                                 /* no child widgets               */
563     offsetof(SECOND_LEVEL_TEMPLATE_CONTROL_BLOCK, second_level_template_prompt_5), /* control block */
564     (void *) &second_level_template_prompt_5_properties /* extended properties */
565 };
566 
567 GX_CONST GX_STUDIO_WIDGET second_level_template_second_level_template_child_define =
568 {
569     "second_level_template_child",
570     GX_TYPE_WINDOW,                          /* widget type                    */
571     GX_ID_NONE,                              /* widget id                      */
572     #if defined(GX_WIDGET_USER_DATA)
573     0,                                       /* user data                      */
574     #endif
575     GX_STYLE_BORDER_THIN,                    /* style flags                    */
576     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
577     sizeof(GX_WINDOW),                       /* control block size             */
578     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
579     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
580     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
581     gx_studio_window_create,                 /* create function                */
582     GX_NULL,                                 /* drawing function override      */
583     GX_NULL,                                 /* event function override        */
584     {13, 14, 226, 173},                      /* widget size                    */
585     GX_NULL,                                 /* no next widget                 */
586     &second_level_template_prompt_5_define,  /* child widget definition        */
587     offsetof(SECOND_LEVEL_TEMPLATE_CONTROL_BLOCK, second_level_template_second_level_template_child), /* control block */
588     (void *) &second_level_template_second_level_template_child_properties /* extended properties */
589 };
590 
591 GX_CONST GX_STUDIO_WIDGET second_level_template_define =
592 {
593     "second_level_template",
594     GX_TYPE_TEMPLATE,                        /* widget type                    */
595     GX_ID_NONE,                              /* widget id                      */
596     #if defined(GX_WIDGET_USER_DATA)
597     0,                                       /* user data                      */
598     #endif
599     GX_STYLE_BORDER_THIN,                    /* style flags                    */
600     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
601     sizeof(SECOND_LEVEL_TEMPLATE_CONTROL_BLOCK), /* control block size         */
602     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
603     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
604     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
605     gx_studio_template_create,               /* create function                */
606     GX_NULL,                                 /* drawing function override      */
607     GX_NULL,                                 /* event function override        */
608     {0, 0, 239, 319},                        /* widget size                    */
609     GX_NULL,                                 /* next widget                    */
610     &second_level_template_second_level_template_child_define, /* child widget */
611     0,                                       /* control block                  */
612     (void *) &second_level_template_properties /* extended properties          */
613 };
614 GX_TEMPLATE_PROPERTIES playlist_screen_properties =
615 {
616     &menu_screen_template_define,            /* base info                      */
617     gx_studio_window_create,                 /* base create function           */
618     {0, 0, 239, 319}                         /* widget size                    */
619 };
620 GX_PIXELMAP_PROMPT_PROPERTIES playlist_screen_prompt_4_properties =
621 {
622     GX_STRING_ID_STRING_44,                  /* string id                      */
623     GX_FONT_ID_MENUFONT,                     /* font id                        */
624     GX_COLOR_ID_TEXT,                        /* normal text color              */
625     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
626     GX_COLOR_ID_TEXT,                        /* disabled text color            */
627     GX_PIXELMAP_ID_TFIELD_LEFT_SMALL,        /* left pixelmap id               */
628     GX_PIXELMAP_ID_TFIELD_FILL_SMALL,        /* fill pixelmap id               */
629     GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL,       /* right pixelmap id              */
630     0,                                       /* selected left pixelmap id      */
631     0,                                       /* selected fill pixelmap id      */
632     0                                        /* selected right pixelmap id     */
633 };
634 GX_VERTICAL_LIST_PROPERTIES playlist_screen_vertical_list_4_properties =
635 {
636     0,                                       /* wallpaper id                   */
637     GX_NULL,                                 /* callback function              */
638     10                                       /* total rows                     */
639 };
640 GX_TEXT_BUTTON_PROPERTIES playlist_screen_button_17_1_properties =
641 {
642     GX_STRING_ID_STRING_7,                   /* string id                      */
643     GX_FONT_ID_BUTTON,                       /* font id                        */
644     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
645     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
646     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
647 };
648 GX_TEXT_BUTTON_PROPERTIES playlist_screen_button_18_1_properties =
649 {
650     GX_STRING_ID_STRING_8,                   /* string id                      */
651     GX_FONT_ID_BUTTON,                       /* font id                        */
652     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
653     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
654     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
655 };
656 GX_TEXT_BUTTON_PROPERTIES playlist_screen_button_19_1_properties =
657 {
658     GX_STRING_ID_STRING_9,                   /* string id                      */
659     GX_FONT_ID_BUTTON,                       /* font id                        */
660     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
661     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
662     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
663 };
664 GX_TEXT_BUTTON_PROPERTIES playlist_screen_button_10_3_properties =
665 {
666     GX_STRING_ID_STRING_10,                  /* string id                      */
667     GX_FONT_ID_BUTTON,                       /* font id                        */
668     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
669     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
670     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
671 };
672 GX_TEXT_BUTTON_PROPERTIES playlist_screen_button_11_3_properties =
673 {
674     GX_STRING_ID_STRING_11,                  /* string id                      */
675     GX_FONT_ID_BUTTON,                       /* font id                        */
676     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
677     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
678     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
679 };
680 GX_TEXT_BUTTON_PROPERTIES playlist_screen_button_12_3_properties =
681 {
682     GX_STRING_ID_STRING_12,                  /* string id                      */
683     GX_FONT_ID_BUTTON,                       /* font id                        */
684     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
685     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
686     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
687 };
688 GX_TEXT_BUTTON_PROPERTIES playlist_screen_button_13_3_properties =
689 {
690     GX_STRING_ID_STRING_13,                  /* string id                      */
691     GX_FONT_ID_BUTTON,                       /* font id                        */
692     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
693     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
694     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
695 };
696 
697 GX_CONST GX_STUDIO_WIDGET playlist_screen_button_13_3_define =
698 {
699     "button_13_3",
700     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
701     GX_ID_NONE,                              /* widget id                      */
702     #if defined(GX_WIDGET_USER_DATA)
703     0,                                       /* user data                      */
704     #endif
705     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
706     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
707     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
708     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
709     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
710     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
711     gx_studio_text_button_create,            /* create function                */
712     GX_NULL,                                 /* drawing function override      */
713     GX_NULL,                                 /* event function override        */
714     {21, 229, 223, 252},                     /* widget size                    */
715     GX_NULL,                                 /* no next widget                 */
716     GX_NULL,                                 /* no child widgets               */
717     0,                                       /* runtime control block          */
718     (void *) &playlist_screen_button_13_3_properties /* extended properties    */
719 };
720 
721 GX_CONST GX_STUDIO_WIDGET playlist_screen_button_12_3_define =
722 {
723     "button_12_3",
724     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
725     GX_ID_NONE,                              /* widget id                      */
726     #if defined(GX_WIDGET_USER_DATA)
727     0,                                       /* user data                      */
728     #endif
729     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
730     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
731     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
732     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
733     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
734     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
735     gx_studio_text_button_create,            /* create function                */
736     GX_NULL,                                 /* drawing function override      */
737     GX_NULL,                                 /* event function override        */
738     {21, 205, 223, 228},                     /* widget size                    */
739     &playlist_screen_button_13_3_define,     /* next widget definition         */
740     GX_NULL,                                 /* no child widgets               */
741     0,                                       /* runtime control block          */
742     (void *) &playlist_screen_button_12_3_properties /* extended properties    */
743 };
744 
745 GX_CONST GX_STUDIO_WIDGET playlist_screen_button_11_3_define =
746 {
747     "button_11_3",
748     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
749     GX_ID_NONE,                              /* widget id                      */
750     #if defined(GX_WIDGET_USER_DATA)
751     0,                                       /* user data                      */
752     #endif
753     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
754     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
755     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
756     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
757     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
758     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
759     gx_studio_text_button_create,            /* create function                */
760     GX_NULL,                                 /* drawing function override      */
761     GX_NULL,                                 /* event function override        */
762     {21, 181, 223, 204},                     /* widget size                    */
763     &playlist_screen_button_12_3_define,     /* next widget definition         */
764     GX_NULL,                                 /* no child widgets               */
765     0,                                       /* runtime control block          */
766     (void *) &playlist_screen_button_11_3_properties /* extended properties    */
767 };
768 
769 GX_CONST GX_STUDIO_WIDGET playlist_screen_button_10_3_define =
770 {
771     "button_10_3",
772     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
773     GX_ID_NONE,                              /* widget id                      */
774     #if defined(GX_WIDGET_USER_DATA)
775     0,                                       /* user data                      */
776     #endif
777     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
778     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
779     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
780     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
781     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
782     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
783     gx_studio_text_button_create,            /* create function                */
784     GX_NULL,                                 /* drawing function override      */
785     GX_NULL,                                 /* event function override        */
786     {21, 157, 223, 180},                     /* widget size                    */
787     &playlist_screen_button_11_3_define,     /* next widget definition         */
788     GX_NULL,                                 /* no child widgets               */
789     0,                                       /* runtime control block          */
790     (void *) &playlist_screen_button_10_3_properties /* extended properties    */
791 };
792 
793 GX_CONST GX_STUDIO_WIDGET playlist_screen_button_19_1_define =
794 {
795     "button_19_1",
796     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
797     GX_ID_NONE,                              /* widget id                      */
798     #if defined(GX_WIDGET_USER_DATA)
799     0,                                       /* user data                      */
800     #endif
801     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
802     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
803     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
804     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
805     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
806     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
807     gx_studio_text_button_create,            /* create function                */
808     GX_NULL,                                 /* drawing function override      */
809     GX_NULL,                                 /* event function override        */
810     {21, 133, 223, 156},                     /* widget size                    */
811     &playlist_screen_button_10_3_define,     /* next widget definition         */
812     GX_NULL,                                 /* no child widgets               */
813     0,                                       /* runtime control block          */
814     (void *) &playlist_screen_button_19_1_properties /* extended properties    */
815 };
816 
817 GX_CONST GX_STUDIO_WIDGET playlist_screen_button_18_1_define =
818 {
819     "button_18_1",
820     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
821     GX_ID_NONE,                              /* widget id                      */
822     #if defined(GX_WIDGET_USER_DATA)
823     0,                                       /* user data                      */
824     #endif
825     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
826     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
827     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
828     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
829     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
830     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
831     gx_studio_text_button_create,            /* create function                */
832     GX_NULL,                                 /* drawing function override      */
833     GX_NULL,                                 /* event function override        */
834     {21, 109, 223, 132},                     /* widget size                    */
835     &playlist_screen_button_19_1_define,     /* next widget definition         */
836     GX_NULL,                                 /* no child widgets               */
837     0,                                       /* runtime control block          */
838     (void *) &playlist_screen_button_18_1_properties /* extended properties    */
839 };
840 
841 GX_CONST GX_STUDIO_WIDGET playlist_screen_button_17_1_define =
842 {
843     "button_17_1",
844     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
845     GX_ID_NONE,                              /* widget id                      */
846     #if defined(GX_WIDGET_USER_DATA)
847     0,                                       /* user data                      */
848     #endif
849     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
850     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
851     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
852     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
853     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
854     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
855     gx_studio_text_button_create,            /* create function                */
856     GX_NULL,                                 /* drawing function override      */
857     GX_NULL,                                 /* event function override        */
858     {21, 85, 223, 108},                      /* widget size                    */
859     &playlist_screen_button_18_1_define,     /* next widget definition         */
860     GX_NULL,                                 /* no child widgets               */
861     0,                                       /* runtime control block          */
862     (void *) &playlist_screen_button_17_1_properties /* extended properties    */
863 };
864 
865 GX_CONST GX_STUDIO_WIDGET playlist_screen_vertical_list_4_define =
866 {
867     "vertical_list_4",
868     GX_TYPE_VERTICAL_LIST,                   /* widget type                    */
869     GX_ID_NONE,                              /* widget id                      */
870     #if defined(GX_WIDGET_USER_DATA)
871     0,                                       /* user data                      */
872     #endif
873     GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags      */
874     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
875     sizeof(GX_VERTICAL_LIST),                /* control block size             */
876     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
877     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
878     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
879     gx_studio_vertical_list_create,          /* create function                */
880     GX_NULL,                                 /* drawing function override      */
881     GX_NULL,                                 /* event function override        */
882     {20, 84, 224, 254},                      /* widget size                    */
883     GX_NULL,                                 /* no next widget                 */
884     &playlist_screen_button_17_1_define,     /* child widget definition        */
885     0,                                       /* runtime control block          */
886     (void *) &playlist_screen_vertical_list_4_properties /* extended properties */
887 };
888 
889 GX_CONST GX_STUDIO_WIDGET playlist_screen_prompt_4_define =
890 {
891     "prompt_4",
892     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
893     GX_ID_NONE,                              /* widget id                      */
894     #if defined(GX_WIDGET_USER_DATA)
895     0,                                       /* user data                      */
896     #endif
897     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
898     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
899     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
900     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
901     GX_COLOR_ID_SELECTED_TEXT,               /* selected color id              */
902     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
903     gx_studio_pixelmap_prompt_create,        /* create function                */
904     GX_NULL,                                 /* drawing function override      */
905     GX_NULL,                                 /* event function override        */
906     {35, 23, 208, 60},                       /* widget size                    */
907     &playlist_screen_vertical_list_4_define, /* next widget definition         */
908     GX_NULL,                                 /* no child widgets               */
909     0,                                       /* runtime control block          */
910     (void *) &playlist_screen_prompt_4_properties /* extended properties       */
911 };
912 
913 GX_CONST GX_STUDIO_WIDGET playlist_screen_define =
914 {
915     "playlist_screen",
916     GX_TYPE_TEMPLATE,                        /* widget type                    */
917     GX_ID_NONE,                              /* widget id                      */
918     #if defined(GX_WIDGET_USER_DATA)
919     0,                                       /* user data                      */
920     #endif
921     GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags      */
922     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
923     sizeof(PLAYLIST_SCREEN_CONTROL_BLOCK),   /* control block size             */
924     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
925     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
926     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
927     gx_studio_template_create,               /* create function                */
928     GX_NULL,                                 /* drawing function override      */
929     GX_NULL,                                 /* event function override        */
930     {0, 0, 239, 319},                        /* widget size                    */
931     GX_NULL,                                 /* next widget                    */
932     &playlist_screen_prompt_4_define,        /* child widget                   */
933     0,                                       /* control block                  */
934     (void *) &playlist_screen_properties     /* extended properties            */
935 };
936 GX_TEMPLATE_PROPERTIES genre_screen_properties =
937 {
938     &menu_screen_template_define,            /* base info                      */
939     gx_studio_window_create,                 /* base create function           */
940     {0, 0, 239, 319}                         /* widget size                    */
941 };
942 GX_PIXELMAP_PROMPT_PROPERTIES genre_screen_prompt_3_properties =
943 {
944     GX_STRING_ID_STRING_41,                  /* string id                      */
945     GX_FONT_ID_MENUFONT,                     /* font id                        */
946     GX_COLOR_ID_TEXT,                        /* normal text color              */
947     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
948     GX_COLOR_ID_TEXT,                        /* disabled text color            */
949     GX_PIXELMAP_ID_TFIELD_LEFT_SMALL,        /* left pixelmap id               */
950     GX_PIXELMAP_ID_TFIELD_FILL_SMALL,        /* fill pixelmap id               */
951     GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL,       /* right pixelmap id              */
952     0,                                       /* selected left pixelmap id      */
953     0,                                       /* selected fill pixelmap id      */
954     0                                        /* selected right pixelmap id     */
955 };
956 GX_VERTICAL_LIST_PROPERTIES genre_screen_vertical_list_3_properties =
957 {
958     0,                                       /* wallpaper id                   */
959     GX_NULL,                                 /* callback function              */
960     10                                       /* total rows                     */
961 };
962 GX_TEXT_BUTTON_PROPERTIES genre_screen_button_17_properties =
963 {
964     GX_STRING_ID_STRING_45,                  /* string id                      */
965     GX_FONT_ID_BUTTON,                       /* font id                        */
966     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
967     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
968     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
969 };
970 GX_TEXT_BUTTON_PROPERTIES genre_screen_button_18_properties =
971 {
972     GX_STRING_ID_STRING_1,                   /* string id                      */
973     GX_FONT_ID_BUTTON,                       /* font id                        */
974     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
975     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
976     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
977 };
978 GX_TEXT_BUTTON_PROPERTIES genre_screen_button_19_properties =
979 {
980     GX_STRING_ID_STRING_2,                   /* string id                      */
981     GX_FONT_ID_BUTTON,                       /* font id                        */
982     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
983     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
984     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
985 };
986 GX_TEXT_BUTTON_PROPERTIES genre_screen_button_10_2_properties =
987 {
988     GX_STRING_ID_STRING_3,                   /* string id                      */
989     GX_FONT_ID_BUTTON,                       /* font id                        */
990     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
991     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
992     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
993 };
994 GX_TEXT_BUTTON_PROPERTIES genre_screen_button_11_2_properties =
995 {
996     GX_STRING_ID_STRING_4,                   /* string id                      */
997     GX_FONT_ID_BUTTON,                       /* font id                        */
998     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
999     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1000     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1001 };
1002 GX_TEXT_BUTTON_PROPERTIES genre_screen_button_12_2_properties =
1003 {
1004     GX_STRING_ID_STRING_5,                   /* string id                      */
1005     GX_FONT_ID_BUTTON,                       /* font id                        */
1006     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1007     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1008     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1009 };
1010 GX_TEXT_BUTTON_PROPERTIES genre_screen_button_13_2_properties =
1011 {
1012     GX_STRING_ID_STRING_6,                   /* string id                      */
1013     GX_FONT_ID_BUTTON,                       /* font id                        */
1014     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1015     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1016     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1017 };
1018 
1019 GX_CONST GX_STUDIO_WIDGET genre_screen_button_13_2_define =
1020 {
1021     "button_13_2",
1022     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1023     GX_ID_NONE,                              /* widget id                      */
1024     #if defined(GX_WIDGET_USER_DATA)
1025     0,                                       /* user data                      */
1026     #endif
1027     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1028     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1029     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1030     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1031     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1032     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1033     gx_studio_text_button_create,            /* create function                */
1034     GX_NULL,                                 /* drawing function override      */
1035     GX_NULL,                                 /* event function override        */
1036     {21, 229, 223, 252},                     /* widget size                    */
1037     GX_NULL,                                 /* no next widget                 */
1038     GX_NULL,                                 /* no child widgets               */
1039     0,                                       /* runtime control block          */
1040     (void *) &genre_screen_button_13_2_properties /* extended properties       */
1041 };
1042 
1043 GX_CONST GX_STUDIO_WIDGET genre_screen_button_12_2_define =
1044 {
1045     "button_12_2",
1046     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1047     GX_ID_NONE,                              /* widget id                      */
1048     #if defined(GX_WIDGET_USER_DATA)
1049     0,                                       /* user data                      */
1050     #endif
1051     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1052     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1053     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1054     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1055     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1056     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1057     gx_studio_text_button_create,            /* create function                */
1058     GX_NULL,                                 /* drawing function override      */
1059     GX_NULL,                                 /* event function override        */
1060     {21, 205, 223, 228},                     /* widget size                    */
1061     &genre_screen_button_13_2_define,        /* next widget definition         */
1062     GX_NULL,                                 /* no child widgets               */
1063     0,                                       /* runtime control block          */
1064     (void *) &genre_screen_button_12_2_properties /* extended properties       */
1065 };
1066 
1067 GX_CONST GX_STUDIO_WIDGET genre_screen_button_11_2_define =
1068 {
1069     "button_11_2",
1070     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1071     GX_ID_NONE,                              /* widget id                      */
1072     #if defined(GX_WIDGET_USER_DATA)
1073     0,                                       /* user data                      */
1074     #endif
1075     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1076     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1077     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1078     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1079     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1080     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1081     gx_studio_text_button_create,            /* create function                */
1082     GX_NULL,                                 /* drawing function override      */
1083     GX_NULL,                                 /* event function override        */
1084     {21, 181, 223, 204},                     /* widget size                    */
1085     &genre_screen_button_12_2_define,        /* next widget definition         */
1086     GX_NULL,                                 /* no child widgets               */
1087     0,                                       /* runtime control block          */
1088     (void *) &genre_screen_button_11_2_properties /* extended properties       */
1089 };
1090 
1091 GX_CONST GX_STUDIO_WIDGET genre_screen_button_10_2_define =
1092 {
1093     "button_10_2",
1094     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1095     GX_ID_NONE,                              /* widget id                      */
1096     #if defined(GX_WIDGET_USER_DATA)
1097     0,                                       /* user data                      */
1098     #endif
1099     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1100     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1101     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1102     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1103     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1104     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1105     gx_studio_text_button_create,            /* create function                */
1106     GX_NULL,                                 /* drawing function override      */
1107     GX_NULL,                                 /* event function override        */
1108     {21, 157, 223, 180},                     /* widget size                    */
1109     &genre_screen_button_11_2_define,        /* next widget definition         */
1110     GX_NULL,                                 /* no child widgets               */
1111     0,                                       /* runtime control block          */
1112     (void *) &genre_screen_button_10_2_properties /* extended properties       */
1113 };
1114 
1115 GX_CONST GX_STUDIO_WIDGET genre_screen_button_19_define =
1116 {
1117     "button_19",
1118     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1119     GX_ID_NONE,                              /* widget id                      */
1120     #if defined(GX_WIDGET_USER_DATA)
1121     0,                                       /* user data                      */
1122     #endif
1123     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1124     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1125     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1126     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1127     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1128     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1129     gx_studio_text_button_create,            /* create function                */
1130     GX_NULL,                                 /* drawing function override      */
1131     GX_NULL,                                 /* event function override        */
1132     {21, 133, 223, 156},                     /* widget size                    */
1133     &genre_screen_button_10_2_define,        /* next widget definition         */
1134     GX_NULL,                                 /* no child widgets               */
1135     0,                                       /* runtime control block          */
1136     (void *) &genre_screen_button_19_properties /* extended properties         */
1137 };
1138 
1139 GX_CONST GX_STUDIO_WIDGET genre_screen_button_18_define =
1140 {
1141     "button_18",
1142     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1143     GX_ID_NONE,                              /* widget id                      */
1144     #if defined(GX_WIDGET_USER_DATA)
1145     0,                                       /* user data                      */
1146     #endif
1147     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1148     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1149     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1150     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1151     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1152     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1153     gx_studio_text_button_create,            /* create function                */
1154     GX_NULL,                                 /* drawing function override      */
1155     GX_NULL,                                 /* event function override        */
1156     {21, 109, 223, 132},                     /* widget size                    */
1157     &genre_screen_button_19_define,          /* next widget definition         */
1158     GX_NULL,                                 /* no child widgets               */
1159     0,                                       /* runtime control block          */
1160     (void *) &genre_screen_button_18_properties /* extended properties         */
1161 };
1162 
1163 GX_CONST GX_STUDIO_WIDGET genre_screen_button_17_define =
1164 {
1165     "button_17",
1166     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1167     GX_ID_NONE,                              /* widget id                      */
1168     #if defined(GX_WIDGET_USER_DATA)
1169     0,                                       /* user data                      */
1170     #endif
1171     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1172     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1173     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1174     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1175     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1176     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1177     gx_studio_text_button_create,            /* create function                */
1178     GX_NULL,                                 /* drawing function override      */
1179     GX_NULL,                                 /* event function override        */
1180     {21, 85, 223, 108},                      /* widget size                    */
1181     &genre_screen_button_18_define,          /* next widget definition         */
1182     GX_NULL,                                 /* no child widgets               */
1183     0,                                       /* runtime control block          */
1184     (void *) &genre_screen_button_17_properties /* extended properties         */
1185 };
1186 
1187 GX_CONST GX_STUDIO_WIDGET genre_screen_vertical_list_3_define =
1188 {
1189     "vertical_list_3",
1190     GX_TYPE_VERTICAL_LIST,                   /* widget type                    */
1191     GX_ID_NONE,                              /* widget id                      */
1192     #if defined(GX_WIDGET_USER_DATA)
1193     0,                                       /* user data                      */
1194     #endif
1195     GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags      */
1196     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1197     sizeof(GX_VERTICAL_LIST),                /* control block size             */
1198     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1199     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
1200     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1201     gx_studio_vertical_list_create,          /* create function                */
1202     GX_NULL,                                 /* drawing function override      */
1203     GX_NULL,                                 /* event function override        */
1204     {20, 84, 224, 254},                      /* widget size                    */
1205     GX_NULL,                                 /* no next widget                 */
1206     &genre_screen_button_17_define,          /* child widget definition        */
1207     0,                                       /* runtime control block          */
1208     (void *) &genre_screen_vertical_list_3_properties /* extended properties   */
1209 };
1210 
1211 GX_CONST GX_STUDIO_WIDGET genre_screen_prompt_3_define =
1212 {
1213     "prompt_3",
1214     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
1215     GX_ID_NONE,                              /* widget id                      */
1216     #if defined(GX_WIDGET_USER_DATA)
1217     0,                                       /* user data                      */
1218     #endif
1219     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
1220     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1221     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
1222     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1223     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1224     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1225     gx_studio_pixelmap_prompt_create,        /* create function                */
1226     GX_NULL,                                 /* drawing function override      */
1227     GX_NULL,                                 /* event function override        */
1228     {35, 23, 208, 60},                       /* widget size                    */
1229     &genre_screen_vertical_list_3_define,    /* next widget definition         */
1230     GX_NULL,                                 /* no child widgets               */
1231     offsetof(GENRE_SCREEN_CONTROL_BLOCK, genre_screen_prompt_3), /* control block */
1232     (void *) &genre_screen_prompt_3_properties /* extended properties          */
1233 };
1234 
1235 GX_CONST GX_STUDIO_WIDGET genre_screen_define =
1236 {
1237     "genre_screen",
1238     GX_TYPE_TEMPLATE,                        /* widget type                    */
1239     GX_ID_NONE,                              /* widget id                      */
1240     #if defined(GX_WIDGET_USER_DATA)
1241     0,                                       /* user data                      */
1242     #endif
1243     GX_STYLE_BORDER_THIN,                    /* style flags                    */
1244     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1245     sizeof(GENRE_SCREEN_CONTROL_BLOCK),      /* control block size             */
1246     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1247     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1248     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1249     gx_studio_template_create,               /* create function                */
1250     GX_NULL,                                 /* drawing function override      */
1251     GX_NULL,                                 /* event function override        */
1252     {0, 0, 239, 319},                        /* widget size                    */
1253     GX_NULL,                                 /* next widget                    */
1254     &genre_screen_prompt_3_define,           /* child widget                   */
1255     0,                                       /* control block                  */
1256     (void *) &genre_screen_properties        /* extended properties            */
1257 };
1258 GX_TEMPLATE_PROPERTIES artists_screen_properties =
1259 {
1260     &menu_screen_template_define,            /* base info                      */
1261     gx_studio_window_create,                 /* base create function           */
1262     {0, 0, 239, 319}                         /* widget size                    */
1263 };
1264 GX_PIXELMAP_PROMPT_PROPERTIES artists_screen_prompt_2_properties =
1265 {
1266     GX_STRING_ID_STRING_40,                  /* string id                      */
1267     GX_FONT_ID_MENUFONT,                     /* font id                        */
1268     GX_COLOR_ID_TEXT,                        /* normal text color              */
1269     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1270     GX_COLOR_ID_TEXT,                        /* disabled text color            */
1271     GX_PIXELMAP_ID_TFIELD_LEFT_SMALL,        /* left pixelmap id               */
1272     GX_PIXELMAP_ID_TFIELD_FILL_SMALL,        /* fill pixelmap id               */
1273     GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL,       /* right pixelmap id              */
1274     0,                                       /* selected left pixelmap id      */
1275     0,                                       /* selected fill pixelmap id      */
1276     0                                        /* selected right pixelmap id     */
1277 };
1278 GX_VERTICAL_LIST_PROPERTIES artists_screen_vertical_list_2_properties =
1279 {
1280     0,                                       /* wallpaper id                   */
1281     GX_NULL,                                 /* callback function              */
1282     10                                       /* total rows                     */
1283 };
1284 GX_TEXT_BUTTON_PROPERTIES artists_screen_button_14_properties =
1285 {
1286     GX_STRING_ID_STRING_62,                  /* string id                      */
1287     GX_FONT_ID_BUTTON,                       /* font id                        */
1288     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1289     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1290     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1291 };
1292 GX_TEXT_BUTTON_PROPERTIES artists_screen_button_15_properties =
1293 {
1294     GX_STRING_ID_STRING_63,                  /* string id                      */
1295     GX_FONT_ID_BUTTON,                       /* font id                        */
1296     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1297     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1298     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1299 };
1300 GX_TEXT_BUTTON_PROPERTIES artists_screen_button_16_properties =
1301 {
1302     GX_STRING_ID_STRING_64,                  /* string id                      */
1303     GX_FONT_ID_BUTTON,                       /* font id                        */
1304     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1305     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1306     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1307 };
1308 GX_TEXT_BUTTON_PROPERTIES artists_screen_button_10_1_properties =
1309 {
1310     GX_STRING_ID_STRING_65,                  /* string id                      */
1311     GX_FONT_ID_BUTTON,                       /* font id                        */
1312     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1313     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1314     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1315 };
1316 GX_TEXT_BUTTON_PROPERTIES artists_screen_button_11_1_properties =
1317 {
1318     GX_STRING_ID_STRING_66,                  /* string id                      */
1319     GX_FONT_ID_BUTTON,                       /* font id                        */
1320     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1321     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1322     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1323 };
1324 GX_TEXT_BUTTON_PROPERTIES artists_screen_button_12_1_properties =
1325 {
1326     GX_STRING_ID_STRING_67,                  /* string id                      */
1327     GX_FONT_ID_BUTTON,                       /* font id                        */
1328     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1329     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1330     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1331 };
1332 GX_TEXT_BUTTON_PROPERTIES artists_screen_button_13_1_properties =
1333 {
1334     GX_STRING_ID_STRING_68,                  /* string id                      */
1335     GX_FONT_ID_BUTTON,                       /* font id                        */
1336     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1337     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1338     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1339 };
1340 
1341 GX_CONST GX_STUDIO_WIDGET artists_screen_button_13_1_define =
1342 {
1343     "button_13_1",
1344     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1345     GX_ID_NONE,                              /* widget id                      */
1346     #if defined(GX_WIDGET_USER_DATA)
1347     0,                                       /* user data                      */
1348     #endif
1349     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
1350     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1351     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1352     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1353     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1354     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1355     gx_studio_text_button_create,            /* create function                */
1356     GX_NULL,                                 /* drawing function override      */
1357     GX_NULL,                                 /* event function override        */
1358     {21, 229, 223, 252},                     /* widget size                    */
1359     GX_NULL,                                 /* no next widget                 */
1360     GX_NULL,                                 /* no child widgets               */
1361     offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_13_1), /* control block */
1362     (void *) &artists_screen_button_13_1_properties /* extended properties     */
1363 };
1364 
1365 GX_CONST GX_STUDIO_WIDGET artists_screen_button_12_1_define =
1366 {
1367     "button_12_1",
1368     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1369     GX_ID_NONE,                              /* widget id                      */
1370     #if defined(GX_WIDGET_USER_DATA)
1371     0,                                       /* user data                      */
1372     #endif
1373     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
1374     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1375     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1376     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1377     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1378     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1379     gx_studio_text_button_create,            /* create function                */
1380     GX_NULL,                                 /* drawing function override      */
1381     GX_NULL,                                 /* event function override        */
1382     {21, 205, 223, 228},                     /* widget size                    */
1383     &artists_screen_button_13_1_define,      /* next widget definition         */
1384     GX_NULL,                                 /* no child widgets               */
1385     offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_12_1), /* control block */
1386     (void *) &artists_screen_button_12_1_properties /* extended properties     */
1387 };
1388 
1389 GX_CONST GX_STUDIO_WIDGET artists_screen_button_11_1_define =
1390 {
1391     "button_11_1",
1392     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1393     GX_ID_NONE,                              /* widget id                      */
1394     #if defined(GX_WIDGET_USER_DATA)
1395     0,                                       /* user data                      */
1396     #endif
1397     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
1398     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1399     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1400     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1401     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1402     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1403     gx_studio_text_button_create,            /* create function                */
1404     GX_NULL,                                 /* drawing function override      */
1405     GX_NULL,                                 /* event function override        */
1406     {21, 181, 223, 204},                     /* widget size                    */
1407     &artists_screen_button_12_1_define,      /* next widget definition         */
1408     GX_NULL,                                 /* no child widgets               */
1409     offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_11_1), /* control block */
1410     (void *) &artists_screen_button_11_1_properties /* extended properties     */
1411 };
1412 
1413 GX_CONST GX_STUDIO_WIDGET artists_screen_button_10_1_define =
1414 {
1415     "button_10_1",
1416     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1417     GX_ID_NONE,                              /* widget id                      */
1418     #if defined(GX_WIDGET_USER_DATA)
1419     0,                                       /* user data                      */
1420     #endif
1421     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
1422     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1423     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1424     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1425     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1426     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1427     gx_studio_text_button_create,            /* create function                */
1428     GX_NULL,                                 /* drawing function override      */
1429     GX_NULL,                                 /* event function override        */
1430     {21, 157, 223, 180},                     /* widget size                    */
1431     &artists_screen_button_11_1_define,      /* next widget definition         */
1432     GX_NULL,                                 /* no child widgets               */
1433     offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_10_1), /* control block */
1434     (void *) &artists_screen_button_10_1_properties /* extended properties     */
1435 };
1436 
1437 GX_CONST GX_STUDIO_WIDGET artists_screen_button_16_define =
1438 {
1439     "button_16",
1440     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1441     GX_ID_NONE,                              /* widget id                      */
1442     #if defined(GX_WIDGET_USER_DATA)
1443     0,                                       /* user data                      */
1444     #endif
1445     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
1446     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1447     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1448     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1449     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1450     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1451     gx_studio_text_button_create,            /* create function                */
1452     GX_NULL,                                 /* drawing function override      */
1453     GX_NULL,                                 /* event function override        */
1454     {21, 133, 223, 156},                     /* widget size                    */
1455     &artists_screen_button_10_1_define,      /* next widget definition         */
1456     GX_NULL,                                 /* no child widgets               */
1457     offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_16), /* control block */
1458     (void *) &artists_screen_button_16_properties /* extended properties       */
1459 };
1460 
1461 GX_CONST GX_STUDIO_WIDGET artists_screen_button_15_define =
1462 {
1463     "button_15",
1464     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1465     GX_ID_NONE,                              /* widget id                      */
1466     #if defined(GX_WIDGET_USER_DATA)
1467     0,                                       /* user data                      */
1468     #endif
1469     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
1470     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1471     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1472     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1473     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1474     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1475     gx_studio_text_button_create,            /* create function                */
1476     GX_NULL,                                 /* drawing function override      */
1477     GX_NULL,                                 /* event function override        */
1478     {21, 109, 223, 132},                     /* widget size                    */
1479     &artists_screen_button_16_define,        /* next widget definition         */
1480     GX_NULL,                                 /* no child widgets               */
1481     offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_15), /* control block */
1482     (void *) &artists_screen_button_15_properties /* extended properties       */
1483 };
1484 
1485 GX_CONST GX_STUDIO_WIDGET artists_screen_button_14_define =
1486 {
1487     "button_14",
1488     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1489     GX_ID_NONE,                              /* widget id                      */
1490     #if defined(GX_WIDGET_USER_DATA)
1491     0,                                       /* user data                      */
1492     #endif
1493     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT,   /* style flags */
1494     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1495     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1496     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1497     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1498     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1499     gx_studio_text_button_create,            /* create function                */
1500     GX_NULL,                                 /* drawing function override      */
1501     GX_NULL,                                 /* event function override        */
1502     {21, 85, 223, 108},                      /* widget size                    */
1503     &artists_screen_button_15_define,        /* next widget definition         */
1504     GX_NULL,                                 /* no child widgets               */
1505     offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_button_14), /* control block */
1506     (void *) &artists_screen_button_14_properties /* extended properties       */
1507 };
1508 
1509 GX_CONST GX_STUDIO_WIDGET artists_screen_vertical_list_2_define =
1510 {
1511     "vertical_list_2",
1512     GX_TYPE_VERTICAL_LIST,                   /* widget type                    */
1513     GX_ID_NONE,                              /* widget id                      */
1514     #if defined(GX_WIDGET_USER_DATA)
1515     0,                                       /* user data                      */
1516     #endif
1517     GX_STYLE_BORDER_THIN,                    /* style flags                    */
1518     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1519     sizeof(GX_VERTICAL_LIST),                /* control block size             */
1520     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1521     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
1522     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1523     gx_studio_vertical_list_create,          /* create function                */
1524     GX_NULL,                                 /* drawing function override      */
1525     GX_NULL,                                 /* event function override        */
1526     {20, 84, 224, 254},                      /* widget size                    */
1527     GX_NULL,                                 /* no next widget                 */
1528     &artists_screen_button_14_define,        /* child widget definition        */
1529     offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_vertical_list_2), /* control block */
1530     (void *) &artists_screen_vertical_list_2_properties /* extended properties */
1531 };
1532 
1533 GX_CONST GX_STUDIO_WIDGET artists_screen_prompt_2_define =
1534 {
1535     "prompt_2",
1536     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
1537     GX_ID_NONE,                              /* widget id                      */
1538     #if defined(GX_WIDGET_USER_DATA)
1539     0,                                       /* user data                      */
1540     #endif
1541     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER,   /* style flags */
1542     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1543     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
1544     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1545     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1546     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1547     gx_studio_pixelmap_prompt_create,        /* create function                */
1548     GX_NULL,                                 /* drawing function override      */
1549     GX_NULL,                                 /* event function override        */
1550     {35, 23, 208, 60},                       /* widget size                    */
1551     &artists_screen_vertical_list_2_define,  /* next widget definition         */
1552     GX_NULL,                                 /* no child widgets               */
1553     offsetof(ARTISTS_SCREEN_CONTROL_BLOCK, artists_screen_prompt_2), /* control block */
1554     (void *) &artists_screen_prompt_2_properties /* extended properties        */
1555 };
1556 
1557 GX_CONST GX_STUDIO_WIDGET artists_screen_define =
1558 {
1559     "artists_screen",
1560     GX_TYPE_TEMPLATE,                        /* widget type                    */
1561     GX_ID_NONE,                              /* widget id                      */
1562     #if defined(GX_WIDGET_USER_DATA)
1563     0,                                       /* user data                      */
1564     #endif
1565     GX_STYLE_BORDER_THIN,                    /* style flags                    */
1566     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1567     sizeof(ARTISTS_SCREEN_CONTROL_BLOCK),    /* control block size             */
1568     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1569     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1570     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1571     gx_studio_template_create,               /* create function                */
1572     GX_NULL,                                 /* drawing function override      */
1573     GX_NULL,                                 /* event function override        */
1574     {0, 0, 239, 319},                        /* widget size                    */
1575     GX_NULL,                                 /* next widget                    */
1576     &artists_screen_prompt_2_define,         /* child widget                   */
1577     0,                                       /* control block                  */
1578     (void *) &artists_screen_properties      /* extended properties            */
1579 };
1580 GX_TEMPLATE_PROPERTIES albums_screen_properties =
1581 {
1582     &menu_screen_template_define,            /* base info                      */
1583     gx_studio_window_create,                 /* base create function           */
1584     {0, 0, 239, 319}                         /* widget size                    */
1585 };
1586 GX_PIXELMAP_PROMPT_PROPERTIES albums_screen_prompt_1_properties =
1587 {
1588     GX_STRING_ID_STRING_39,                  /* string id                      */
1589     GX_FONT_ID_MENUFONT,                     /* font id                        */
1590     GX_COLOR_ID_TEXT,                        /* normal text color              */
1591     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1592     GX_COLOR_ID_TEXT,                        /* disabled text color            */
1593     GX_PIXELMAP_ID_TFIELD_LEFT_SMALL,        /* left pixelmap id               */
1594     GX_PIXELMAP_ID_TFIELD_FILL_SMALL,        /* fill pixelmap id               */
1595     GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL,       /* right pixelmap id              */
1596     0,                                       /* selected left pixelmap id      */
1597     0,                                       /* selected fill pixelmap id      */
1598     0                                        /* selected right pixelmap id     */
1599 };
1600 GX_VERTICAL_LIST_PROPERTIES albums_screen_vertical_list_1_properties =
1601 {
1602     0,                                       /* wallpaper id                   */
1603     GX_NULL,                                 /* callback function              */
1604     10                                       /* total rows                     */
1605 };
1606 GX_TEXT_BUTTON_PROPERTIES albums_screen_button_7_properties =
1607 {
1608     GX_STRING_ID_STRING_54,                  /* string id                      */
1609     GX_FONT_ID_BUTTON,                       /* font id                        */
1610     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1611     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1612     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1613 };
1614 GX_TEXT_BUTTON_PROPERTIES albums_screen_button_8_properties =
1615 {
1616     GX_STRING_ID_STRING_55,                  /* string id                      */
1617     GX_FONT_ID_BUTTON,                       /* font id                        */
1618     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1619     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1620     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1621 };
1622 GX_TEXT_BUTTON_PROPERTIES albums_screen_button_9_properties =
1623 {
1624     GX_STRING_ID_STRING_56,                  /* string id                      */
1625     GX_FONT_ID_BUTTON,                       /* font id                        */
1626     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1627     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1628     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1629 };
1630 GX_TEXT_BUTTON_PROPERTIES albums_screen_button_10_properties =
1631 {
1632     GX_STRING_ID_STRING_58,                  /* string id                      */
1633     GX_FONT_ID_BUTTON,                       /* font id                        */
1634     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1635     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1636     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1637 };
1638 GX_TEXT_BUTTON_PROPERTIES albums_screen_button_11_properties =
1639 {
1640     GX_STRING_ID_STRING_59,                  /* string id                      */
1641     GX_FONT_ID_BUTTON,                       /* font id                        */
1642     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1643     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1644     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1645 };
1646 GX_TEXT_BUTTON_PROPERTIES albums_screen_button_12_properties =
1647 {
1648     GX_STRING_ID_STRING_60,                  /* string id                      */
1649     GX_FONT_ID_BUTTON,                       /* font id                        */
1650     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1651     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1652     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1653 };
1654 GX_TEXT_BUTTON_PROPERTIES albums_screen_button_13_properties =
1655 {
1656     GX_STRING_ID_STRING_61,                  /* string id                      */
1657     GX_FONT_ID_BUTTON,                       /* font id                        */
1658     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1659     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1660     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1661 };
1662 
1663 GX_CONST GX_STUDIO_WIDGET albums_screen_button_13_define =
1664 {
1665     "button_13",
1666     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1667     GX_ID_NONE,                              /* widget id                      */
1668     #if defined(GX_WIDGET_USER_DATA)
1669     0,                                       /* user data                      */
1670     #endif
1671     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1672     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1673     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1674     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1675     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1676     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1677     gx_studio_text_button_create,            /* create function                */
1678     GX_NULL,                                 /* drawing function override      */
1679     GX_NULL,                                 /* event function override        */
1680     {21, 229, 223, 252},                     /* widget size                    */
1681     GX_NULL,                                 /* no next widget                 */
1682     GX_NULL,                                 /* no child widgets               */
1683     0,                                       /* runtime control block          */
1684     (void *) &albums_screen_button_13_properties /* extended properties        */
1685 };
1686 
1687 GX_CONST GX_STUDIO_WIDGET albums_screen_button_12_define =
1688 {
1689     "button_12",
1690     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1691     GX_ID_NONE,                              /* widget id                      */
1692     #if defined(GX_WIDGET_USER_DATA)
1693     0,                                       /* user data                      */
1694     #endif
1695     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1696     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1697     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1698     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1699     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1700     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1701     gx_studio_text_button_create,            /* create function                */
1702     GX_NULL,                                 /* drawing function override      */
1703     GX_NULL,                                 /* event function override        */
1704     {21, 205, 223, 228},                     /* widget size                    */
1705     &albums_screen_button_13_define,         /* next widget definition         */
1706     GX_NULL,                                 /* no child widgets               */
1707     0,                                       /* runtime control block          */
1708     (void *) &albums_screen_button_12_properties /* extended properties        */
1709 };
1710 
1711 GX_CONST GX_STUDIO_WIDGET albums_screen_button_11_define =
1712 {
1713     "button_11",
1714     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1715     GX_ID_NONE,                              /* widget id                      */
1716     #if defined(GX_WIDGET_USER_DATA)
1717     0,                                       /* user data                      */
1718     #endif
1719     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1720     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1721     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1722     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1723     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1724     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1725     gx_studio_text_button_create,            /* create function                */
1726     GX_NULL,                                 /* drawing function override      */
1727     GX_NULL,                                 /* event function override        */
1728     {21, 181, 223, 204},                     /* widget size                    */
1729     &albums_screen_button_12_define,         /* next widget definition         */
1730     GX_NULL,                                 /* no child widgets               */
1731     0,                                       /* runtime control block          */
1732     (void *) &albums_screen_button_11_properties /* extended properties        */
1733 };
1734 
1735 GX_CONST GX_STUDIO_WIDGET albums_screen_button_10_define =
1736 {
1737     "button_10",
1738     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1739     GX_ID_NONE,                              /* widget id                      */
1740     #if defined(GX_WIDGET_USER_DATA)
1741     0,                                       /* user data                      */
1742     #endif
1743     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1744     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1745     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1746     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1747     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1748     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1749     gx_studio_text_button_create,            /* create function                */
1750     GX_NULL,                                 /* drawing function override      */
1751     GX_NULL,                                 /* event function override        */
1752     {21, 157, 223, 180},                     /* widget size                    */
1753     &albums_screen_button_11_define,         /* next widget definition         */
1754     GX_NULL,                                 /* no child widgets               */
1755     0,                                       /* runtime control block          */
1756     (void *) &albums_screen_button_10_properties /* extended properties        */
1757 };
1758 
1759 GX_CONST GX_STUDIO_WIDGET albums_screen_button_9_define =
1760 {
1761     "button_9",
1762     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1763     GX_ID_NONE,                              /* widget id                      */
1764     #if defined(GX_WIDGET_USER_DATA)
1765     0,                                       /* user data                      */
1766     #endif
1767     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1768     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1769     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1770     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1771     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1772     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1773     gx_studio_text_button_create,            /* create function                */
1774     GX_NULL,                                 /* drawing function override      */
1775     GX_NULL,                                 /* event function override        */
1776     {21, 133, 223, 156},                     /* widget size                    */
1777     &albums_screen_button_10_define,         /* next widget definition         */
1778     GX_NULL,                                 /* no child widgets               */
1779     0,                                       /* runtime control block          */
1780     (void *) &albums_screen_button_9_properties /* extended properties         */
1781 };
1782 
1783 GX_CONST GX_STUDIO_WIDGET albums_screen_button_8_define =
1784 {
1785     "button_8",
1786     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1787     GX_ID_NONE,                              /* widget id                      */
1788     #if defined(GX_WIDGET_USER_DATA)
1789     0,                                       /* user data                      */
1790     #endif
1791     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1792     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1793     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1794     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1795     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1796     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1797     gx_studio_text_button_create,            /* create function                */
1798     GX_NULL,                                 /* drawing function override      */
1799     GX_NULL,                                 /* event function override        */
1800     {21, 109, 223, 132},                     /* widget size                    */
1801     &albums_screen_button_9_define,          /* next widget definition         */
1802     GX_NULL,                                 /* no child widgets               */
1803     0,                                       /* runtime control block          */
1804     (void *) &albums_screen_button_8_properties /* extended properties         */
1805 };
1806 
1807 GX_CONST GX_STUDIO_WIDGET albums_screen_button_7_define =
1808 {
1809     "button_7",
1810     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1811     GX_ID_NONE,                              /* widget id                      */
1812     #if defined(GX_WIDGET_USER_DATA)
1813     0,                                       /* user data                      */
1814     #endif
1815     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1816     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1817     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1818     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1819     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1820     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1821     gx_studio_text_button_create,            /* create function                */
1822     GX_NULL,                                 /* drawing function override      */
1823     GX_NULL,                                 /* event function override        */
1824     {21, 85, 223, 108},                      /* widget size                    */
1825     &albums_screen_button_8_define,          /* next widget definition         */
1826     GX_NULL,                                 /* no child widgets               */
1827     0,                                       /* runtime control block          */
1828     (void *) &albums_screen_button_7_properties /* extended properties         */
1829 };
1830 
1831 GX_CONST GX_STUDIO_WIDGET albums_screen_vertical_list_1_define =
1832 {
1833     "vertical_list_1",
1834     GX_TYPE_VERTICAL_LIST,                   /* widget type                    */
1835     GX_ID_NONE,                              /* widget id                      */
1836     #if defined(GX_WIDGET_USER_DATA)
1837     0,                                       /* user data                      */
1838     #endif
1839     GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags      */
1840     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1841     sizeof(GX_VERTICAL_LIST),                /* control block size             */
1842     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1843     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
1844     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1845     gx_studio_vertical_list_create,          /* create function                */
1846     GX_NULL,                                 /* drawing function override      */
1847     GX_NULL,                                 /* event function override        */
1848     {20, 84, 224, 254},                      /* widget size                    */
1849     GX_NULL,                                 /* no next widget                 */
1850     &albums_screen_button_7_define,          /* child widget definition        */
1851     0,                                       /* runtime control block          */
1852     (void *) &albums_screen_vertical_list_1_properties /* extended properties  */
1853 };
1854 
1855 GX_CONST GX_STUDIO_WIDGET albums_screen_prompt_1_define =
1856 {
1857     "prompt_1",
1858     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
1859     GX_ID_NONE,                              /* widget id                      */
1860     #if defined(GX_WIDGET_USER_DATA)
1861     0,                                       /* user data                      */
1862     #endif
1863     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
1864     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1865     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
1866     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
1867     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1868     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
1869     gx_studio_pixelmap_prompt_create,        /* create function                */
1870     GX_NULL,                                 /* drawing function override      */
1871     GX_NULL,                                 /* event function override        */
1872     {35, 23, 208, 60},                       /* widget size                    */
1873     &albums_screen_vertical_list_1_define,   /* next widget definition         */
1874     GX_NULL,                                 /* no child widgets               */
1875     0,                                       /* runtime control block          */
1876     (void *) &albums_screen_prompt_1_properties /* extended properties         */
1877 };
1878 
1879 GX_CONST GX_STUDIO_WIDGET albums_screen_define =
1880 {
1881     "albums_screen",
1882     GX_TYPE_TEMPLATE,                        /* widget type                    */
1883     GX_ID_NONE,                              /* widget id                      */
1884     #if defined(GX_WIDGET_USER_DATA)
1885     0,                                       /* user data                      */
1886     #endif
1887     GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags      */
1888     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1889     sizeof(ALBUMS_SCREEN_CONTROL_BLOCK),     /* control block size             */
1890     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
1891     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
1892     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
1893     gx_studio_template_create,               /* create function                */
1894     GX_NULL,                                 /* drawing function override      */
1895     GX_NULL,                                 /* event function override        */
1896     {0, 0, 239, 319},                        /* widget size                    */
1897     GX_NULL,                                 /* next widget                    */
1898     &albums_screen_prompt_1_define,          /* child widget                   */
1899     0,                                       /* control block                  */
1900     (void *) &albums_screen_properties       /* extended properties            */
1901 };
1902 GX_TEMPLATE_PROPERTIES songs_screen_properties =
1903 {
1904     &menu_screen_template_define,            /* base info                      */
1905     gx_studio_window_create,                 /* base create function           */
1906     {0, 0, 239, 319}                         /* widget size                    */
1907 };
1908 GX_PIXELMAP_PROMPT_PROPERTIES songs_screen_prompt_properties =
1909 {
1910     GX_STRING_ID_STRING_43,                  /* string id                      */
1911     GX_FONT_ID_MENUFONT,                     /* font id                        */
1912     GX_COLOR_ID_TEXT,                        /* normal text color              */
1913     GX_COLOR_ID_SELECTED_TEXT,               /* selected text color            */
1914     GX_COLOR_ID_TEXT,                        /* disabled text color            */
1915     GX_PIXELMAP_ID_TFIELD_LEFT_SMALL,        /* left pixelmap id               */
1916     GX_PIXELMAP_ID_TFIELD_FILL_SMALL,        /* fill pixelmap id               */
1917     GX_PIXELMAP_ID_TFIELD_RIGHT_SMALL,       /* right pixelmap id              */
1918     0,                                       /* selected left pixelmap id      */
1919     0,                                       /* selected fill pixelmap id      */
1920     0                                        /* selected right pixelmap id     */
1921 };
1922 GX_VERTICAL_LIST_PROPERTIES songs_screen_vertical_list_properties =
1923 {
1924     0,                                       /* wallpaper id                   */
1925     GX_NULL,                                 /* callback function              */
1926     10                                       /* total rows                     */
1927 };
1928 GX_TEXT_BUTTON_PROPERTIES songs_screen_button_properties =
1929 {
1930     GX_STRING_ID_STRING_47,                  /* string id                      */
1931     GX_FONT_ID_BUTTON,                       /* font id                        */
1932     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1933     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1934     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1935 };
1936 GX_TEXT_BUTTON_PROPERTIES songs_screen_button_1_properties =
1937 {
1938     GX_STRING_ID_STRING_48,                  /* string id                      */
1939     GX_FONT_ID_BUTTON,                       /* font id                        */
1940     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1941     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1942     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1943 };
1944 GX_TEXT_BUTTON_PROPERTIES songs_screen_button_2_properties =
1945 {
1946     GX_STRING_ID_STRING_49,                  /* string id                      */
1947     GX_FONT_ID_BUTTON,                       /* font id                        */
1948     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1949     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1950     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1951 };
1952 GX_TEXT_BUTTON_PROPERTIES songs_screen_button_3_properties =
1953 {
1954     GX_STRING_ID_STRING_50,                  /* string id                      */
1955     GX_FONT_ID_BUTTON,                       /* font id                        */
1956     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1957     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1958     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1959 };
1960 GX_TEXT_BUTTON_PROPERTIES songs_screen_button_4_properties =
1961 {
1962     GX_STRING_ID_STRING_51,                  /* string id                      */
1963     GX_FONT_ID_BUTTON,                       /* font id                        */
1964     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1965     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1966     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1967 };
1968 GX_TEXT_BUTTON_PROPERTIES songs_screen_button_5_properties =
1969 {
1970     GX_STRING_ID_STRING_52,                  /* string id                      */
1971     GX_FONT_ID_BUTTON,                       /* font id                        */
1972     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1973     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1974     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1975 };
1976 GX_TEXT_BUTTON_PROPERTIES songs_screen_button_6_properties =
1977 {
1978     GX_STRING_ID_STRING_53,                  /* string id                      */
1979     GX_FONT_ID_BUTTON,                       /* font id                        */
1980     GX_COLOR_ID_BTN_TEXT,                    /* normal text color              */
1981     GX_COLOR_ID_BTN_TEXT,                    /* selected text color            */
1982     GX_COLOR_ID_BTN_TEXT                     /* disabled text color            */
1983 };
1984 
1985 GX_CONST GX_STUDIO_WIDGET songs_screen_button_6_define =
1986 {
1987     "button_6",
1988     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
1989     GX_ID_NONE,                              /* widget id                      */
1990     #if defined(GX_WIDGET_USER_DATA)
1991     0,                                       /* user data                      */
1992     #endif
1993     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
1994     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
1995     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
1996     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
1997     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
1998     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
1999     gx_studio_text_button_create,            /* create function                */
2000     GX_NULL,                                 /* drawing function override      */
2001     GX_NULL,                                 /* event function override        */
2002     {21, 229, 223, 252},                     /* widget size                    */
2003     GX_NULL,                                 /* no next widget                 */
2004     GX_NULL,                                 /* no child widgets               */
2005     0,                                       /* runtime control block          */
2006     (void *) &songs_screen_button_6_properties /* extended properties          */
2007 };
2008 
2009 GX_CONST GX_STUDIO_WIDGET songs_screen_button_5_define =
2010 {
2011     "button_5",
2012     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
2013     GX_ID_NONE,                              /* widget id                      */
2014     #if defined(GX_WIDGET_USER_DATA)
2015     0,                                       /* user data                      */
2016     #endif
2017     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
2018     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2019     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
2020     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2021     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2022     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2023     gx_studio_text_button_create,            /* create function                */
2024     GX_NULL,                                 /* drawing function override      */
2025     GX_NULL,                                 /* event function override        */
2026     {21, 205, 223, 228},                     /* widget size                    */
2027     &songs_screen_button_6_define,           /* next widget definition         */
2028     GX_NULL,                                 /* no child widgets               */
2029     0,                                       /* runtime control block          */
2030     (void *) &songs_screen_button_5_properties /* extended properties          */
2031 };
2032 
2033 GX_CONST GX_STUDIO_WIDGET songs_screen_button_4_define =
2034 {
2035     "button_4",
2036     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
2037     GX_ID_NONE,                              /* widget id                      */
2038     #if defined(GX_WIDGET_USER_DATA)
2039     0,                                       /* user data                      */
2040     #endif
2041     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
2042     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2043     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
2044     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2045     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2046     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2047     gx_studio_text_button_create,            /* create function                */
2048     GX_NULL,                                 /* drawing function override      */
2049     GX_NULL,                                 /* event function override        */
2050     {21, 181, 223, 204},                     /* widget size                    */
2051     &songs_screen_button_5_define,           /* next widget definition         */
2052     GX_NULL,                                 /* no child widgets               */
2053     0,                                       /* runtime control block          */
2054     (void *) &songs_screen_button_4_properties /* extended properties          */
2055 };
2056 
2057 GX_CONST GX_STUDIO_WIDGET songs_screen_button_3_define =
2058 {
2059     "button_3",
2060     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
2061     GX_ID_NONE,                              /* widget id                      */
2062     #if defined(GX_WIDGET_USER_DATA)
2063     0,                                       /* user data                      */
2064     #endif
2065     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
2066     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2067     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
2068     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2069     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2070     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2071     gx_studio_text_button_create,            /* create function                */
2072     GX_NULL,                                 /* drawing function override      */
2073     GX_NULL,                                 /* event function override        */
2074     {21, 157, 223, 180},                     /* widget size                    */
2075     &songs_screen_button_4_define,           /* next widget definition         */
2076     GX_NULL,                                 /* no child widgets               */
2077     0,                                       /* runtime control block          */
2078     (void *) &songs_screen_button_3_properties /* extended properties          */
2079 };
2080 
2081 GX_CONST GX_STUDIO_WIDGET songs_screen_button_2_define =
2082 {
2083     "button_2",
2084     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
2085     GX_ID_NONE,                              /* widget id                      */
2086     #if defined(GX_WIDGET_USER_DATA)
2087     0,                                       /* user data                      */
2088     #endif
2089     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
2090     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2091     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
2092     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2093     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2094     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2095     gx_studio_text_button_create,            /* create function                */
2096     GX_NULL,                                 /* drawing function override      */
2097     GX_NULL,                                 /* event function override        */
2098     {21, 133, 223, 156},                     /* widget size                    */
2099     &songs_screen_button_3_define,           /* next widget definition         */
2100     GX_NULL,                                 /* no child widgets               */
2101     0,                                       /* runtime control block          */
2102     (void *) &songs_screen_button_2_properties /* extended properties          */
2103 };
2104 
2105 GX_CONST GX_STUDIO_WIDGET songs_screen_button_1_define =
2106 {
2107     "button_1",
2108     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
2109     GX_ID_NONE,                              /* widget id                      */
2110     #if defined(GX_WIDGET_USER_DATA)
2111     0,                                       /* user data                      */
2112     #endif
2113     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
2114     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2115     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
2116     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2117     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2118     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2119     gx_studio_text_button_create,            /* create function                */
2120     GX_NULL,                                 /* drawing function override      */
2121     GX_NULL,                                 /* event function override        */
2122     {21, 109, 223, 132},                     /* widget size                    */
2123     &songs_screen_button_2_define,           /* next widget definition         */
2124     GX_NULL,                                 /* no child widgets               */
2125     0,                                       /* runtime control block          */
2126     (void *) &songs_screen_button_1_properties /* extended properties          */
2127 };
2128 
2129 GX_CONST GX_STUDIO_WIDGET songs_screen_button_define =
2130 {
2131     "button",
2132     GX_TYPE_TEXT_BUTTON,                     /* widget type                    */
2133     GX_ID_NONE,                              /* widget id                      */
2134     #if defined(GX_WIDGET_USER_DATA)
2135     0,                                       /* user data                      */
2136     #endif
2137     GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_LEFT,   /* style flags */
2138     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2139     sizeof(GX_TEXT_BUTTON),                  /* control block size             */
2140     GX_COLOR_ID_BTN_LOWER,                   /* normal color id                */
2141     GX_COLOR_ID_BTN_UPPER,                   /* selected color id              */
2142     GX_COLOR_ID_BTN_LOWER,                   /* disabled color id              */
2143     gx_studio_text_button_create,            /* create function                */
2144     GX_NULL,                                 /* drawing function override      */
2145     GX_NULL,                                 /* event function override        */
2146     {21, 85, 223, 108},                      /* widget size                    */
2147     &songs_screen_button_1_define,           /* next widget definition         */
2148     GX_NULL,                                 /* no child widgets               */
2149     0,                                       /* runtime control block          */
2150     (void *) &songs_screen_button_properties /* extended properties            */
2151 };
2152 
2153 GX_CONST GX_STUDIO_WIDGET songs_screen_vertical_list_define =
2154 {
2155     "vertical_list",
2156     GX_TYPE_VERTICAL_LIST,                   /* widget type                    */
2157     GX_ID_NONE,                              /* widget id                      */
2158     #if defined(GX_WIDGET_USER_DATA)
2159     0,                                       /* user data                      */
2160     #endif
2161     GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags      */
2162     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2163     sizeof(GX_VERTICAL_LIST),                /* control block size             */
2164     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2165     GX_COLOR_ID_WINDOW_FILL,                 /* selected color id              */
2166     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2167     gx_studio_vertical_list_create,          /* create function                */
2168     GX_NULL,                                 /* drawing function override      */
2169     GX_NULL,                                 /* event function override        */
2170     {20, 84, 224, 254},                      /* widget size                    */
2171     GX_NULL,                                 /* no next widget                 */
2172     &songs_screen_button_define,             /* child widget definition        */
2173     0,                                       /* runtime control block          */
2174     (void *) &songs_screen_vertical_list_properties /* extended properties     */
2175 };
2176 
2177 GX_CONST GX_STUDIO_WIDGET songs_screen_prompt_define =
2178 {
2179     "prompt",
2180     GX_TYPE_PIXELMAP_PROMPT,                 /* widget type                    */
2181     GX_ID_NONE,                              /* widget id                      */
2182     #if defined(GX_WIDGET_USER_DATA)
2183     0,                                       /* user data                      */
2184     #endif
2185     GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED|GX_STYLE_DYNAMICALLY_ALLOCATED|GX_STYLE_TEXT_CENTER,   /* style flags */
2186     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2187     sizeof(GX_PIXELMAP_PROMPT),              /* control block size             */
2188     GX_COLOR_ID_WIDGET_FILL,                 /* normal color id                */
2189     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2190     GX_COLOR_ID_WIDGET_FILL,                 /* disabled color id              */
2191     gx_studio_pixelmap_prompt_create,        /* create function                */
2192     GX_NULL,                                 /* drawing function override      */
2193     GX_NULL,                                 /* event function override        */
2194     {35, 23, 208, 60},                       /* widget size                    */
2195     &songs_screen_vertical_list_define,      /* next widget definition         */
2196     GX_NULL,                                 /* no child widgets               */
2197     0,                                       /* runtime control block          */
2198     (void *) &songs_screen_prompt_properties /* extended properties            */
2199 };
2200 
2201 GX_CONST GX_STUDIO_WIDGET songs_screen_define =
2202 {
2203     "songs_screen",
2204     GX_TYPE_TEMPLATE,                        /* widget type                    */
2205     GX_ID_NONE,                              /* widget id                      */
2206     #if defined(GX_WIDGET_USER_DATA)
2207     0,                                       /* user data                      */
2208     #endif
2209     GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags      */
2210     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2211     sizeof(SONGS_SCREEN_CONTROL_BLOCK),      /* control block size             */
2212     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2213     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2214     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2215     gx_studio_template_create,               /* create function                */
2216     GX_NULL,                                 /* drawing function override      */
2217     GX_NULL,                                 /* event function override        */
2218     {0, 0, 239, 319},                        /* widget size                    */
2219     GX_NULL,                                 /* next widget                    */
2220     &songs_screen_prompt_define,             /* child widget                   */
2221     0,                                       /* control block                  */
2222     (void *) &songs_screen_properties        /* extended properties            */
2223 };
2224 GX_TEMPLATE_PROPERTIES second_level_derived_screen_properties =
2225 {
2226     &second_level_template_define,           /* base info                      */
2227     gx_studio_template_create,               /* base create function           */
2228     {0, 0, 239, 319}                         /* widget size                    */
2229 };
2230 GX_WINDOW_PROPERTIES second_level_derived_screen_add_derived_child_properties =
2231 {
2232     0                                        /* wallpaper pixelmap id          */
2233 };
2234 
2235 GX_CONST GX_STUDIO_WIDGET second_level_derived_screen_add_derived_child_define =
2236 {
2237     "add_derived_child",
2238     GX_TYPE_WINDOW,                          /* widget type                    */
2239     GX_ID_NONE,                              /* widget id                      */
2240     #if defined(GX_WIDGET_USER_DATA)
2241     0,                                       /* user data                      */
2242     #endif
2243     GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags      */
2244     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2245     sizeof(GX_WINDOW),                       /* control block size             */
2246     GX_COLOR_ID_WINDOW_BORDER,               /* normal color id                */
2247     GX_COLOR_ID_WINDOW_BORDER,               /* selected color id              */
2248     GX_COLOR_ID_WINDOW_BORDER,               /* disabled color id              */
2249     gx_studio_window_create,                 /* create function                */
2250     GX_NULL,                                 /* drawing function override      */
2251     GX_NULL,                                 /* event function override        */
2252     {62, 192, 181, 252},                     /* widget size                    */
2253     GX_NULL,                                 /* no next widget                 */
2254     GX_NULL,                                 /* no child widgets               */
2255     0,                                       /* runtime control block          */
2256     (void *) &second_level_derived_screen_add_derived_child_properties /* extended properties */
2257 };
2258 
2259 GX_CONST GX_STUDIO_WIDGET second_level_derived_screen_define =
2260 {
2261     "second_level_derived_screen",
2262     GX_TYPE_TEMPLATE,                        /* widget type                    */
2263     GX_ID_NONE,                              /* widget id                      */
2264     #if defined(GX_WIDGET_USER_DATA)
2265     0,                                       /* user data                      */
2266     #endif
2267     GX_STYLE_BORDER_THIN|GX_STYLE_DYNAMICALLY_ALLOCATED,   /* style flags      */
2268     GX_STATUS_ACCEPTS_FOCUS,                 /* status flags                   */
2269     sizeof(SECOND_LEVEL_DERIVED_SCREEN_CONTROL_BLOCK), /* control block size   */
2270     GX_COLOR_ID_WINDOW_FILL,                 /* normal color id                */
2271     GX_COLOR_ID_SELECTED_FILL,               /* selected color id              */
2272     GX_COLOR_ID_WINDOW_FILL,                 /* disabled color id              */
2273     gx_studio_template_create,               /* create function                */
2274     GX_NULL,                                 /* drawing function override      */
2275     GX_NULL,                                 /* event function override        */
2276     {0, 0, 239, 319},                        /* widget size                    */
2277     GX_NULL,                                 /* next widget                    */
2278     &second_level_derived_screen_add_derived_child_define, /* child widget     */
2279     0,                                       /* control block                  */
2280     (void *) &second_level_derived_screen_properties /* extended properties    */
2281 };
2282 GX_CONST GX_STUDIO_WIDGET_ENTRY dynamic_menu_widget_table[] =
2283 {
2284     { &second_level_derived_screen_define, GX_NULL },
2285     { &playlist_screen_define, GX_NULL },
2286     { &genre_screen_define, (GX_WIDGET *) &genre_screen },
2287     { &artists_screen_define, (GX_WIDGET *) &artists_screen },
2288     { &albums_screen_define, GX_NULL },
2289     { &songs_screen_define, GX_NULL },
2290     { &top_menu_define, (GX_WIDGET *) &top_menu },
2291     {GX_NULL, GX_NULL}
2292 };
2293 
gx_studio_nested_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)2294 static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
2295 {
2296     UINT status = GX_SUCCESS;
2297     GX_WIDGET *widget = GX_NULL;
2298     GX_VALUE   list_count = 0;
2299     GX_VALUE   list_total_count = 0;
2300 
2301     if(parent && (parent->gx_widget_type == GX_TYPE_MENU))
2302     {
2303         list_total_count = ((GX_MENU *)parent)->gx_menu_list_total_count;
2304     }
2305 
2306     while(definition && status == GX_SUCCESS)
2307     {
2308         if (definition->create_function)
2309         {
2310             if (definition->style & GX_STYLE_DYNAMICALLY_ALLOCATED)
2311             {
2312                 status = gx_widget_allocate(&widget, definition->control_block_size);
2313                 if (status != GX_SUCCESS)
2314                 {
2315                     return GX_NULL;
2316                 }
2317             }
2318             else
2319             {
2320                 if (control == GX_NULL)
2321                 {
2322                     return GX_NULL;
2323                 }
2324                 widget = (GX_WIDGET *) (control + definition->control_block_offset);
2325             }
2326 
2327             status = definition->create_function(definition, widget, parent);
2328 
2329             if(list_count < list_total_count)
2330             {
2331                 gx_menu_insert((GX_MENU *)parent, widget);
2332                 ((GX_MENU *)parent)->gx_menu_list_total_count--;
2333                 list_count++;
2334             }
2335 
2336             if (status == GX_SUCCESS)
2337             {
2338                 if (definition->widget_type != GX_TYPE_TEMPLATE)
2339                 {
2340 #if defined(GUIX_5_4_0_COMPATIBILITY)
2341                     gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id);
2342 #else
2343                     gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id, definition->disabled_fill_color_id);
2344 #endif
2345                 }
2346 
2347                 if (!(definition->status & GX_STATUS_ACCEPTS_FOCUS))
2348                 {
2349                     gx_widget_status_remove(widget, GX_STATUS_ACCEPTS_FOCUS);
2350                 }
2351 
2352                 if (definition->draw_function)
2353                 {
2354                     gx_widget_draw_set(widget, definition->draw_function);
2355                 }
2356                 if (definition->event_function)
2357                 {
2358                     gx_widget_event_process_set(widget, definition->event_function);
2359                 }
2360 
2361                 #if defined(GX_WIDGET_USER_DATA)
2362                 widget->gx_widget_user_data = definition->user_data;
2363                 #endif
2364 
2365                 if (definition->child_widget)
2366                 {
2367                     gx_studio_nested_widget_create(control, definition->child_widget, widget);
2368                 }
2369             }
2370             definition = definition->next_widget;
2371         }
2372     }
2373     return widget;
2374 }
2375 
gx_studio_widget_create(GX_BYTE * control,GX_CONST GX_STUDIO_WIDGET * definition,GX_WIDGET * parent)2376 GX_WIDGET *gx_studio_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent)
2377 {
2378     GX_WIDGET *widget;
2379     widget = gx_studio_nested_widget_create(control, definition, GX_NULL);
2380 
2381     if (parent && widget)
2382     {
2383         gx_widget_attach(parent, widget);
2384     }
2385     return widget;
2386 }
2387 
gx_studio_named_widget_create(char * name,GX_WIDGET * parent,GX_WIDGET ** new_widget)2388 UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget)
2389 {
2390     UINT status = GX_FAILURE;
2391     GX_CONST GX_STUDIO_WIDGET_ENTRY *entry = dynamic_menu_widget_table;
2392     GX_WIDGET *widget = GX_NULL;
2393 
2394     while(entry->widget_information)
2395     {
2396         if (!strcmp(name, entry->widget_information->widget_name))
2397         {
2398             widget = gx_studio_widget_create((GX_BYTE *) entry->widget, entry->widget_information, parent);
2399             if (widget)
2400             {
2401                 status = GX_SUCCESS;
2402             }
2403             break;
2404         }
2405         entry++;
2406     }
2407 
2408     if (new_widget)
2409     {
2410         *new_widget = widget;
2411     }
2412     return status;
2413 }
2414 
2415 
gx_studio_display_configure(USHORT display,UINT (* driver)(GX_DISPLAY *),GX_UBYTE language,USHORT theme,GX_WINDOW_ROOT ** return_root)2416 UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *),
2417     GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root)
2418 {
2419     GX_CONST GX_THEME *theme_ptr;
2420     GX_RECTANGLE size;
2421 
2422     GX_STUDIO_DISPLAY_INFO *display_info = &dynamic_menu_display_table[display];
2423 
2424 
2425 /* create the requested display                                                */
2426 
2427     gx_display_create(display_info->display,
2428                       display_info->name,
2429                       driver,
2430                       (GX_VALUE) display_info->x_resolution,
2431                       (GX_VALUE) display_info->y_resolution);
2432 
2433 
2434 /* install the request theme                                                   */
2435 
2436     if(display_info->theme_table)
2437     {
2438         theme_ptr = display_info->theme_table[theme];
2439         if(theme_ptr)
2440         {
2441             gx_display_color_table_set(display_info->display, theme_ptr->theme_color_table, theme_ptr->theme_color_table_size);
2442 
2443 /* install the color palette if required                                       */
2444             if (display_info->display->gx_display_driver_palette_set &&
2445                 theme_ptr->theme_palette != NULL)
2446             {
2447                 display_info->display->gx_display_driver_palette_set(display_info->display, theme_ptr->theme_palette, theme_ptr->theme_palette_size);
2448             }
2449 
2450             gx_display_font_table_set(display_info->display, theme_ptr->theme_font_table, theme_ptr->theme_font_table_size);
2451             gx_display_pixelmap_table_set(display_info->display, theme_ptr->theme_pixelmap_table, theme_ptr->theme_pixelmap_table_size);
2452             gx_system_scroll_appearance_set(theme_ptr->theme_vertical_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_vertical_scrollbar_appearance);
2453             gx_system_scroll_appearance_set(theme_ptr->theme_horizontal_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_horizontal_scrollbar_appearance);
2454         }
2455     }
2456 
2457 /* Install the language table.                                                 */
2458 
2459     if(display_info->language_table)
2460     {
2461         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);
2462         gx_display_active_language_set(display_info->display, language);
2463     }
2464 
2465 /* Set screen rotation angle.                                                  */
2466 
2467     display_info->display->gx_display_rotation_angle = display_info->rotation_angle;
2468 
2469 /* create the canvas for this display                                          */
2470 
2471     gx_canvas_create(display_info->canvas,
2472                      display_info->canvas_name,
2473                      display_info->display,
2474                      GX_CANVAS_MANAGED | GX_CANVAS_VISIBLE,
2475                      display_info->x_resolution,
2476                      display_info->y_resolution,
2477                      display_info->canvas_memory,
2478                      display_info->canvas_memory_size);
2479 
2480 /* Create the root window for this canvas                                      */
2481 
2482     gx_utility_rectangle_define(&size,
2483                                 0, 0,
2484                                 (GX_VALUE) (display_info->x_resolution - 1),
2485                                 (GX_VALUE) (display_info->y_resolution - 1));
2486 
2487     gx_window_root_create(display_info->root_window,
2488                           display_info->name,
2489                           display_info->canvas, GX_STYLE_NONE, 0, &size);
2490     if (return_root)
2491     {
2492         *return_root = display_info->root_window;
2493     }
2494     return GX_SUCCESS;
2495 }
2496 #undef GUIX_STUDIO_GENERATED_FILE
2497