LexaGb Beginner

  • Member since May 25th 2018
Last Activity

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

  • LexaGb -

    Replied to the thread LISTVIEW - different styles.

    Post
    Hello, not exactly clear what you want, but if you need "Warning Description" instead of the header then just place another widget (text or image...) over the header. If you need to do something more complicated, exactly a row with "one column style"…
  • LexaGb -

    Replied to the thread Dropdown widget issues.

    Post
    Hello, quite simple. C Source Code (35 lines)Alex.
  • LexaGb -

    Replied to the thread Polygon Rotation.

    Post
    Yes, we could say that, I suppose. I would say, the term of the origin point is applicable when drawing the polygon. Rotation of the polygon is doing in relative coordinates. When we are drawing rotated polygon we set the origin point again for drawing…
  • LexaGb -

    Replied to the thread Polygon Rotation.

    Post
    Hello, the coordinates of polygon are considered related to the origin point when drawing the polygon. When rotating the polygon the origin point is the pivot point of the polygon that can be inside and outside the polygon depending on its…
  • LexaGb -

    Replied to the thread Dropdown widget issues.

    Post
    Hello, Quote from Electrons4me: “...I would have to draw all my primitives and text in the cbBackgroundWin() Callback... ” yes, that's right. If you are using widgets in your projects then you are using Window Manager and in this case you need to…
  • LexaGb -

    Replied to the thread How to display large range data with GRAPH.

    Post
    Hello, your question relates to the zooming capabilities of the GRAPH widget. Unfotunately the widget doesn't have such functions in the API list. It is works in mode "one pixel <-> one data point". So you need to draw it by yourself using user draw…
  • LexaGb -

    Replied to the thread Drawing graphs using GUI_AA_DrawLine redrawing issue.

    Post
    Hello, Mark, yes, GRAPH widget is not so easy, but when you get it about user draw function, you will able to draw a custom grid and manipulate the data to move the curves along the axes. Regarding the layers' contents: it's hard for me to say why the…
  • LexaGb -

    Replied to the thread MULTIPAGE_SetBitmapEx for UNSELECTED tabs.

    Post
    Oh, I think it is just a little bug in the documentation :) . “Horizontal and vertical flags” make sense in case of text align related functions, probably this was copied from such function description or whatever and then the editor didn’t notice…
  • LexaGb -

    Replied to the thread MULTIPAGE_SetBitmapEx for UNSELECTED tabs.

    Post
    I'm using STemWin 5.44, so I don't have the sources and I can't see C-code where the states are OR-ed (except if look at assembler code). Can you see where it happens? However, calling MULTIPAGE_SetBitmapEx() with a mask instead of index doesn't change…
  • LexaGb -

    Replied to the thread MULTIPAGE_SetBitmapEx for UNSELECTED tabs.

    Post
    Hello, for aligning the text to the right after the bitmap you can increase the width of the tabs using MULTIPAGE_SetTabWidth() and then set text align to the right using MULTIPAGE_SetTextAlign(). With regard to the bitmap, yes, looks strange. Adding a…
  • LexaGb -

    Replied to the thread Drawing graphs using GUI_AA_DrawLine redrawing issue.

    Post
    Hello, first you can just create a memory device (if your emWin package contains that option) filled with transparency. C Source Code (10 lines) Then you draw the curve lines into the memory device and copy its content to the screen in WM_PAINT. Memory…
  • LexaGb -

    Replied to the thread LISTWHEEL background loses transparency.

    Post
    Yes, GUI_MAKE_COLOR is doing its job, but if I assign the ARGB-image to the IMAGE widget then the image in GUIBuilder looks like red and blue are swapped :) . Alex.
  • LexaGb -

    Replied to the thread LISTWHEEL background loses transparency.

    Post
    Ok, Sven, thanks for clarifying, but one thing stops me from using ARGB. It is GUIBuilder that works in ABGR mode :) . So the colors look incorrectly. I got used to it for creating dialogs. Alex.
  • LexaGb -

    Replied to the thread LISTWHEEL background loses transparency.

    Post
    Hello, Sven, This appears in simulation v5.44 (GUISim.lib from SEGGER package) and on real hardware using STemWin v5.44 (STemWin_CM7_wc32_ot.a from ST package). I'm using ABGR mode (GUI_USE_ARGB is set to 0) so we don't need to clear "alpha byte" of…
  • LexaGb -

    Replied to the thread WM_SetUserData - issue for widget of DIALOG.

    Post
    Hello, WM_GetUserData()/WM_SetUserData() is for simple windows. For widgets just use specific <WIDGET>_GetUserData()/<WIDGET>_SetUserData() functions. In your case it is BUTTON_SetUserData(). Calling WM_SetUserData() for the button may have caused…
  • LexaGb -

    Replied to the thread Partial visualization of a bitmap / multilayer bar graph.

    Post
    Hello, maybe we should place two scales (gray and colored) at one position in an exact matching using IMAGE widgets. Then invalidate colored bar image within the area related to the bar value using WM_SetUserClipRect() function. Just a simple code: C…
  • LexaGb -

    Posted the thread LISTWHEEL background loses transparency.

    Thread
    Hello to everyone, I have a question implementing a listwheel with semitransparent rounded rect as a background. Here is the code for 320 * 240 desktop: C Source Code (62 lines)All is ok until listwheel reacts on moving. Then it loses transparency. It…