Hi Sven,
thanks you very much for your answer. Sorry about the wrong thread title - it should be : STM32H747 Discovery STemWin Button ......
I checked the GUI_PID_STATE structure members. Everything is fine - Pressed is 1 ,when pressed, and 0 when not pressed. The problem seems to appear in the ID and NCode values which are delivered to my DLG.c File. With the Keil Debugger I checked the values directly here:
case WM_NOTIFY_PARENT:
Id = WM_GetId(pMsg->hWinSrc);
NCode = pMsg->Data.v;
id_value = Id;
n_value = NCode;
But there is no info in the PDF about the meaning of this values in the manual.
If I start the app id_value = 801 and n_value = 8
If I click my button id_value = 801 and n_value = 1
If I release my button id_value = 801 and n_value = 2
I added a checkbox, the id = 803 and n_values click/release like the button
I added a slider the id = 805, n_values click/release like the button, n_value for value_changed = 5
After program start the button appears visually unpressed. After the first click the visual appearance of the Button is as well inverted.
My impression is - from the moment on, when I click any element on the screen something happens to the Ncode values and/or ID values. The STemWin Version is 5.44, the CubeMX is the newest (1.7).
Regards
Dave