1
0
mirror of https://github.com/azure-rtos/guix.git synced 2025-01-14 06:43:20 +08:00

Modified single line event process to call default widget event process on pen up event. (#91)

This commit is contained in:
Ting Zhu 2023-12-14 16:05:23 +08:00 committed by GitHub
parent 19222d3606
commit 416e260bcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 374 additions and 80 deletions

View File

@ -238,7 +238,7 @@ GX_VALUE click_x;
/* FUNCTION RELEASE */
/* */
/* _gx_single_line_text_input_event_process PORTABLE C */
/* 6.1.3 */
/* 6.x */
/* AUTHOR */
/* */
/* Kenneth Maxwell, Microsoft Corporation */
@ -294,6 +294,11 @@ GX_VALUE click_x;
/* added logic to release */
/* dynamic input buffer, */
/* resulting in version 6.1.3 */
/* xx-xx-xxxx Ting Zhu Modified comment(s), */
/* modified to always call */
/* default widget event */
/* process on a pen up event, */
/* resulting in version 6.x */
/* */
/**************************************************************************/
UINT _gx_single_line_text_input_event_process(GX_SINGLE_LINE_TEXT_INPUT *text_input, GX_EVENT *event_ptr)
@ -390,10 +395,8 @@ ULONG old_style;
text_input -> gx_widget_status &= ~(GX_STATUS_MARK_NEXT | GX_STATUS_MARK_PREVIOUS);
}
}
else
{
_gx_widget_event_process(widget, event_ptr);
}
_gx_widget_event_process(widget, event_ptr);
break;
case GX_EVENT_TIMER:

View File

@ -92,6 +92,7 @@ VOID demo_thread_entry(ULONG thread_input)
/* Create the button screen */
gx_studio_named_widget_create("window", (GX_WIDGET *) root, (GX_WIDGET **) &pMainScreen);
gx_studio_named_widget_create("input_focus_release_test", GX_NULL, GX_NULL);
/* Show the root window to make it and patients screen visible. */
gx_widget_show(root);

View File

