Error at IMAGE Widget refreshing in Multipage

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

    • Error at IMAGE Widget refreshing in Multipage

      Hello.

      When I Put an IMAGE on the MULTIPAGE, it work correctly.
      Also when the IMAGE on top of a TEXT put on the desktop, it is OK and show correctly.
      But the IMAGE on top of with some Widgets (such as TEXT or EDITBOX which has no TRANSPARENCY), on a MULTIPAGE, the IMAGE will not display!

      As Attachments:
      IMAGE1.PNG shows IMAGE with TEXT (Ideally)
      IMAGE2.PNG captured with VNC on real target display.

      Please note me.
      Thanks and Best regards.
      Images
      • IMAGE1.PNG

        18.39 kB, 846×393, viewed 548 times
      • IMAGE2.PNG

        5.45 kB, 747×361, viewed 571 times

      The post was edited 1 time, last by Amir Latifi ().

    • Hello Amir,

      unfortunately I wasn't able to reproduce this behavior. Could you provide me code that I can execute to reproduce this?

      Best regards,

      Florian
      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.
    • Thank you for attention

      My code is very complex and big, I made a graphical environment, to customize design, So all code is independent as other and I only call the certain routines.
      So the code body is fixed in all time.

      For example this code made a IMAGE, it is simple, only some factor such as WM_CF_SHOW, ... may be important.

      WM_HWIN CreateImage(tHmiData HmiObject, int ID)
      {
      const tImage *rImage;
      WM_HWIN hwnd;
      rImage= (tImage *)HmiObject.ObjectParm;
      hwnd= IMAGE_CreateUser(rImage->WinRect.x0, rImage->WinRect.y0, rImage->WinRect.x1, rImage->WinRect.y1, (HmiObject.Parent != -1)? WM_GetClientWindow(rHmiObject[HmiObject.Parent].hWin):0, WM_CF_SHOW , IMAGE_CF_MEMDEV, ID, sizeof(void *));
      IMAGE_SetBitmap(hwnd, &rHmiPicture[rImage->ImageIndex].Bitmap);
      return(hwnd);
      }

      And this code is for MULTIPAGE

      WM_HWIN CreateMultiPage(tHmiData HmiObject, int ID)
      {
      const tMultiPage *rMultiPage; int i;
      WM_HWIN hwnd;

      rMultiPage= (tMultiPage *)HmiObject.ObjectParm;
      hwnd= MULTIPAGE_CreateUser(rMultiPage->WinRect.x0, rMultiPage->WinRect.y0, rMultiPage->WinRect.x1, rMultiPage->WinRect.y1, (HmiObject.Parent != -1)? WM_GetClientWindow(rHmiObject[HmiObject.Parent].hWin):0, WM_CF_SHOW , 0, ID, sizeof(void *));
      if (!rMultiPage->Skin) MULTIPAGE_SetSkinClassic(hwnd);
      for (i=0; i<rMultiPage->NumPage; i++)
      MULTIPAGE_AddPage(hwnd, rHmiObject[rMultiPage->WindowIndex].hWin, rMultiPage->rMultiPageTab[i].TabName);

      MULTIPAGE_EnableScrollbar(hwnd, 1);
      MULTIPAGE_SetAlign(hwnd, rMultiPage->TabAlign);
      MULTIPAGE_SetBkColor(hwnd, rMultiPage->BkColor, MULTIPAGE_CI_ENABLED);
      MULTIPAGE_SetFont(hwnd, rHmiFonts[rMultiPage->FontIndex]);
      MULTIPAGE_SetRotation(hwnd, rMultiPage->Rotation);
      MULTIPAGE_SetTabHeight(hwnd, rMultiPage->TabHeight);
      MULTIPAGE_SetTextAlign(hwnd, rMultiPage->TextAlign);
      MULTIPAGE_SetTextColor(hwnd, rMultiPage->TextColor, 1);


      MULTIPAGE_SetUserData(hwnd, &rMultiPage, sizeof(void *));
      return(hwnd);
      }


      I will write a simple code for test.