Switch from DIALOG to using Graphic APIs only?

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Switch from DIALOG to using Graphic APIs only?

      Say, there're two different screens: one use DIALOG, another simply draw in the WM_HBWIN using Graphic APIs only.
      Then there's a requirement to jump from one screen to another.

      Currently, I did the job as steps:
      1) GUI_EndDialog()
      2) GUI_Exit()
      3) GUI_Init()

      But it seems too heavy.
      Is there a light way to Switch from DIALOG to using Graphic APIs only?
    • Hi,

      You could set a callback function for the WM_HBKWIN. Within this callback you can use the standard graphics API (just like in any other callback).

      Regards,
      Sven
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.
    • Hello Sven,

      Yes, you're right. That can do the job.

      But, there's no callback for WM_HBKWIN at all.
      To be honest, there're only lots of functions calling graphic APIs.
      And they do not need redraw.

      I tried the steps:
      1) GUI_EndDialog()
      2) WM_MULTIBUF_Enable(OFF)
      3) WM_DisableMemdev(WM_HBKWIN)
      4) Make sure iMX 7 eLCDIF using the buffer emWin drawing to
      5) Terminate task of main UI
      6) Task of test UI running
      7) The drawing of first calling of graphic APIs causes error

      To the point, a simple question:
      How to let emWin be the status just after calling GUI_Init(), without calling GUI_Exit()+GUI_Init()?

      Best regards,
      Kenmux