@ -2,9 +2,9 @@
<!DOCTYPE GUIX_Studio_Project>
<project>
<header>
<project_version>55</project_version>
<project_version>56</project_version>
<guix_version>60103</guix_version>
<studio_version>6010603</studio_version>
<studio_version>6030001</studio_version>
<project_name>sl_text_input_16bpp</project_name>
<source_path>.\</source_path>
<header_path>.\</header_path>
@ -18,6 +18,7 @@
<renesas_png_decoder>0</renesas_png_decoder>
<grid_enabled>FALSE</grid_enabled>
<snap_enabled>FALSE</snap_enabled>
<snap_to_widget_enabled>FALSE</snap_to_widget_enabled>
<grid_spacing>10</grid_spacing>
<snap_spacing>10</snap_spacing>
<gen_binary>FALSE</gen_binary>
@ -68,7 +69,7 @@
<reverse_order>FALSE</reverse_order>
<allocate_canvas>TRUE</allocate_canvas>
<enabled>TRUE</enabled>
<rotation_angle>0</rotation_angle>
<rotation_angle>None</rotation_angle>
<default_map_format>FALSE</default_map_format>
<theme_info>
<num_themes>1</num_themes>
@ -89,7 +90,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>THEME_HEADER</folder_id>
</resource>
<resource>
<type>GROUP</type>
@ -100,7 +101,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>COLOR_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>Defaults</name>
@ -110,7 +111,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>DEFAULT_COLOR_FOLDER</folder_id>
<resource>
<type>COLOR</type>
<name>CANVAS</name>
@ -440,7 +441,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4097</folder_id>
<folder_id>CUSTOM_COLOR_FOLDER</folder_id>
<resource>
<name>Add New Color</name>
<pathinfo>
@ -461,7 +462,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4097</folder_id>
<folder_id>FONT_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>Defaults</name>
@ -471,7 +472,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4098</folder_id>
<folder_id>DEFAULT_FONT_FOLDER</folder_id>
<resource>
<type>FONT</type>
<name>SYSTEM</name>
@ -487,6 +488,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -643,6 +645,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -799,6 +802,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -956,6 +960,7 @@
<font_include_st_glyphs>TRUE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -1107,7 +1112,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4099</folder_id>
<folder_id>CUSTOM_FONT_FOLDER</folder_id>
<resource>
<name>Add New Font</name>
<pathinfo>
@ -1133,6 +1138,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -1290,6 +1296,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -1447,6 +1454,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -1604,6 +1612,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -1761,6 +1770,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -1918,6 +1928,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -2076,6 +2087,7 @@
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<output_file>font_CHINESE_18PIX.c</output_file>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -2234,6 +2246,7 @@
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<output_file>font_CHINESE_24PIX.c</output_file>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -2386,7 +2399,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4098</folder_id>
<folder_id>PIXELMAP_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>System</name>
@ -2396,7 +2409,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4100</folder_id>
<folder_id>DEFAULT_PIXELMAP_FOLDER</folder_id>
<resource>
<type>PIXELMAP</type>
<name>RADIO_ON</name>
@ -2410,8 +2423,8 @@
<alpha>TRUE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -2427,8 +2440,8 @@
<alpha>TRUE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -2444,8 +2457,8 @@
<alpha>FALSE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -2461,8 +2474,8 @@
<alpha>FALSE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
</resource>
@ -2475,7 +2488,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4101</folder_id>
<folder_id>CUSTOM_PIXELMAP_FOLDER</folder_id>
<resource>
<name>Add New Pixelmap</name>
<pathinfo>
@ -2496,7 +2509,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4099</folder_id>
<folder_id>STRING_GROUP</folder_id>
<resource>
<name>Add New String</name>
<pathinfo>
@ -2719,6 +2732,69 @@
<folder_name>default_folder</folder_name>
<widget>
<type>window</type>
<app_name>input_focus_release_test</app_name>
<size>
<left>0</left>
<top>0</top>
<right>639</right>
<bottom>479</bottom>
</size>
<style>1073741828</style>
<allocation>0</allocation>
<accepts_focus>TRUE</accepts_focus>
<normal_fill_color>WINDOW_FILL</normal_fill_color>
<selected_fill_color>WINDOW_FILL</selected_fill_color>
<disabled_fill_color>DISABLED_FILL</disabled_fill_color>
<template>FALSE</template>
<visible_at_startup>FALSE</visible_at_startup>
<widget>
<type>button</type>
<app_name>button</app_name>
<size>
<left>184</left>
<top>158</top>
<right>475</right>
<bottom>300</bottom>
</size>
<style>1073741825</style>
<allocation>0</allocation>
<accepts_focus>TRUE</accepts_focus>
<normal_fill_color>BTN_LOWER</normal_fill_color>
<selected_fill_color>BTN_UPPER</selected_fill_color>
<disabled_fill_color>DISABLED_FILL</disabled_fill_color>
<template>FALSE</template>
<visible_at_startup>FALSE</visible_at_startup>
<widget>
<type>text_input</type>
<app_name>text_input</app_name>
<size>
<left>239</left>
<top>200</top>
<right>402</right>
<bottom>263</bottom>
</size>
<style>1073745986</style>
<allocation>0</allocation>
<accepts_focus>TRUE</accepts_focus>
<normal_fill_color>CANVAS</normal_fill_color>
<selected_fill_color>SELECTED_FILL</selected_fill_color>
<disabled_fill_color>DISABLED_FILL</disabled_fill_color>
<template>FALSE</template>
<visible_at_startup>FALSE</visible_at_startup>
<string_id>STRING_1</string_id>
<font_id>TEXT_INPUT</font_id>
<normal_text_color>TEXT_INPUT_TEXT</normal_text_color>
<selected_text_color>SELECTED_TEXT</selected_text_color>
<disabled_text_color>DISABLED_TEXT</disabled_text_color>
<readonly_fill_color>READONLY_FILL</readonly_fill_color>
<readonly_text_color>READONLY_TEXT</readonly_text_color>
<buffer_size>100</buffer_size>
<dynamic_buffer>FALSE</dynamic_buffer>
</widget>
</widget>
</widget>
<widget>
<type>window</type>
<app_name>window</app_name>
<size>
<left>5</left>
@ -3464,7 +3540,7 @@
<reverse_order>FALSE</reverse_order>
<allocate_canvas>TRUE</allocate_canvas>
<enabled>FALSE</enabled>
<rotation_angle>0</rotation_angle>
<rotation_angle>None</rotation_angle>
<default_map_format>FALSE</default_map_format>
<theme_info>
<num_themes>1</num_themes>
@ -3485,7 +3561,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>THEME_HEADER</folder_id>
</resource>
<resource>
<type>GROUP</type>
@ -3496,7 +3572,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>COLOR_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>Defaults</name>
@ -3506,7 +3582,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>DEFAULT_COLOR_FOLDER</folder_id>
<resource>
<type>COLOR</type>
<name>CANVAS</name>
@ -3836,7 +3912,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4097</folder_id>
<folder_id>CUSTOM_COLOR_FOLDER</folder_id>
<resource>
<name>Add New Color</name>
<pathinfo>
@ -3857,7 +3933,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4097</folder_id>
<folder_id>FONT_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>Defaults</name>
@ -3867,7 +3943,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4098</folder_id>
<folder_id>DEFAULT_FONT_FOLDER</folder_id>
<resource>
<type>FONT</type>
<name>SYSTEM</name>
@ -3883,6 +3959,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -4039,6 +4116,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -4195,6 +4273,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -4351,6 +4430,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -4502,7 +4582,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4099</folder_id>
<folder_id>CUSTOM_FONT_FOLDER</folder_id>
<resource>
<name>Add New Font</name>
<pathinfo>
@ -4523,7 +4603,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4098</folder_id>
<folder_id>PIXELMAP_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>System</name>
@ -4533,7 +4613,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4100</folder_id>
<folder_id>DEFAULT_PIXELMAP_FOLDER</folder_id>
<resource>
<type>PIXELMAP</type>
<name>RADIO_ON</name>
@ -4547,8 +4627,8 @@
<alpha>TRUE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -4564,8 +4644,8 @@
<alpha>TRUE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -4581,8 +4661,8 @@
<alpha>FALSE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -4598,8 +4678,8 @@
<alpha>FALSE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
</resource>
@ -4612,7 +4692,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4101</folder_id>
<folder_id>CUSTOM_PIXELMAP_FOLDER</folder_id>
<resource>
<name>Add New Pixelmap</name>
<pathinfo>
@ -4633,7 +4713,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4099</folder_id>
<folder_id>STRING_GROUP</folder_id>
<resource>
<name>Add New String</name>
<pathinfo>
@ -4688,7 +4768,7 @@
<reverse_order>FALSE</reverse_order>
<allocate_canvas>TRUE</allocate_canvas>
<enabled>FALSE</enabled>
<rotation_angle>0</rotation_angle>
<rotation_angle>None</rotation_angle>
<default_map_format>FALSE</default_map_format>
<theme_info>
<num_themes>1</num_themes>
@ -4709,7 +4789,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>THEME_HEADER</folder_id>
</resource>
<resource>
<type>GROUP</type>
@ -4720,7 +4800,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>COLOR_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>Defaults</name>
@ -4730,7 +4810,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>DEFAULT_COLOR_FOLDER</folder_id>
<resource>
<type>COLOR</type>
<name>CANVAS</name>
@ -5060,7 +5140,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4097</folder_id>
<folder_id>CUSTOM_COLOR_FOLDER</folder_id>
<resource>
<name>Add New Color</name>
<pathinfo>
@ -5081,7 +5161,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4097</folder_id>
<folder_id>FONT_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>Defaults</name>
@ -5091,7 +5171,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4098</folder_id>
<folder_id>DEFAULT_FONT_FOLDER</folder_id>
<resource>
<type>FONT</type>
<name>SYSTEM</name>
@ -5107,6 +5187,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -5263,6 +5344,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -5419,6 +5501,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -5575,6 +5658,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -5726,7 +5810,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4099</folder_id>
<folder_id>CUSTOM_FONT_FOLDER</folder_id>
<resource>
<name>Add New Font</name>
<pathinfo>
@ -5747,7 +5831,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4098</folder_id>
<folder_id>PIXELMAP_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>System</name>
@ -5757,7 +5841,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4100</folder_id>
<folder_id>DEFAULT_PIXELMAP_FOLDER</folder_id>
<resource>
<type>PIXELMAP</type>
<name>RADIO_ON</name>
@ -5771,8 +5855,8 @@
<alpha>TRUE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -5788,8 +5872,8 @@
<alpha>TRUE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -5805,8 +5889,8 @@
<alpha>FALSE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -5822,8 +5906,8 @@
<alpha>FALSE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
</resource>
@ -5836,7 +5920,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4101</folder_id>
<folder_id>CUSTOM_PIXELMAP_FOLDER</folder_id>
<resource>
<name>Add New Pixelmap</name>
<pathinfo>
@ -5857,7 +5941,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4099</folder_id>
<folder_id>STRING_GROUP</folder_id>
<resource>
<name>Add New String</name>
<pathinfo>
@ -5912,7 +5996,7 @@
<reverse_order>FALSE</reverse_order>
<allocate_canvas>TRUE</allocate_canvas>
<enabled>FALSE</enabled>
<rotation_angle>0</rotation_angle>
<rotation_angle>None</rotation_angle>
<default_map_format>FALSE</default_map_format>
<theme_info>
<num_themes>1</num_themes>
@ -5933,7 +6017,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>THEME_HEADER</folder_id>
</resource>
<resource>
<type>GROUP</type>
@ -5944,7 +6028,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>COLOR_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>Defaults</name>
@ -5954,7 +6038,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4096</folder_id>
<folder_id>DEFAULT_COLOR_FOLDER</folder_id>
<resource>
<type>COLOR</type>
<name>CANVAS</name>
@ -6284,7 +6368,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4097</folder_id>
<folder_id>CUSTOM_COLOR_FOLDER</folder_id>
<resource>
<name>Add New Color</name>
<pathinfo>
@ -6305,7 +6389,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4097</folder_id>
<folder_id>FONT_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>Defaults</name>
@ -6315,7 +6399,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4098</folder_id>
<folder_id>DEFAULT_FONT_FOLDER</folder_id>
<resource>
<type>FONT</type>
<name>SYSTEM</name>
@ -6331,6 +6415,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -6487,6 +6572,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -6643,6 +6729,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -6799,6 +6886,7 @@
<font_include_st_glyphs>FALSE</font_include_st_glyphs>
<font_support_extended_unicode>FALSE</font_support_extended_unicode>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<font_page_data>
<enabled>TRUE</enabled>
<first_char>32</first_char>
@ -6950,7 +7038,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4099</folder_id>
<folder_id>CUSTOM_FONT_FOLDER</folder_id>
<resource>
<name>Add New Font</name>
<pathinfo>
@ -6971,7 +7059,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4098</folder_id>
<folder_id>PIXELMAP_GROUP</folder_id>
<resource>
<type>FOLDER</type>
<name>System</name>
@ -6981,7 +7069,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4100</folder_id>
<folder_id>DEFAULT_PIXELMAP_FOLDER</folder_id>
<resource>
<type>PIXELMAP</type>
<name>RADIO_ON</name>
@ -6995,8 +7083,8 @@
<alpha>TRUE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -7012,8 +7100,8 @@
<alpha>TRUE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -7029,8 +7117,8 @@
<alpha>FALSE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
<resource>
@ -7046,8 +7134,8 @@
<alpha>FALSE</alpha>
<dither>FALSE</dither>
<raw>FALSE</raw>
<color_format>0</color_format>
<output_file_enabled>FALSE</output_file_enabled>
<binary_mode>FALSE</binary_mode>
<palette_type>None</palette_type>
</resource>
</resource>
@ -7060,7 +7148,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4101</folder_id>
<folder_id>CUSTOM_PIXELMAP_FOLDER</folder_id>
<resource>
<name>Add New Pixelmap</name>
<pathinfo>
@ -7081,7 +7169,7 @@
<is_default>FALSE</is_default>
<enabled>TRUE</enabled>
<compress>FALSE</compress>
<folder_id>4099</folder_id>
<folder_id>STRING_GROUP</folder_id>
<resource>
<name>Add New String</name>
<pathinfo>

