Two suggestions! Separate color on MULTIPAGE Tabs, Text Label on BUTTON pressed

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

    • Two suggestions! Separate color on MULTIPAGE Tabs, Text Label on BUTTON pressed

      Hi.

      I have two suggestions.

      It will be usefully, if BUTTON has a separated Text label on Pressed state.
      Also on MULTIPAGE, it seems, is very important, that each TAB has a separate color.

      Thank you very much.
    • Hi Amir,

      thank you for your suggestions, we will consider adding them to emWin. Although, both of this can already be achieved with emWin using skinning.

      Several text labels for a button are pretty easy to do, you need to set a skinning routine that displays the texts based on BUTTON_IsPressed() in the WIDGET_ITEM_DRAW_TEXT case.

      A custom color for each MULTIPAGE tab can be done similarly, by setting a skinning routine. When the background is drawn in the WIDGET_ITEM_DRAW_BACKGROUND case, the user can pick a color according to the tab index. The tab index can be read from pDrawItemInfo->ItemIndex.

      If you want to have actual samples to learn how to do this, please let me know.

      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.