Hello.
I try to create settings menu.
I use swipelist and edit items (in float mode), which attached to swipelist items.
When i want to edit value in edit_widget, i call WM_SetFocus(edit_widget) and enter digits from keyboard.
After input i press enter or escape to confirm or cancel input.
In both cases i use WM_SetFocus(swipelist_widget) to remove focus from edit_widget and hide cursor.
When i enter value at first time everything is going ok.
But when i press enter second time (and call WM_SetFocus(edit_widget) again), i dont see the cursor.
Wherein i can input digits. I can get and save values, but the cursor is hidden.
Helps only recreate settings window. Probably recreate EDIT will help too, but i dont think its good idea.
Help me please. Is it a bug or am i doing smth wrong?
I use stm32h753BI and emwin v5.40
UPDATE: at the moment I solved the problem as follows: together with WM_SetFocus(edit_widget) i call WM_SetFocus(settings_window) and cursor works ok
I try to create settings menu.
I use swipelist and edit items (in float mode), which attached to swipelist items.
When i want to edit value in edit_widget, i call WM_SetFocus(edit_widget) and enter digits from keyboard.
After input i press enter or escape to confirm or cancel input.
In both cases i use WM_SetFocus(swipelist_widget) to remove focus from edit_widget and hide cursor.
When i enter value at first time everything is going ok.
But when i press enter second time (and call WM_SetFocus(edit_widget) again), i dont see the cursor.
Wherein i can input digits. I can get and save values, but the cursor is hidden.
Helps only recreate settings window. Probably recreate EDIT will help too, but i dont think its good idea.
Help me please. Is it a bug or am i doing smth wrong?
I use stm32h753BI and emwin v5.40
UPDATE: at the moment I solved the problem as follows: together with WM_SetFocus(edit_widget) i call WM_SetFocus(settings_window) and cursor works ok
The post was edited 1 time, last by Feelinglight: update ().