/*******************************************************************************/ /* This file is auto-generated by Azure RTOS GUIX Studio. Do not edit this */ /* file by hand. Modifications to this file should only be made by running */ /* the Azure RTOS GUIX Studio application and re-generating the application */ /* specification file(s). For more information please refer to the Azure RTOS */ /* GUIX Studio User Guide, or visit our web site at azure.com/rtos */ /* */ /* GUIX Studio Revision 6.2.0.1 */ /* Date (dd.mm.yyyy): 31.10.2022 Time (hh:mm): 14:09 */ /*******************************************************************************/ #define GUIX_STUDIO_GENERATED_FILE #include #include "demo_display_resolution_MAIN_DISPLAY_resources.h" #include "demo_display_resolution_SECONDARY_resources.h" #include "demo_display_resolution_specifications.h" static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent); MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK MAIN_DISPLAY_main_window; SECONDARY_WINDOW_CONTROL_BLOCK SECONDARY_window; GX_DISPLAY MAIN_DISPLAY_control_block; GX_WINDOW_ROOT MAIN_DISPLAY_root_window; GX_CANVAS MAIN_DISPLAY_canvas_control_block; ULONG MAIN_DISPLAY_canvas_memory[153360]; GX_DISPLAY SECONDARY_control_block; GX_WINDOW_ROOT SECONDARY_root_window; GX_CANVAS SECONDARY_canvas_control_block; ULONG SECONDARY_canvas_memory[76920]; extern GX_CONST GX_THEME *MAIN_DISPLAY_theme_table[]; extern GX_CONST GX_STRING *MAIN_DISPLAY_language_table[]; extern GX_CONST GX_THEME *SECONDARY_theme_table[]; extern GX_CONST GX_STRING *SECONDARY_language_table[]; GX_STUDIO_DISPLAY_INFO demo_display_resolution_display_table[2] = { { "MAIN_DISPLAY", "MAIN_DISPLAY_canvas", MAIN_DISPLAY_theme_table, MAIN_DISPLAY_language_table, MAIN_DISPLAY_THEME_TABLE_SIZE, MAIN_DISPLAY_LANGUAGE_TABLE_SIZE, MAIN_DISPLAY_STRING_TABLE_SIZE, 639, /* x resolution */ 480, /* y resolution */ &MAIN_DISPLAY_control_block, &MAIN_DISPLAY_canvas_control_block, &MAIN_DISPLAY_root_window, MAIN_DISPLAY_canvas_memory, /* canvas memory area */ 613440, /* canvas memory size in bytes */ 0 /* rotation angle */ }, { "SECONDARY", "SECONDARY_canvas", SECONDARY_theme_table, SECONDARY_language_table, SECONDARY_THEME_TABLE_SIZE, SECONDARY_LANGUAGE_TABLE_SIZE, SECONDARY_STRING_TABLE_SIZE, 641, /* x resolution */ 480, /* y resolution */ &SECONDARY_control_block, &SECONDARY_canvas_control_block, &SECONDARY_root_window, SECONDARY_canvas_memory, /* canvas memory area */ 307680, /* canvas memory size in bytes */ 0 /* rotation angle */ } }; UINT gx_studio_text_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_TEXT_BUTTON *button = (GX_TEXT_BUTTON *) control_block; GX_TEXT_BUTTON_PROPERTIES *props = (GX_TEXT_BUTTON_PROPERTIES *) info->properties; status = gx_text_button_create(button, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { gx_text_button_font_set(button, props->font_id); #if defined(GUIX_5_4_0_COMPATIBILITY) gx_text_button_text_color_set(button, props->normal_text_color_id, props->selected_text_color_id); #else gx_text_button_text_color_set(button, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id); #endif } return status; } UINT gx_studio_icon_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_ICON_BUTTON *button = (GX_ICON_BUTTON *) control_block; GX_ICON_BUTTON_PROPERTIES *props = (GX_ICON_BUTTON_PROPERTIES *) info->properties; status = gx_icon_button_create(button, info->widget_name, parent, props->pixelmap_id, info->style, info->widget_id, &info->size); return status; } UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_PROMPT *prompt = (GX_PROMPT *) control_block; GX_PROMPT_PROPERTIES *props = (GX_PROMPT_PROPERTIES *) info->properties; status = gx_prompt_create(prompt, info->widget_name, parent, props->string_id, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { gx_prompt_font_set(prompt, props->font_id); #if defined(GUIX_5_4_0_COMPATIBILITY) gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id); #else gx_prompt_text_color_set(prompt, props->normal_text_color_id, props->selected_text_color_id, props->disabled_text_color_id); #endif } return status; } UINT gx_studio_window_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_WINDOW *window = (GX_WINDOW *) control_block; GX_WINDOW_PROPERTIES *props = (GX_WINDOW_PROPERTIES *) info->properties; status = gx_window_create(window, info->widget_name, parent, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { if (props->wallpaper_id) { gx_window_wallpaper_set(window, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER); } } return status; } UINT gx_studio_vertical_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_VERTICAL_LIST *list = (GX_VERTICAL_LIST *) control_block; GX_VERTICAL_LIST_PROPERTIES *props = (GX_VERTICAL_LIST_PROPERTIES *) info->properties; status = gx_vertical_list_create(list, info->widget_name, parent, props->total_rows, props->callback, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { if (props->wallpaper_id) { gx_window_wallpaper_set((GX_WINDOW *) list, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER); } } return status; } UINT gx_studio_horizontal_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_HORIZONTAL_LIST *list = (GX_HORIZONTAL_LIST *) control_block; GX_HORIZONTAL_LIST_PROPERTIES *props = (GX_HORIZONTAL_LIST_PROPERTIES *) info->properties; status = gx_horizontal_list_create(list, info->widget_name, parent, props->total_rows, props->callback, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { if (props->wallpaper_id) { gx_window_wallpaper_set((GX_WINDOW *) list, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER); } } return status; } UINT gx_studio_drop_list_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_DROP_LIST *list = (GX_DROP_LIST *) control_block; GX_DROP_LIST_PROPERTIES *props = (GX_DROP_LIST_PROPERTIES *) info->properties; status = gx_drop_list_create(list, info->widget_name, parent, props->total_rows, props->open_height, props->callback, info->style, info->widget_id, &info->size); if (status == GX_SUCCESS) { if (props->pixelmap_id) { gx_drop_list_pixelmap_set(list, props->pixelmap_id); } if (props->wallpaper_id) { gx_window_wallpaper_set((GX_WINDOW *)&list->gx_drop_list_popup.gx_popup_list_list, props->wallpaper_id, info->style & GX_STYLE_TILE_WALLPAPER); } } return status; } UINT gx_studio_horizontal_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_SCROLLBAR *scroll = (GX_SCROLLBAR *) control_block; GX_SCROLLBAR_APPEARANCE *appearance = (GX_SCROLLBAR_APPEARANCE *) info->properties; status = gx_horizontal_scrollbar_create(scroll, info->widget_name, parent, appearance, info->style); return status; } UINT gx_studio_vertical_scrollbar_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent) { UINT status; GX_SCROLLBAR *scroll = (GX_SCROLLBAR *) control_block; GX_SCROLLBAR_APPEARANCE *appearance = (GX_SCROLLBAR_APPEARANCE *) info->properties; status = gx_vertical_scrollbar_create(scroll, info->widget_name, parent, appearance, info->style); return status; } GX_WINDOW_PROPERTIES MAIN_DISPLAY_main_window_properties = { GX_PIXELMAP_ID_MAIN_DISPLAY_FISH /* wallpaper pixelmap id */ }; GX_WINDOW_PROPERTIES MAIN_DISPLAY_main_window_window_5_properties = { 0 /* wallpaper pixelmap id */ }; GX_WINDOW_PROPERTIES MAIN_DISPLAY_main_window_window_6_properties = { 0 /* wallpaper pixelmap id */ }; GX_WINDOW_PROPERTIES MAIN_DISPLAY_main_window_window_8_properties = { 0 /* wallpaper pixelmap id */ }; GX_WINDOW_PROPERTIES MAIN_DISPLAY_main_window_scroll_frame_1_properties = { 0 /* wallpaper pixelmap id */ }; GX_WINDOW_PROPERTIES MAIN_DISPLAY_main_window_window_4_properties = { GX_PIXELMAP_ID_MAIN_DISPLAY_RED_APPLE /* wallpaper pixelmap id */ }; GX_SCROLLBAR_APPEARANCE MAIN_DISPLAY_main_window_hscroll_1_properties = { 20, /* scroll width */ 10, /* thumb width */ 2, /* thumb travel min */ 2, /* thumb travel max */ 4, /* thumb border style */ 0, /* scroll fill pixelmap */ 0, /* scroll thumb pixelmap */ 0, /* scroll up pixelmap */ 0, /* scroll down pixelmap */ GX_COLOR_ID_SCROLL_BUTTON, /* scroll thumb color */ GX_COLOR_ID_SCROLL_BUTTON, /* scroll thumb border color */ GX_COLOR_ID_BTN_UPPER, /* scroll button color */ }; GX_SCROLLBAR_APPEARANCE MAIN_DISPLAY_main_window_vertical_scroll_1_properties = { 20, /* scroll width */ 12, /* thumb width */ 20, /* thumb travel min */ 20, /* thumb travel max */ 4, /* thumb border style */ 0, /* scroll fill pixelmap */ 0, /* scroll thumb pixelmap */ 0, /* scroll up pixelmap */ 0, /* scroll down pixelmap */ GX_COLOR_ID_SCROLL_BUTTON, /* scroll thumb color */ GX_COLOR_ID_SCROLL_BUTTON, /* scroll thumb border color */ GX_COLOR_ID_MAIN_DISPLAY_ORANGE, /* scroll button color */ }; GX_VERTICAL_LIST_PROPERTIES MAIN_DISPLAY_main_window_vertical_list_properties = { 0, /* wallpaper id */ GX_NULL, /* callback function */ 4 /* total rows */ }; GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_main_window_button_1_properties = { GX_STRING_ID_MAIN_DISPLAY_STRING_19, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT /* disabled text color */ }; GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_main_window_button_2_properties = { GX_STRING_ID_MAIN_DISPLAY_STRING_20, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT /* disabled text color */ }; GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_main_window_button_3_properties = { GX_STRING_ID_MAIN_DISPLAY_STRING_21, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT /* disabled text color */ }; GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_main_window_button_4_properties = { GX_STRING_ID_MAIN_DISPLAY_STRING_22, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT /* disabled text color */ }; GX_PROMPT_PROPERTIES MAIN_DISPLAY_main_window_nested_label_1_properties = { GX_STRING_ID_MAIN_DISPLAY_STRING_16, /* string id */ GX_FONT_ID_PROMPT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT /* disabled text color */ }; GX_PROMPT_PROPERTIES MAIN_DISPLAY_main_window_frame_label_1_properties = { GX_STRING_ID_MAIN_DISPLAY_STRING_17, /* string id */ GX_FONT_ID_PROMPT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT /* disabled text color */ }; GX_PROMPT_PROPERTIES MAIN_DISPLAY_main_window_vlist_label_1_properties = { GX_STRING_ID_MAIN_DISPLAY_STRING_18, /* string id */ GX_FONT_ID_PROMPT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT /* disabled text color */ }; GX_HORIZONTAL_LIST_PROPERTIES MAIN_DISPLAY_main_window_horizontal_list_1_properties = { 0, /* wallpaper id */ GX_NULL, /* callback function */ 5 /* total columns */ }; GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_main_window_icon_button_1_properties = { GX_PIXELMAP_ID_MAIN_DISPLAY_I_HISTORY_LG /* pixelmap id */ }; GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_main_window_icon_button_2_properties = { GX_PIXELMAP_ID_MAIN_DISPLAY_I_MEDICATIONSGREEN_LG /* pixelmap id */ }; GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_main_window_icon_button_3_properties = { GX_PIXELMAP_ID_MAIN_DISPLAY_I_PATIENTLIST_LG /* pixelmap id */ }; GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_main_window_icon_button_4_properties = { GX_PIXELMAP_ID_MAIN_DISPLAY_I_MEDICATIONSRED_LG /* pixelmap id */ }; GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_main_window_icon_button_5_properties = { GX_PIXELMAP_ID_MAIN_DISPLAY_SAVE_ICON /* pixelmap id */ }; GX_PROMPT_PROPERTIES MAIN_DISPLAY_main_window_hlist_label_1_properties = { GX_STRING_ID_MAIN_DISPLAY_STRING_23, /* string id */ GX_FONT_ID_PROMPT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT /* disabled text color */ }; GX_TEXT_BUTTON_PROPERTIES MAIN_DISPLAY_main_window_next_button_1_properties = { GX_STRING_ID_MAIN_DISPLAY_STRING_36, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_MAIN_DISPLAY_WHITE, /* normal text color */ GX_COLOR_ID_MAIN_DISPLAY_WHITE, /* selected text color */ GX_COLOR_ID_MAIN_DISPLAY_WHITE /* disabled text color */ }; GX_DROP_LIST_PROPERTIES MAIN_DISPLAY_main_window_drop_list_properties = { 0, /* widget pixelmap id */ 0, /* popup list wallpaper pixelmap id */ GX_NULL, /* callback function */ 100, /* total rows */ 100 /* open height */ }; GX_ICON_BUTTON_PROPERTIES MAIN_DISPLAY_main_window_icon_button_properties = { GX_PIXELMAP_ID_RADIO_ON /* pixelmap id */ }; GX_PROMPT_PROPERTIES MAIN_DISPLAY_main_window_hlist_label_properties = { GX_STRING_ID_MAIN_DISPLAY_STRING_37, /* string id */ GX_FONT_ID_PROMPT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT /* disabled text color */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_window_8_define = { "window_8", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_WINDOW), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {187, 78, 280, 150}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_window_8), /* control block */ (void *) &MAIN_DISPLAY_main_window_window_8_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_window_6_define = { "window_6", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_WINDOW), /* control block size */ GX_COLOR_ID_MAIN_DISPLAY_BLACK, /* normal color id */ GX_COLOR_ID_MAIN_DISPLAY_BLACK, /* selected color id */ GX_COLOR_ID_MAIN_DISPLAY_BLACK, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {49, 46, 295, 160}, /* widget size */ GX_NULL, /* no next widget */ &MAIN_DISPLAY_main_window_window_8_define, /* child widget definition */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_window_6), /* control block */ (void *) &MAIN_DISPLAY_main_window_window_6_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_vertical_scroll_1_define = { "vertical_scroll_1", GX_TYPE_VERTICAL_SCROLL, /* widget type */ ID_VERTICAL_SCROLLBAR, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_SCROLLBAR_RELATIVE_THUMB|GX_SCROLLBAR_END_BUTTONS|GX_SCROLLBAR_VERTICAL, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_SCROLLBAR), /* control block size */ GX_COLOR_ID_SCROLL_FILL, /* normal color id */ GX_COLOR_ID_SCROLL_FILL, /* selected color id */ GX_COLOR_ID_SCROLL_FILL, /* disabled color id */ gx_studio_vertical_scrollbar_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {518, 36, 537, 149}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_vertical_scroll_1), /* control block */ (void *) &MAIN_DISPLAY_main_window_vertical_scroll_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_hscroll_1_define = { "hscroll_1", GX_TYPE_HORIZONTAL_SCROLL, /* widget type */ ID_HORIZONTAL_SCROLLBAR, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TILE_BACKGROUND|GX_SCROLLBAR_RELATIVE_THUMB|GX_SCROLLBAR_HORIZONTAL, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_SCROLLBAR), /* control block size */ GX_COLOR_ID_MAIN_DISPLAY_ORANGE, /* normal color id */ GX_COLOR_ID_SCROLL_FILL, /* selected color id */ GX_COLOR_ID_MAIN_DISPLAY_ORANGE, /* disabled color id */ gx_studio_horizontal_scrollbar_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {328, 150, 517, 169}, /* widget size */ &MAIN_DISPLAY_main_window_vertical_scroll_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_hscroll_1), /* control block */ (void *) &MAIN_DISPLAY_main_window_hscroll_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_window_4_define = { "window_4", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_WINDOW), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {327, 35, 726, 434}, /* widget size */ &MAIN_DISPLAY_main_window_hscroll_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_window_4), /* control block */ (void *) &MAIN_DISPLAY_main_window_window_4_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_button_4_define = { "button_4", GX_TYPE_TEXT_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_TEXT_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_text_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 314, 132, 348}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_button_4), /* control block */ (void *) &MAIN_DISPLAY_main_window_button_4_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_button_3_define = { "button_3", GX_TYPE_TEXT_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_TEXT_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_text_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 279, 132, 313}, /* widget size */ &MAIN_DISPLAY_main_window_button_4_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_button_3), /* control block */ (void *) &MAIN_DISPLAY_main_window_button_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_button_2_define = { "button_2", GX_TYPE_TEXT_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_TEXT_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_text_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 244, 132, 278}, /* widget size */ &MAIN_DISPLAY_main_window_button_3_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_button_2), /* control block */ (void *) &MAIN_DISPLAY_main_window_button_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_button_1_define = { "button_1", GX_TYPE_TEXT_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_TEXT_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_text_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 209, 132, 243}, /* widget size */ &MAIN_DISPLAY_main_window_button_2_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_button_1), /* control block */ (void *) &MAIN_DISPLAY_main_window_button_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_icon_button_5_define = { "icon_button_5", GX_TYPE_ICON_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {361, 208, 411, 269}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_icon_button_5), /* control block */ (void *) &MAIN_DISPLAY_main_window_icon_button_5_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_icon_button_4_define = { "icon_button_4", GX_TYPE_ICON_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {310, 208, 360, 269}, /* widget size */ &MAIN_DISPLAY_main_window_icon_button_5_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_icon_button_4), /* control block */ (void *) &MAIN_DISPLAY_main_window_icon_button_4_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_icon_button_3_define = { "icon_button_3", GX_TYPE_ICON_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {259, 208, 309, 269}, /* widget size */ &MAIN_DISPLAY_main_window_icon_button_4_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_icon_button_3), /* control block */ (void *) &MAIN_DISPLAY_main_window_icon_button_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_icon_button_2_define = { "icon_button_2", GX_TYPE_ICON_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {208, 208, 258, 269}, /* widget size */ &MAIN_DISPLAY_main_window_icon_button_3_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_icon_button_2), /* control block */ (void *) &MAIN_DISPLAY_main_window_icon_button_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_icon_button_1_define = { "icon_button_1", GX_TYPE_ICON_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {157, 208, 207, 269}, /* widget size */ &MAIN_DISPLAY_main_window_icon_button_2_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_icon_button_1), /* control block */ (void *) &MAIN_DISPLAY_main_window_icon_button_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_icon_button_define = { "icon_button", GX_TYPE_ICON_BUTTON, /* widget type */ ID_DROP_LIST_BUTTON, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ 0, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {375, 308, 406, 339}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_icon_button), /* control block */ (void *) &MAIN_DISPLAY_main_window_icon_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_hlist_label_define = { "hlist_label", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {229, 286, 317, 309}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_hlist_label), /* control block */ (void *) &MAIN_DISPLAY_main_window_hlist_label_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_drop_list_define = { "drop_list", GX_TYPE_DROP_LIST, /* widget type */ ID_DROP_LIST, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TILE_WALLPAPER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_DROP_LIST), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_WIDGET_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_drop_list_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {159, 309, 406, 337}, /* widget size */ &MAIN_DISPLAY_main_window_hlist_label_define, /* next widget definition */ &MAIN_DISPLAY_main_window_icon_button_define, /* child widget definition */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_drop_list), /* control block */ (void *) &MAIN_DISPLAY_main_window_drop_list_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_next_button_1_define = { "next_button_1", GX_TYPE_TEXT_BUTTON, /* widget type */ IDB_NEXT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_TEXT_BUTTON), /* control block size */ GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER, /* normal color id */ GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_UPPER, /* selected color id */ GX_COLOR_ID_MAIN_DISPLAY_NEXT_BUTTON_LOWER, /* disabled color id */ gx_studio_text_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {467, 422, 546, 446}, /* widget size */ &MAIN_DISPLAY_main_window_drop_list_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_next_button_1), /* control block */ (void *) &MAIN_DISPLAY_main_window_next_button_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_hlist_label_1_define = { "hlist_label_1", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {218, 181, 349, 204}, /* widget size */ &MAIN_DISPLAY_main_window_next_button_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_hlist_label_1), /* control block */ (void *) &MAIN_DISPLAY_main_window_hlist_label_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_horizontal_list_1_define = { "horizontal_list_1", GX_TYPE_HORIZONTAL_LIST, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_HORIZONTAL_LIST), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_horizontal_list_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {156, 207, 413, 270}, /* widget size */ &MAIN_DISPLAY_main_window_hlist_label_1_define, /* next widget definition */ &MAIN_DISPLAY_main_window_icon_button_1_define, /* child widget definition */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_horizontal_list_1), /* control block */ (void *) &MAIN_DISPLAY_main_window_horizontal_list_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_vlist_label_1_define = { "vlist_label_1", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {21, 181, 152, 204}, /* widget size */ &MAIN_DISPLAY_main_window_horizontal_list_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_vlist_label_1), /* control block */ (void *) &MAIN_DISPLAY_main_window_vlist_label_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_frame_label_1_define = { "frame_label_1", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {365, 9, 496, 32}, /* widget size */ &MAIN_DISPLAY_main_window_vlist_label_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_frame_label_1), /* control block */ (void *) &MAIN_DISPLAY_main_window_frame_label_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_nested_label_1_define = { "nested_label_1", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {94, 9, 225, 32}, /* widget size */ &MAIN_DISPLAY_main_window_frame_label_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_nested_label_1), /* control block */ (void *) &MAIN_DISPLAY_main_window_nested_label_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_vertical_list_define = { "vertical_list", GX_TYPE_VERTICAL_LIST, /* widget type */ ID_VERTICAL_LIST, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_VERTICAL_LIST), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_vertical_list_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {33, 207, 134, 350}, /* widget size */ &MAIN_DISPLAY_main_window_nested_label_1_define, /* next widget definition */ &MAIN_DISPLAY_main_window_button_1_define, /* child widget definition */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_vertical_list), /* control block */ (void *) &MAIN_DISPLAY_main_window_vertical_list_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_scroll_frame_1_define = { "scroll_frame_1", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ 0, /* status flags */ sizeof(GX_WINDOW), /* control block size */ GX_COLOR_ID_SCROLL_FILL, /* normal color id */ GX_COLOR_ID_SCROLL_FILL, /* selected color id */ GX_COLOR_ID_SCROLL_FILL, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {327, 35, 538, 170}, /* widget size */ &MAIN_DISPLAY_main_window_vertical_list_define, /* next widget definition */ &MAIN_DISPLAY_main_window_window_4_define, /* child widget definition */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_scroll_frame_1), /* control block */ (void *) &MAIN_DISPLAY_main_window_scroll_frame_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_window_5_define = { "window_5", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THICK, /* style flags */ 0, /* status flags */ sizeof(GX_WINDOW), /* control block size */ GX_COLOR_ID_MAIN_DISPLAY_ORANGE, /* normal color id */ GX_COLOR_ID_MAIN_DISPLAY_ORANGE, /* selected color id */ GX_COLOR_ID_MAIN_DISPLAY_ORANGE, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {32, 34, 317, 172}, /* widget size */ &MAIN_DISPLAY_main_window_scroll_frame_1_define, /* next widget definition */ &MAIN_DISPLAY_main_window_window_6_define, /* child widget definition */ offsetof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK, MAIN_DISPLAY_main_window_window_5), /* control block */ (void *) &MAIN_DISPLAY_main_window_window_5_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET MAIN_DISPLAY_main_window_define = { "MAIN_DISPLAY_main_window", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(MAIN_DISPLAY_MAIN_WINDOW_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {0, 0, 599, 479}, /* widget size */ GX_NULL, /* next widget */ &MAIN_DISPLAY_main_window_window_5_define, /* child widget */ 0, /* control block */ (void *) &MAIN_DISPLAY_main_window_properties /* extended properties */ }; GX_WINDOW_PROPERTIES SECONDARY_window_properties = { GX_PIXELMAP_ID_SECONDARY_FISH /* wallpaper pixelmap id */ }; GX_WINDOW_PROPERTIES SECONDARY_window_window_5_properties = { 0 /* wallpaper pixelmap id */ }; GX_WINDOW_PROPERTIES SECONDARY_window_window_6_properties = { 0 /* wallpaper pixelmap id */ }; GX_WINDOW_PROPERTIES SECONDARY_window_window_8_properties = { 0 /* wallpaper pixelmap id */ }; GX_WINDOW_PROPERTIES SECONDARY_window_scroll_frame_1_properties = { 0 /* wallpaper pixelmap id */ }; GX_WINDOW_PROPERTIES SECONDARY_window_window_4_properties = { GX_PIXELMAP_ID_SECONDARY_RED_APPLE /* wallpaper pixelmap id */ }; GX_SCROLLBAR_APPEARANCE SECONDARY_window_hscroll_1_properties = { 20, /* scroll width */ 10, /* thumb width */ 2, /* thumb travel min */ 2, /* thumb travel max */ 4, /* thumb border style */ 0, /* scroll fill pixelmap */ 0, /* scroll thumb pixelmap */ 0, /* scroll up pixelmap */ 0, /* scroll down pixelmap */ GX_COLOR_ID_SCROLL_BUTTON, /* scroll thumb color */ GX_COLOR_ID_SCROLL_BUTTON, /* scroll thumb border color */ GX_COLOR_ID_BTN_UPPER, /* scroll button color */ }; GX_SCROLLBAR_APPEARANCE SECONDARY_window_vertical_scroll_1_properties = { 20, /* scroll width */ 12, /* thumb width */ 20, /* thumb travel min */ 20, /* thumb travel max */ 4, /* thumb border style */ 0, /* scroll fill pixelmap */ 0, /* scroll thumb pixelmap */ 0, /* scroll up pixelmap */ 0, /* scroll down pixelmap */ GX_COLOR_ID_SCROLL_BUTTON, /* scroll thumb color */ GX_COLOR_ID_SCROLL_BUTTON, /* scroll thumb border color */ GX_COLOR_ID_SECONDARY_ORANGE, /* scroll button color */ }; GX_VERTICAL_LIST_PROPERTIES SECONDARY_window_vertical_list_properties = { 0, /* wallpaper id */ GX_NULL, /* callback function */ 4 /* total rows */ }; GX_TEXT_BUTTON_PROPERTIES SECONDARY_window_button_1_properties = { GX_STRING_ID_SECONDARY_STRING_1, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT /* disabled text color */ }; GX_TEXT_BUTTON_PROPERTIES SECONDARY_window_button_2_properties = { GX_STRING_ID_SECONDARY_STRING_2, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT /* disabled text color */ }; GX_TEXT_BUTTON_PROPERTIES SECONDARY_window_button_3_properties = { GX_STRING_ID_SECONDARY_STRING_3, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT /* disabled text color */ }; GX_TEXT_BUTTON_PROPERTIES SECONDARY_window_button_4_properties = { GX_STRING_ID_SECONDARY_STRING_4, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_BTN_TEXT, /* normal text color */ GX_COLOR_ID_BTN_TEXT, /* selected text color */ GX_COLOR_ID_BTN_TEXT /* disabled text color */ }; GX_PROMPT_PROPERTIES SECONDARY_window_nested_label_1_properties = { GX_STRING_ID_SECONDARY_STRING_5, /* string id */ GX_FONT_ID_PROMPT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT /* disabled text color */ }; GX_PROMPT_PROPERTIES SECONDARY_window_frame_label_1_properties = { GX_STRING_ID_SECONDARY_STRING_6, /* string id */ GX_FONT_ID_PROMPT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT /* disabled text color */ }; GX_PROMPT_PROPERTIES SECONDARY_window_vlist_label_1_properties = { GX_STRING_ID_SECONDARY_STRING_7, /* string id */ GX_FONT_ID_PROMPT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT /* disabled text color */ }; GX_HORIZONTAL_LIST_PROPERTIES SECONDARY_window_horizontal_list_1_properties = { 0, /* wallpaper id */ GX_NULL, /* callback function */ 5 /* total columns */ }; GX_ICON_BUTTON_PROPERTIES SECONDARY_window_icon_button_1_properties = { GX_PIXELMAP_ID_SECONDARY_I_HISTORY_LG /* pixelmap id */ }; GX_ICON_BUTTON_PROPERTIES SECONDARY_window_icon_button_2_properties = { GX_PIXELMAP_ID_SECONDARY_I_MEDICATIONSGREEN_LG /* pixelmap id */ }; GX_ICON_BUTTON_PROPERTIES SECONDARY_window_icon_button_3_properties = { GX_PIXELMAP_ID_SECONDARY_I_PATIENTLIST_LG /* pixelmap id */ }; GX_ICON_BUTTON_PROPERTIES SECONDARY_window_icon_button_4_properties = { GX_PIXELMAP_ID_SECONDARY_I_MEDICATIONSRED_LG /* pixelmap id */ }; GX_ICON_BUTTON_PROPERTIES SECONDARY_window_icon_button_5_properties = { GX_PIXELMAP_ID_SECONDARY_SAVE_ICON /* pixelmap id */ }; GX_PROMPT_PROPERTIES SECONDARY_window_hlist_label_1_properties = { GX_STRING_ID_SECONDARY_STRING_8, /* string id */ GX_FONT_ID_PROMPT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT /* disabled text color */ }; GX_TEXT_BUTTON_PROPERTIES SECONDARY_window_next_button_1_properties = { GX_STRING_ID_SECONDARY_STRING_9, /* string id */ GX_FONT_ID_BUTTON, /* font id */ GX_COLOR_ID_SECONDARY_WHITE, /* normal text color */ GX_COLOR_ID_SECONDARY_WHITE, /* selected text color */ GX_COLOR_ID_SECONDARY_WHITE /* disabled text color */ }; GX_DROP_LIST_PROPERTIES SECONDARY_window_drop_list_properties = { 0, /* widget pixelmap id */ 0, /* popup list wallpaper pixelmap id */ GX_NULL, /* callback function */ 100, /* total rows */ 100 /* open height */ }; GX_ICON_BUTTON_PROPERTIES SECONDARY_window_icon_button_properties = { GX_PIXELMAP_ID_RADIO_ON /* pixelmap id */ }; GX_PROMPT_PROPERTIES SECONDARY_window_hlist_label_properties = { GX_STRING_ID_SECONDARY_STRING_10, /* string id */ GX_FONT_ID_PROMPT, /* font id */ GX_COLOR_ID_TEXT, /* normal text color */ GX_COLOR_ID_SELECTED_TEXT, /* selected text color */ GX_COLOR_ID_TEXT /* disabled text color */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_window_8_define = { "window_8", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_WINDOW), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {187, 78, 280, 150}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_window_8), /* control block */ (void *) &SECONDARY_window_window_8_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_window_6_define = { "window_6", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_WINDOW), /* control block size */ GX_COLOR_ID_SECONDARY_BLACK, /* normal color id */ GX_COLOR_ID_SECONDARY_BLACK, /* selected color id */ GX_COLOR_ID_SECONDARY_BLACK, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {49, 46, 295, 160}, /* widget size */ GX_NULL, /* no next widget */ &SECONDARY_window_window_8_define, /* child widget definition */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_window_6), /* control block */ (void *) &SECONDARY_window_window_6_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_vertical_scroll_1_define = { "vertical_scroll_1", GX_TYPE_VERTICAL_SCROLL, /* widget type */ ID_VERTICAL_SCROLLBAR, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_SCROLLBAR_RELATIVE_THUMB|GX_SCROLLBAR_END_BUTTONS|GX_SCROLLBAR_VERTICAL, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_SCROLLBAR), /* control block size */ GX_COLOR_ID_SCROLL_FILL, /* normal color id */ GX_COLOR_ID_SCROLL_FILL, /* selected color id */ GX_COLOR_ID_SCROLL_FILL, /* disabled color id */ gx_studio_vertical_scrollbar_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {518, 36, 537, 149}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_vertical_scroll_1), /* control block */ (void *) &SECONDARY_window_vertical_scroll_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_hscroll_1_define = { "hscroll_1", GX_TYPE_HORIZONTAL_SCROLL, /* widget type */ ID_HORIZONTAL_SCROLLBAR, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TILE_BACKGROUND|GX_SCROLLBAR_RELATIVE_THUMB|GX_SCROLLBAR_HORIZONTAL, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_SCROLLBAR), /* control block size */ GX_COLOR_ID_SECONDARY_ORANGE, /* normal color id */ GX_COLOR_ID_SCROLL_FILL, /* selected color id */ GX_COLOR_ID_SECONDARY_ORANGE, /* disabled color id */ gx_studio_horizontal_scrollbar_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {328, 150, 517, 169}, /* widget size */ &SECONDARY_window_vertical_scroll_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_hscroll_1), /* control block */ (void *) &SECONDARY_window_hscroll_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_window_4_define = { "window_4", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_WINDOW), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {327, 35, 726, 434}, /* widget size */ &SECONDARY_window_hscroll_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_window_4), /* control block */ (void *) &SECONDARY_window_window_4_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_button_4_define = { "button_4", GX_TYPE_TEXT_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_TEXT_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_text_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 314, 132, 348}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_button_4), /* control block */ (void *) &SECONDARY_window_button_4_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_button_3_define = { "button_3", GX_TYPE_TEXT_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_TEXT_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_text_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 279, 132, 313}, /* widget size */ &SECONDARY_window_button_4_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_button_3), /* control block */ (void *) &SECONDARY_window_button_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_button_2_define = { "button_2", GX_TYPE_TEXT_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_TEXT_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_text_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 244, 132, 278}, /* widget size */ &SECONDARY_window_button_3_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_button_2), /* control block */ (void *) &SECONDARY_window_button_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_button_1_define = { "button_1", GX_TYPE_TEXT_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_TEXT_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_text_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {35, 209, 132, 243}, /* widget size */ &SECONDARY_window_button_2_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_button_1), /* control block */ (void *) &SECONDARY_window_button_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_icon_button_5_define = { "icon_button_5", GX_TYPE_ICON_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {361, 208, 411, 269}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_icon_button_5), /* control block */ (void *) &SECONDARY_window_icon_button_5_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_icon_button_4_define = { "icon_button_4", GX_TYPE_ICON_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {310, 208, 360, 269}, /* widget size */ &SECONDARY_window_icon_button_5_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_icon_button_4), /* control block */ (void *) &SECONDARY_window_icon_button_4_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_icon_button_3_define = { "icon_button_3", GX_TYPE_ICON_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {259, 208, 309, 269}, /* widget size */ &SECONDARY_window_icon_button_4_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_icon_button_3), /* control block */ (void *) &SECONDARY_window_icon_button_3_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_icon_button_2_define = { "icon_button_2", GX_TYPE_ICON_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {208, 208, 258, 269}, /* widget size */ &SECONDARY_window_icon_button_3_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_icon_button_2), /* control block */ (void *) &SECONDARY_window_icon_button_2_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_icon_button_1_define = { "icon_button_1", GX_TYPE_ICON_BUTTON, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {157, 208, 207, 269}, /* widget size */ &SECONDARY_window_icon_button_2_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_icon_button_1), /* control block */ (void *) &SECONDARY_window_icon_button_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_icon_button_define = { "icon_button", GX_TYPE_ICON_BUTTON, /* widget type */ ID_DROP_LIST_BUTTON, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_ENABLED|GX_STYLE_HALIGN_CENTER|GX_STYLE_VALIGN_CENTER, /* style flags */ 0, /* status flags */ sizeof(GX_ICON_BUTTON), /* control block size */ GX_COLOR_ID_BTN_LOWER, /* normal color id */ GX_COLOR_ID_BTN_UPPER, /* selected color id */ GX_COLOR_ID_BTN_LOWER, /* disabled color id */ gx_studio_icon_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {375, 308, 406, 339}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_icon_button), /* control block */ (void *) &SECONDARY_window_icon_button_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_hlist_label_define = { "hlist_label", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {229, 286, 317, 309}, /* widget size */ GX_NULL, /* no next widget */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_hlist_label), /* control block */ (void *) &SECONDARY_window_hlist_label_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_drop_list_define = { "drop_list", GX_TYPE_DROP_LIST, /* widget type */ ID_DROP_LIST, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_ENABLED|GX_STYLE_TILE_WALLPAPER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_DROP_LIST), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_WIDGET_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_drop_list_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {159, 309, 406, 337}, /* widget size */ &SECONDARY_window_hlist_label_define, /* next widget definition */ &SECONDARY_window_icon_button_define, /* child widget definition */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_drop_list), /* control block */ (void *) &SECONDARY_window_drop_list_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_next_button_1_define = { "next_button_1", GX_TYPE_TEXT_BUTTON, /* widget type */ IDB_NEXT, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED|GX_STYLE_ENABLED|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_TEXT_BUTTON), /* control block size */ GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER, /* normal color id */ GX_COLOR_ID_SECONDARY_NEXT_BUTTON_UPPER, /* selected color id */ GX_COLOR_ID_SECONDARY_NEXT_BUTTON_LOWER, /* disabled color id */ gx_studio_text_button_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {467, 422, 546, 446}, /* widget size */ &SECONDARY_window_drop_list_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_next_button_1), /* control block */ (void *) &SECONDARY_window_next_button_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_hlist_label_1_define = { "hlist_label_1", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {218, 181, 349, 204}, /* widget size */ &SECONDARY_window_next_button_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_hlist_label_1), /* control block */ (void *) &SECONDARY_window_hlist_label_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_horizontal_list_1_define = { "horizontal_list_1", GX_TYPE_HORIZONTAL_LIST, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_HORIZONTAL_LIST), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_horizontal_list_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {156, 207, 413, 270}, /* widget size */ &SECONDARY_window_hlist_label_1_define, /* next widget definition */ &SECONDARY_window_icon_button_1_define, /* child widget definition */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_horizontal_list_1), /* control block */ (void *) &SECONDARY_window_horizontal_list_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_vlist_label_1_define = { "vlist_label_1", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {21, 181, 152, 204}, /* widget size */ &SECONDARY_window_horizontal_list_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_vlist_label_1), /* control block */ (void *) &SECONDARY_window_vlist_label_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_frame_label_1_define = { "frame_label_1", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {365, 9, 496, 32}, /* widget size */ &SECONDARY_window_vlist_label_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_frame_label_1), /* control block */ (void *) &SECONDARY_window_frame_label_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_nested_label_1_define = { "nested_label_1", GX_TYPE_PROMPT, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_NONE|GX_STYLE_TRANSPARENT|GX_STYLE_TEXT_CENTER, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_PROMPT), /* control block size */ GX_COLOR_ID_WIDGET_FILL, /* normal color id */ GX_COLOR_ID_SELECTED_FILL, /* selected color id */ GX_COLOR_ID_WIDGET_FILL, /* disabled color id */ gx_studio_prompt_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {94, 9, 225, 32}, /* widget size */ &SECONDARY_window_frame_label_1_define, /* next widget definition */ GX_NULL, /* no child widgets */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_nested_label_1), /* control block */ (void *) &SECONDARY_window_nested_label_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_vertical_list_define = { "vertical_list", GX_TYPE_VERTICAL_LIST, /* widget type */ ID_VERTICAL_LIST, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_RAISED, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(GX_VERTICAL_LIST), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_vertical_list_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {33, 207, 134, 350}, /* widget size */ &SECONDARY_window_nested_label_1_define, /* next widget definition */ &SECONDARY_window_button_1_define, /* child widget definition */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_vertical_list), /* control block */ (void *) &SECONDARY_window_vertical_list_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_scroll_frame_1_define = { "scroll_frame_1", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ 0, /* status flags */ sizeof(GX_WINDOW), /* control block size */ GX_COLOR_ID_SCROLL_FILL, /* normal color id */ GX_COLOR_ID_SCROLL_FILL, /* selected color id */ GX_COLOR_ID_SCROLL_FILL, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {327, 35, 538, 170}, /* widget size */ &SECONDARY_window_vertical_list_define, /* next widget definition */ &SECONDARY_window_window_4_define, /* child widget definition */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_scroll_frame_1), /* control block */ (void *) &SECONDARY_window_scroll_frame_1_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_window_5_define = { "window_5", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THICK, /* style flags */ 0, /* status flags */ sizeof(GX_WINDOW), /* control block size */ GX_COLOR_ID_SECONDARY_ORANGE, /* normal color id */ GX_COLOR_ID_SECONDARY_ORANGE, /* selected color id */ GX_COLOR_ID_SECONDARY_ORANGE, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {32, 34, 317, 172}, /* widget size */ &SECONDARY_window_scroll_frame_1_define, /* next widget definition */ &SECONDARY_window_window_6_define, /* child widget definition */ offsetof(SECONDARY_WINDOW_CONTROL_BLOCK, SECONDARY_window_window_5), /* control block */ (void *) &SECONDARY_window_window_5_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET SECONDARY_window_define = { "SECONDARY_window", GX_TYPE_WINDOW, /* widget type */ GX_ID_NONE, /* widget id */ #if defined(GX_WIDGET_USER_DATA) 0, /* user data */ #endif GX_STYLE_BORDER_THIN, /* style flags */ GX_STATUS_ACCEPTS_FOCUS, /* status flags */ sizeof(SECONDARY_WINDOW_CONTROL_BLOCK), /* control block size */ GX_COLOR_ID_WINDOW_FILL, /* normal color id */ GX_COLOR_ID_WINDOW_FILL, /* selected color id */ GX_COLOR_ID_WINDOW_FILL, /* disabled color id */ gx_studio_window_create, /* create function */ GX_NULL, /* drawing function override */ GX_NULL, /* event function override */ {0, 0, 599, 479}, /* widget size */ GX_NULL, /* next widget */ &SECONDARY_window_window_5_define, /* child widget */ 0, /* control block */ (void *) &SECONDARY_window_properties /* extended properties */ }; GX_CONST GX_STUDIO_WIDGET_ENTRY demo_display_resolution_widget_table[] = { { &MAIN_DISPLAY_main_window_define, (GX_WIDGET *) &MAIN_DISPLAY_main_window }, { &SECONDARY_window_define, (GX_WIDGET *) &SECONDARY_window }, {GX_NULL, GX_NULL} }; static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent) { UINT status = GX_SUCCESS; GX_WIDGET *widget = GX_NULL; GX_VALUE list_count = 0; GX_VALUE list_total_count = 0; if(parent && (parent->gx_widget_type == GX_TYPE_MENU)) { list_total_count = ((GX_MENU *)parent)->gx_menu_list_total_count; } while(definition && status == GX_SUCCESS) { if (definition->create_function) { if (definition->style & GX_STYLE_DYNAMICALLY_ALLOCATED) { status = gx_widget_allocate(&widget, definition->control_block_size); if (status != GX_SUCCESS) { return GX_NULL; } } else { if (control == GX_NULL) { return GX_NULL; } widget = (GX_WIDGET *) (control + definition->control_block_offset); } status = definition->create_function(definition, widget, parent); if(list_count < list_total_count) { gx_menu_insert((GX_MENU *)parent, widget); ((GX_MENU *)parent)->gx_menu_list_total_count--; list_count++; } if (status == GX_SUCCESS) { if (definition->widget_type != GX_TYPE_TEMPLATE) { #if defined(GUIX_5_4_0_COMPATIBILITY) gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id); #else gx_widget_fill_color_set(widget, definition->normal_fill_color_id, definition->selected_fill_color_id, definition->disabled_fill_color_id); #endif } if (!(definition->status & GX_STATUS_ACCEPTS_FOCUS)) { gx_widget_status_remove(widget, GX_STATUS_ACCEPTS_FOCUS); } if (definition->draw_function) { gx_widget_draw_set(widget, definition->draw_function); } if (definition->event_function) { gx_widget_event_process_set(widget, definition->event_function); } #if defined(GX_WIDGET_USER_DATA) widget->gx_widget_user_data = definition->user_data; #endif if (definition->child_widget) { gx_studio_nested_widget_create(control, definition->child_widget, widget); } } definition = definition->next_widget; } } return widget; } GX_WIDGET *gx_studio_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent) { GX_WIDGET *widget; widget = gx_studio_nested_widget_create(control, definition, GX_NULL); if (parent && widget) { gx_widget_attach(parent, widget); } return widget; } UINT gx_studio_named_widget_create(char *name, GX_WIDGET *parent, GX_WIDGET **new_widget) { UINT status = GX_FAILURE; GX_CONST GX_STUDIO_WIDGET_ENTRY *entry = demo_display_resolution_widget_table; GX_WIDGET *widget = GX_NULL; while(entry->widget_information) { if (!strcmp(name, entry->widget_information->widget_name)) { widget = gx_studio_widget_create((GX_BYTE *) entry->widget, entry->widget_information, parent); if (widget) { status = GX_SUCCESS; } break; } entry++; } if (new_widget) { *new_widget = widget; } return status; } UINT gx_studio_display_configure(USHORT display, UINT (*driver)(GX_DISPLAY *), GX_UBYTE language, USHORT theme, GX_WINDOW_ROOT **return_root) { GX_CONST GX_THEME *theme_ptr; GX_RECTANGLE size; GX_STUDIO_DISPLAY_INFO *display_info = &demo_display_resolution_display_table[display]; /* create the requested display */ gx_display_create(display_info->display, display_info->name, driver, (GX_VALUE) display_info->x_resolution, (GX_VALUE) display_info->y_resolution); /* install the request theme */ if(display_info->theme_table) { theme_ptr = display_info->theme_table[theme]; if(theme_ptr) { gx_display_color_table_set(display_info->display, theme_ptr->theme_color_table, theme_ptr->theme_color_table_size); /* install the color palette if required */ if (display_info->display->gx_display_driver_palette_set && theme_ptr->theme_palette != NULL) { display_info->display->gx_display_driver_palette_set(display_info->display, theme_ptr->theme_palette, theme_ptr->theme_palette_size); } gx_display_font_table_set(display_info->display, theme_ptr->theme_font_table, theme_ptr->theme_font_table_size); gx_display_pixelmap_table_set(display_info->display, theme_ptr->theme_pixelmap_table, theme_ptr->theme_pixelmap_table_size); gx_system_scroll_appearance_set(theme_ptr->theme_vertical_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_vertical_scrollbar_appearance); gx_system_scroll_appearance_set(theme_ptr->theme_horizontal_scroll_style, (GX_SCROLLBAR_APPEARANCE *) &theme_ptr->theme_horizontal_scrollbar_appearance); } } /* Install the language table. */ if(display_info->language_table) { 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); gx_display_active_language_set(display_info->display, language); } /* Set screen rotation angle. */ display_info->display->gx_display_rotation_angle = display_info->rotation_angle; /* create the canvas for this display */ gx_canvas_create(display_info->canvas, display_info->canvas_name, display_info->display, GX_CANVAS_MANAGED | GX_CANVAS_VISIBLE, display_info->x_resolution, display_info->y_resolution, display_info->canvas_memory, display_info->canvas_memory_size); /* Create the root window for this canvas */ gx_utility_rectangle_define(&size, 0, 0, (GX_VALUE) (display_info->x_resolution - 1), (GX_VALUE) (display_info->y_resolution - 1)); gx_window_root_create(display_info->root_window, display_info->name, display_info->canvas, GX_STYLE_NONE, 0, &size); if (return_root) { *return_root = display_info->root_window; } return GX_SUCCESS; } #undef GUIX_STUDIO_GENERATED_FILE