View File

@ -5,8 +5,8 @@
/* resource 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.1.2 */
/* Date (dd.mm.yyyy): 5. 6.2023 Time (hh:mm): 15:13 */
/* GUIX Studio Revision 6.3.0.1 */
/* Date (dd.mm.yyyy): 14.12.2023 Time (hh:mm): 11:25 */
/*******************************************************************************/

View File

@ -5,8 +5,8 @@
/* resource 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.1.12.0 */
/* Date (dd.mm.yyyy): 25. 8.2022 Time (hh:mm): 18:42 */
/* GUIX Studio Revision 6.3.0.1 */
/* Date (dd.mm.yyyy): 14.12.2023 Time (hh:mm): 11:25 */
/*******************************************************************************/

View File

@ -5,8 +5,8 @@
/* 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:11 */
/* GUIX Studio Revision 6.3.0.1 */
/* Date (dd.mm.yyyy): 14.12.2023 Time (hh:mm): 11:25 */
/*******************************************************************************/
@ -16,6 +16,7 @@
#include "sl_text_input_16bpp_specifications.h"
static GX_WIDGET *gx_studio_nested_widget_create(GX_BYTE *control, GX_CONST GX_STUDIO_WIDGET *definition, GX_WIDGET *parent);
INPUT_FOCUS_RELEASE_TEST_CONTROL_BLOCK input_focus_release_test;
WINDOW_CONTROL_BLOCK window;
GX_DISPLAY display_1_control_block;
GX_WINDOW_ROOT display_1_root_window;
@ -47,6 +48,14 @@ GX_STUDIO_DISPLAY_INFO sl_text_input_16bpp_display_table[1] =
};
UINT gx_studio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
{
UINT status;
GX_BUTTON *button = (GX_BUTTON *) control_block;
status = gx_button_create(button, info->widget_name, parent, info->style, info->widget_id, &info->size);
return status;
}
UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent)
{
UINT status;
@ -170,6 +179,95 @@ UINT gx_studio_text_input_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *con
}
return status;
}
GX_WINDOW_PROPERTIES input_focus_release_test_properties =
{
0 /* wallpaper pixelmap id */
};
GX_CHAR input_focus_release_test_text_input_buffer[100];
GX_SINGLE_LINE_TEXT_INPUT_PROPERTIES input_focus_release_test_text_input_properties =
{
GX_STRING_ID_STRING_1, /* string id */
GX_FONT_ID_TEXT_INPUT, /* font id */
GX_COLOR_ID_TEXT_INPUT_TEXT, /* normal text color */
GX_COLOR_ID_SELECTED_TEXT, /* selected text color */
GX_COLOR_ID_DISABLED_TEXT, /* disabled text color */
GX_COLOR_ID_READONLY_FILL, /* readonly fill color */
GX_COLOR_ID_READONLY_TEXT, /* readonly text color */
input_focus_release_test_text_input_buffer, /* buffer */
100, /* buffer size */
};
GX_CONST GX_STUDIO_WIDGET input_focus_release_test_text_input_define =
{
"text_input",
GX_TYPE_SINGLE_LINE_TEXT_INPUT, /* widget type */
GX_ID_NONE, /* widget id */
#if defined(GX_WIDGET_USER_DATA)
0, /* user data */
#endif
GX_STYLE_BORDER_RECESSED|GX_STYLE_ENABLED|GX_STYLE_TEXT_LEFT, /* style flags */
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
sizeof(GX_SINGLE_LINE_TEXT_INPUT), /* control block size */
GX_COLOR_ID_CANVAS, /* normal color id */
GX_COLOR_ID_SELECTED_FILL, /* selected color id */
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
gx_studio_text_input_create, /* create function */
GX_NULL, /* drawing function override */
GX_NULL, /* event function override */
{239, 200, 402, 263}, /* widget size */
GX_NULL, /* no next widget */
GX_NULL, /* no child widgets */
offsetof(INPUT_FOCUS_RELEASE_TEST_CONTROL_BLOCK, input_focus_release_test_text_input), /* control block */
(void *) &input_focus_release_test_text_input_properties /* extended properties */
};
GX_CONST GX_STUDIO_WIDGET input_focus_release_test_button_define =
{
"button",
GX_TYPE_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, /* style flags */
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
sizeof(GX_BUTTON), /* control block size */
GX_COLOR_ID_BTN_LOWER, /* normal color id */
GX_COLOR_ID_BTN_UPPER, /* selected color id */
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
gx_studio_button_create, /* create function */
GX_NULL, /* drawing function override */
GX_NULL, /* event function override */
{184, 158, 475, 300}, /* widget size */
GX_NULL, /* no next widget */
&input_focus_release_test_text_input_define, /* child widget definition */
offsetof(INPUT_FOCUS_RELEASE_TEST_CONTROL_BLOCK, input_focus_release_test_button), /* control block */
(void *) GX_NULL /* no extended properties */
};
GX_CONST GX_STUDIO_WIDGET input_focus_release_test_define =
{
"input_focus_release_test",
GX_TYPE_WINDOW, /* widget type */
GX_ID_NONE, /* widget id */
#if defined(GX_WIDGET_USER_DATA)
0, /* user data */
#endif
GX_STYLE_BORDER_THIN|GX_STYLE_ENABLED, /* style flags */
GX_STATUS_ACCEPTS_FOCUS, /* status flags */
sizeof(INPUT_FOCUS_RELEASE_TEST_CONTROL_BLOCK), /* control block size */
GX_COLOR_ID_WINDOW_FILL, /* normal color id */
GX_COLOR_ID_WINDOW_FILL, /* selected color id */
GX_COLOR_ID_DISABLED_FILL, /* disabled color id */
gx_studio_window_create, /* create function */
GX_NULL, /* drawing function override */
GX_NULL, /* event function override */
{0, 0, 639, 479}, /* widget size */
GX_NULL, /* next widget */
&input_focus_release_test_button_define, /* child widget */
0, /* control block */
(void *) &input_focus_release_test_properties /* extended properties */
};
GX_WINDOW_PROPERTIES window_properties =
{
0 /* wallpaper pixelmap id */
@ -1195,6 +1293,7 @@ GX_CONST GX_STUDIO_WIDGET window_define =
};
GX_CONST GX_STUDIO_WIDGET_ENTRY sl_text_input_16bpp_widget_table[] =
{
{ &input_focus_release_test_define, (GX_WIDGET *) &input_focus_release_test },
{ &window_define, (GX_WIDGET *) &window },
{GX_NULL, GX_NULL}
};

