ICON_VIEW icon spacing

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

    • ICON_VIEW icon spacing

      Hello,

      I wanted to adjust the spacing between icon and icon name(vertical spacing) and also wanted to adjust the number of icons in one line (horizontal spacing).

      When I use following table entry for ICONVIEW then I am getting the expected result. But I didn't understand what is the meaning of that hard coded values?

      Especially I wanted to understand the meaning of (50 << 17) | 80 entry. Could you please share the document where the significance/meaning of each entries mentioned.

      { ICONVIEW_CreateIndirect, "Iconview", ID_ICONVIEW_0, 150, 150, 500, 350, 0, (50 << 16) | 80, 0 }


      Thanks,
      Vikram
    • Hi,

      As stated in the manual the 9th parameter ("Para") is used for x- and y-size of the different items. The upper 16 bits are describing the y-size and the lower 16 bits describing the x-size.

      Just search for "ICONVIEW_CreateIndirect" in the emWin user manual and you will find it.

      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.