Drawing a rectangle on a window

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

  • Drawing a rectangle on a window

    Hello,

    I am using emwin since past 3 weeks and looks very interesting. :)

    I have created a window and drawing a rectangle on a window using hard coded x and y coordinates and now, i want to get the x and y coordinates once after i created the rectangle. I tried using GUI_GetDispPosY() and GUI_GetDispPosX () functions to get the current x and y position, which is always returning me value as "0".

    Is there anyway to get the x and y coordinates after the rectangle is drawn??

    Thanks & Regards
    Dilip