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 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…
  • LexaGb -

    Replied to the thread Request; STemwin Template for STM32H743ZI.

    Post
    Hello, to awneil's link I would add the latest package for STM32H7 that contains a later version 5.44: st.com/en/embedded-software/stm32cubeh7.html Unfortunately, STM32CubeMX doesn't contain code generation scripts with STemWin GUI for STM32H7 so…
  • LexaGb -

    Replied to the thread Fixed widget for all windows.

    Post
    Hello, three ways come to mind: 1. Placing your fixed widgets in one of the windows (also in GUIBuilder). When you go to the other page (if using MULTIPAGE widget) or just change a window then you can reattach these fixed widgets to the new selected…
  • LexaGb -

    Replied to the thread KNOB with background memory device containing transparency.

    Post
    Hello, Sven, ok, thanks for clarifying. Alex.
  • LexaGb -

    Posted the thread KNOB with background memory device containing transparency.

    Thread
    Hello to everyone, I'm trying to implement a simple knob using memory devices containing transparency. Memory device for the knob is displayed correctly whereas memory device for the background loses its transparency. When checking data at the…
  • LexaGb -

    Replied to the thread Text not displaying after hiding widget.

    Post
    Works on my side, at first glance, in simulation version 5.44. Maybe additional code from your project affects the text visibility. Your new code using TEXT widgets instead of drawing text in WM_PAINT of the dialog. This updates the contains of the TEXT…
  • LexaGb -

    Replied to the thread Text not displaying after hiding widget.

    Post
    Hello, function for displaying text GUI_DispStringAt() is the drawing function and you should use any drawing functions in WM_PAINT message handler of your dialog. When you use GUI_Delay() from WM_INIT_DIALOG it calls dialog update and you see the…
  • LexaGb -

    Replied to the thread Can GUI_CreateDialogBox() generate WM_CREATE message?.

    Post
    Hello, it is nothing wrong with your dialog. The WM_CREATE message is for simple windows. For dialog windows you should use the WM_INIT_DIALOG message instead of WM_CREATE. Just change it in your callback _cbLoading(). Also you should call any…
  • LexaGb -

    Replied to the thread Using GUI_AA_DrawPolyOutline()/GUI_AA_DrawPolyOutlineEx() functions.

    Post
    Hello, thanks for the code, Sven. I realized that the inner color should be the background color. Sometimes it needs not to paint over the backround contents behind the polygon like in my case. I'm working on custom widget "gauge meter" that may have…
  • LexaGb -

    Replied to the thread Using GUI_AA_DrawPolyOutline()/GUI_AA_DrawPolyOutlineEx() functions.

    Post
    Solved with using memore device so far. C Source Code (35 lines)
  • LexaGb -

    Replied to the thread traversing in emwin calendar.

    Post
    Hello, faced the same problem. But calendar in emWin doesn't have these options for fast navigation. If you want to implement a calendar like in Windows, then you need to do custom calendar using different emWin options (e. g. animation, memory…
  • LexaGb -

    Replied to the thread How to disable reacting the MENU-widget to PID-events (mouse / touchpad)?.

    Post
    It seems that "undocumented" message with the code 0x240 is documented. In WM.h it is nothing less than WM_TOUCH! :)
  • LexaGb -

    Replied to the thread How to disable reacting the MENU-widget to PID-events (mouse / touchpad)?.

    Post
    Yes! Found it too :thumbup: ! But what if they change that undocumented code (0x240) in next releases... :) Why the collapse / expand of MENU widgets is not provided as API functions...
  • LexaGb -

    Replied to the thread How to disable reacting the MENU-widget to PID-events (mouse / touchpad)?.

    Post
    Hello, maybe it is just easier to make modal the keyboard window and after closing it pass the "modality" to the dialog window. C Source Code (125 lines)If you want to prevent user input only to opened submenu you must also prevent it to the other…
  • LexaGb -

    Posted the thread Using GUI_AA_DrawPolyOutline()/GUI_AA_DrawPolyOutlineEx() functions.

    Thread
    Hello to everyone, I'm working with the simulation (latest version 5.50) and I'd like to understand using GUI_AA_DrawPolyOutline()/GUI_AA_DrawPolyOutlineEx() functions. I want to draw a simple antialiased polygon with a frame filled with inner…