View File

@ -5,8 +5,8 @@
/* 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:11 */
/* GUIX Studio Revision 6.3.0.1 */
/* Date (dd.mm.yyyy): 14.12.2023 Time (hh:mm): 11:25 */
/*******************************************************************************/
@ -140,6 +140,13 @@ typedef struct
/* Declare top-level control blocks */
typedef struct INPUT_FOCUS_RELEASE_TEST_CONTROL_BLOCK_STRUCT
{
GX_WINDOW_MEMBERS_DECLARE
GX_BUTTON input_focus_release_test_button;
GX_SINGLE_LINE_TEXT_INPUT input_focus_release_test_text_input;
} INPUT_FOCUS_RELEASE_TEST_CONTROL_BLOCK;
typedef struct WINDOW_CONTROL_BLOCK_STRUCT
{
GX_WINDOW_MEMBERS_DECLARE
@ -178,6 +185,7 @@ typedef struct WINDOW_CONTROL_BLOCK_STRUCT
/* extern statically defined control blocks */
#ifndef GUIX_STUDIO_GENERATED_FILE
extern INPUT_FOCUS_RELEASE_TEST_CONTROL_BLOCK input_focus_release_test;
extern WINDOW_CONTROL_BLOCK window;
#endif
@ -211,6 +219,7 @@ typedef struct GX_STUDIO_DISPLAY_INFO_STRUCT
/* Declare Studio-generated functions for creating top-level widgets */
UINT gx_studio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
UINT gx_studio_checkbox_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
UINT gx_studio_radio_button_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);
UINT gx_studio_prompt_create(GX_CONST GX_STUDIO_WIDGET *info, GX_WIDGET *control_block, GX_WIDGET *parent);

