SEGGER - Florian SuperModerator

  • Member since Oct 24th 2019

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

  • SEGGER - Florian -

    Replied to the thread Multiple Buffering.

    Post
    Hi, emWin does all of it automatically after you've activated multi buffering, at least as long as your application is using the window manager. If not, you have to manually switch between buffers using GUI_MULTIBUF_Begin() and GUI_MULTIBUF_End(). I've…
  • SEGGER - Florian -

    Replied to the thread Multiple Buffering.

    Post
    Hi bio_med, emWin supports multi buffering out of the box, simply call WM_MULTIBUF_Enable(1) to enable it. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread Fast window updation.

    Post
    Hi Sridhar, the fastest way to do this would probably be this: C Source Code (4 lines)If if doesn't have to be that fast, you can use GUI_Delay(ms) instead of GUI_Exec(). Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread multiple windows handling.

    Post
    Hi, by the way, the shipment includes a sample with a numpad in a framewin. I hope you can benefit from this. Best regards, Florian
  • Hi Ashley, you can do that by removing the widget's effect. By default it has the 'normal' effect. C Source Code (1 line) Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread button with image.

    Post
    Hi Sridhar, what you want to do is give a button a custom look, if I understand you correctly? You can do this by overwriting the widget's callback function and do the custom drawing in the WM_PAINT case of the callback. Note that the bitmap you draw…
  • SEGGER - Florian -

    Replied to the thread multiple windows handling.

    Post
    Hi Sridhar, you have to react on that button in your program and then show your numpad window. The simplest way to show a window would be to just call WM_HideWindow() and WM_ShowWindow(). But you could also move it in and out using an animation to give…
  • SEGGER - Florian -

    Replied to the thread STM32F746G-Discovery.

    Post
    Hi Andrzej, no, rotating widgets is not possible. What you might want to do instead is changing the display orientation instead of rotating each item individually. You can do this by changing the display driver in the file LCDConf.c. Your hardware uses…
  • SEGGER - Florian -

    Replied to the thread STM32F746G-Discovery.

    Post
    Hi Andrzej, to display the text at the position you mentioned, your rectangle should be located at that position as well: C Source Code (3 lines) Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread emwin - GUI_LANG_LoadCSVEx loading different CSV files.

    Post
    Hi, yes, I tested it several times with the exact version you are using. Currently, emWin V5.50 is the latest version. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread WM_SetUntouchable() - issue with this new function from v.5.50.

    Post
    Hi Volodymyr, yes, this behavior is correct. Calling WM_SetUntouchable() to make a window untouchable means that the PID info doesn't get send to the untouchable window, but to any window behind the untouchable window that isn't marked untouchable. It's…
  • SEGGER - Florian -

    Replied to the thread SPINBOX - strange behaviour.

    Post
    Hi Volodymyr, the error lies in line 39. It should be "Id == GUI_ID_BUTTON0" instead of "Id = GUI_ID_BUTTON0". Now you just set the Id variable and the if-clause checks if Id is not zero, so you always land in that case. A tiny but weighty error, took…
  • SEGGER - Florian -

    Replied to the thread creating virtual qwerty keypad.

    Post
    Hi Sridhar, currently emWin doesn't offer a virtual keypad, but I've attached a ready-to-use keyboard with a small sample showing how to use it. When clicking on the EDIT widget in the sample, the keyboard is opened. Alternatively, the keyboard is…
  • SEGGER - Florian -

    Replied to the thread emwin - GUI_LANG_LoadCSVEx loading different CSV files.

    Post
    Hi there, I've tried again with what you said, but I couldn't reproduce such a behavior regarding the memory. Before my first call of GUI_LANG_LoadCSVEx(), there are 253,020 free bytes, after the first call it's 214,024 bytes. And no matter how often I…
  • SEGGER - Florian -

    Replied to the thread WM_IsEnabledState() - there lacks this function in emWin.

    Post
    Hi Volodymyr, the routine WM_IsEnabled() returns 1 if a window is enabled and 0 if it is not. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread Loading GRAPH with an array of values.

    Post
    Hi Jan, I suppose drawing the graph using GUI_DrawGraph() would be faster rather than constantly creating and deleting new widgets. Running this, I was able to draw several graphs per second, like 5-8 per second, depending on the delay. Source Code…
  • SEGGER - Florian -

    Replied to the thread Window.

    Post
    Hi, it depends on what you like to do, you can either use one BUTTON callback for several buttons and check via the widget ID what should be drawn/done, or create a callback for each button individually to have the code separated. If these buttons are…
  • SEGGER - Florian -

    Replied to the thread Loading GRAPH with an array of values.

    Post
    Hello Jan, you should be able to add multiple values per second. I've attached a small sample doing this, and it added anywhere from 30 to 60 or more values per second. Best regards, Florian