Changing Color of Edit widget frame

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

  • Hello Thomas,

    There are 2 different ways to draw the frame with specified color:

    1. You could change the color of the frame around the EDIT widget by using the (currently not documented) function: void WIDGET_EFFECT_Simple_SetColor(unsigned Index, GUI_COLOR Color) with index = 0.
    Please note that this function will change the general color of this widget effect for all widgets.

    2. The widget effect could be set to none by using the function WIDGET_SetEffect() and you could draw your own frame around the widget.
    Detailed information about this function can be found in the emWin user manual in selection 19.4 General widget API: Widgets (window objects) -> General widget API.


    Best regards,
    Thorsten