Hi,
I have an issue with the DROPDOWN widget.
I have a dialog window which contains a dropdown widget and other widgets. Further on, I want to display some notification messages which appear about 2 seconds on the screen after a certain event (e.g. USB MSD attached). The window which displays the notification message is created as a sibling of the dialog window which contains the DROPDOWN widget. When the notification widget is created the “create function” derives the currently focused widget (WM_GetFocussedWindow()) of the dialog window, stores this item and sets the focus to one of the widgets of the notification window. When the notification window is deleted the buffered item of the dialog window is set focused again. This procedure works fine except one case. If the DROPDOWN widget is expanded I get a “MCU usage fault” exception when I want to set the focus to the buffered item, since it seems that the buffered item is the expanded dropdown list and not the widget itself.
Can you help me to find a solution or workaround for my issue?
Maybe there is a function which stores/restores the complete WM context of a dialog?
Regards Thomas
I have an issue with the DROPDOWN widget.
I have a dialog window which contains a dropdown widget and other widgets. Further on, I want to display some notification messages which appear about 2 seconds on the screen after a certain event (e.g. USB MSD attached). The window which displays the notification message is created as a sibling of the dialog window which contains the DROPDOWN widget. When the notification widget is created the “create function” derives the currently focused widget (WM_GetFocussedWindow()) of the dialog window, stores this item and sets the focus to one of the widgets of the notification window. When the notification window is deleted the buffered item of the dialog window is set focused again. This procedure works fine except one case. If the DROPDOWN widget is expanded I get a “MCU usage fault” exception when I want to set the focus to the buffered item, since it seems that the buffered item is the expanded dropdown list and not the widget itself.
Can you help me to find a solution or workaround for my issue?
Maybe there is a function which stores/restores the complete WM context of a dialog?
Regards Thomas
The post was edited 3 times, last by Thomas W. ().