Hello,
I modified the STemWin(5.44) Font example from the Discovery H747 Cube Examples (version 1.7.0) and made a simple screen with one Button and one text element. The Button, if pressed displays a different text (not pressed = "Disc H747", pressed = "Hello").
Display All
Problem: The button functions WM_NOTIFICATION_RELEASED and WM_NOTIFICATION_CLICKED are inverted. (not pressed = "Hello", pressed = "Disc H747"). If I put my text the other way round everything works.
I did the same modification with the Discovery F746 examples (from the Discovery F746Cube Examples) - there is no problem. Has anyone a solution for this problem? Thanks in advance,
Dave
I modified the STemWin(5.44) Font example from the Discovery H747 Cube Examples (version 1.7.0) and made a simple screen with one Button and one text element. The Button, if pressed displays a different text (not pressed = "Disc H747", pressed = "Hello").
Source Code
- case ID_BUTTON_0: // Notifications sent by 'btn_00'
- switch(NCode) {
- case WM_NOTIFICATION_CLICKED:
- // USER START (Optionally insert code for reacting on notification message)
- hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_0);
- TEXT_SetText(hItem, "Hello");
- // USER END
- break;
- case WM_NOTIFICATION_RELEASED:
- // USER START (Optionally insert code for reacting on notification message)
- hItem = WM_GetDialogItem(pMsg->hWin, ID_TEXT_0);
- TEXT_SetText(hItem, "DiscH747");
- // USER END
- break;
I did the same modification with the Discovery F746 examples (from the Discovery F746Cube Examples) - there is no problem. Has anyone a solution for this problem? Thanks in advance,
Dave