Skip to main content
Lucian Andercou
Associate
July 28, 2017
Solved

STemWin scrambled display

  • July 28, 2017
  • 5 replies
  • 1351 views
Posted on July 28, 2017 at 14:50

I am trying to use STemWin 532 on a STM32f467 board. I created a framewin with 4 buttons using GuiBuilder and ran the application, but the display is scrambled. This is how a framewin with 4 buttons looks like on my display :

https://drive.google.com/open?id=0B-2BPm8Fn6lwVzlfZXEzM29pbG8

.

I've also attached my 'main.c' and framewin source files. I tried adding an osDelay after GUI_Exec() but it did not work.

Any help is greatly appreciated.

    This topic has been closed for replies.
    Best answer by Vitaliy Chernobay
    Posted on July 29, 2017 at 20:46

    I also had this problem.

    I sold it...

    https://arm-stm.blogspot.com/2017/04/stm32f746ng-discovery-ram-stemwin.html

     

    5 replies

    Vangelis Fortounas
    Associate II
    July 28, 2017
    Posted on July 28, 2017 at 15:34

    Hello!

    When you make a custom dialog,  you must make also a function to paint the dialog

    Inside your message callback function you must catch the case 'case WM_PAINT:'

    When the GUI  needs to paint the dialog(because is invalid by some movement ) gives this message to your dialog message map!!
    Vangelis Fortounas
    Associate II
    July 28, 2017
    Posted on July 28, 2017 at 16:07

    0690X00000607isQAA.png
    Lucian Andercou
    Associate
    July 31, 2017
    Posted on July 31, 2017 at 07:26

    Thank you for the advice.

    Vitaliy Chernobay
    Senior
    July 29, 2017
    Posted on July 29, 2017 at 20:46

    I also had this problem.

    I sold it...

    https://arm-stm.blogspot.com/2017/04/stm32f746ng-discovery-ram-stemwin.html

     
    Lucian Andercou
    Associate
    July 31, 2017
    Posted on July 31, 2017 at 07:25

    Thank you very much, this solved my problem.