View File

@ -1669,7 +1669,8 @@ set(sl_text_input_16bpp_REG_TESTS
guix_sl_input_left_arrow
guix_sl_input_mark_home
guix_sl_input_style_remove
guix_sl_input_text_select)
guix_sl_input_text_select
guix_sl_input_input_focus_release)
set(sl_text_clip_8bpp_FILE_LIST
demo_guix_single_line_text_input_clip_8bpp.c sl_text_clip_8bpp_resources.c

View File

@ -0,0 +1,93 @@
/* This is a small demo of the high-performance GUIX graphics framework. */
#include <stdio.h>
#include "tx_api.h"
#include "gx_api.h"
#include "gx_validation_utility.h"
#include "gx_system.h"
TEST_PARAM test_parameter = {
"guix_sl_input_input_focus_release", /* Test name */
0, 0, 640, 480 /* Define the coordinates of the capture area.
In this test, we only need to capture the pixelmap
drawing area. */
};
static VOID control_thread_entry(ULONG);
int main(int argc, char ** argv)
{
/* Parse the command line argument. */
gx_validation_setup(argc, argv);
/* Start ThreadX system */
tx_kernel_enter();
return(0);
}
VOID tx_application_define(void *first_unused_memory)
{
/* Create a dedicated thread to perform various operations
on the line drawing example. These operations simulate
user input. */
gx_validation_control_thread_create(control_thread_entry);
/* Termiante the test if it runs for more than 100 ticks */
/* This function is not implemented yet. */
gx_validation_watchdog_create(100);
/* Call the actual line example routine. */
gx_validation_application_define(first_unused_memory);
}
/* Replace the default graphics driver with the validation driver. */
#ifdef win32_graphics_driver_setup_565rgb
#undef win32_graphics_driver_setup_565rgb
#endif
#define win32_graphics_driver_setup_565rgb gx_validation_graphics_driver_setup_565rgb
#ifdef WIN32
#undef WIN32
#endif
#include "gx_validation_wrapper.h"
#include "demo_guix_sl_text_input_16bpp.c"
/* This thread simulates user input. Its priority is lower
than the GUIX thread, so that GUIX finishes an operation
before this thread is able to issue the next command. */
static VOID control_thread_entry(ULONG input)
{
GX_SINGLE_LINE_TEXT_INPUT *text_input;
INT frame_id = 1;
GX_EVENT event;
gx_widget_detach(pMainScreen);
gx_widget_attach(root, &input_focus_release_test);
text_input = &input_focus_release_test.input_focus_release_test_text_input;
/* Remove cursor blink style. */
gx_single_line_text_input_style_remove(text_input, GX_STYLE_CURSOR_BLINK);
memset(&event, 0, sizeof(GX_EVENT));
event.gx_event_type = GX_EVENT_PEN_DOWN;
event.gx_event_target = (GX_WIDGET *)text_input;
gx_validation_set_frame_id(frame_id++);
gx_validation_set_frame_comment("Pen down on text input");
gx_system_event_send(&event);
gx_validation_set_frame_id(frame_id++);
gx_validation_set_frame_comment("Pen up on text input");
event.gx_event_type = GX_EVENT_PEN_UP;
gx_system_event_send(&event);
/* Signal the end of the test case. Verify the output. */
gx_validation_end();
exit(0);
}