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 ListView Maximum Rows.

    Post
    Hi, there is no real limit to how many rows you can add to a listview. The only actual limits would be your memory or the line count variable (unsigned int, therefore max. would be about 4 billion). Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread How to take screenshot of the display.

    Post
    Hi, this can be done using the function GUI_BMP_Serialize(). There's an example in the manual on how to do this under Windows: C Source Code (19 lines)I hope this helps. If you have anymore questions, please let me know. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread Error at IMAGE Widget refreshing in Multipage.

    Post
    Hello Amir, unfortunately I wasn't able to reproduce this behavior. Could you provide me code that I can execute to reproduce this? Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread Flash memory almost full.

    Post
    Hi bio_med, this depends on any of the additional modules being active or not. If modules like the Window Manager, Widgets or Memory Devices are active, ~50KB of ROM usage are realistic. Best regards, Florian
  • Hi Amir, thank you for your suggestions, we will consider adding them to emWin. Although, both of this can already be achieved with emWin using skinning. Several text labels for a button are pretty easy to do, you need to set a skinning routine that…
  • Hi, it isn't being drawn correctly since you are drawing in the WM_NOTIFY_PARENT case, but you should only draw in WM_PAINT cases! WM_KEY messages are sent to the window that has input focus. But by default windows can't receive input focus, so this…
  • SEGGER - Florian -

    Replied to the thread Button transparency.

    Post
    Hi, BUTTON_SetBkColor() only works when not using skinning. The best way to display a button transparent would be to set a callback routine and do nothing, since the button is already a transparent window. What exactly do you mean by transparent…
  • Hi, generally, you should call GUI_Clear() before you draw anything so the window area gets cleared before something is drawn. Otherwise there could remain artifacts on the screen. Could you provide me with a little more code so I know what is…
  • SEGGER - Florian -

    Replied to the thread icon picture quality in the ICONVIEW.

    Post
    Hi, it looks like transparency is the issue here. Could you send me the code of this bitmap or tell me which bitmap format it is? Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread how to use touch in emwin.

    Post
    Hi, I've attached a sample PIDConf.c for the STM32F746G-Disco which you can take as reference. You have to handle the touch input in the routine PID_X_Exec(). Most important is that you get the touch input by calling the routine that polls the touch…
  • Hi, you can only draw in the WM_PAINT case of the _cbBk callback routine. All of the drawing has to be done there. Redrawing windows can be done at any time by simply calling WM_InvalidateWindow(). Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread listview widget skin problem.

    Post
    Hi, the set owner draw function should define what should be drawn when the widget is disabled. When the widget has the owner draw routine set, is disabled and invalidated, it should be drawn according to the disabled state. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread EMWin Scrollbar problem.

    Post
    Hi jona, this behavior sounds like when pressing and holding the left/right arrow keys of a scrollbar. I'm wondering, why are you using scrollbars instead of slider widgets? Slider widgets don't have left/right arrow keys on the edges, so the thumb…
  • SEGGER - Florian -

    Replied to the thread Circular Gradient.

    Post
    Hi, the arc doesn't get fully redrawn. You can redraw the window e.g. by calling WM_InvalidateWindow(pMsg->hWin) after the value has been updated. Also calling WM_MULTIBUF_Enable(1) could come in handy to avoid flickering. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread PNG image upload.

    Post
    Hi, I've tried adding a PNG image using the GUIBuilder and it worked just fine. What exactly do you mean by "I don't want to see box type images for TFT"? Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread font style change.

    Post
    Hi, it's not possible to add fonts to the GUIBuilder. You should just pick any of the available fonts and replace it later in the code by the font you want to use. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread ICON_VIEW Text colour.

    Post
    Hi Vikram, unfortunately it is not possible to set different text colors for different icons, only for the two states "selected" and "unselected". Also, I doubt that it's possible with this widget to align the icons as your image suggests. I would…
  • SEGGER - Florian -

    Replied to the thread listview widget skin problem.

    Post
    Hi, there is no default owner draw function per se, what you mean is the default paint routine for the widget. This routine is typically named _Paint() or _OnPaint() and called in the WM_PAINT case of the widget's default callback routine. These…
  • SEGGER - Florian -

    Replied to the thread listview widget skin problem.

    Post
    Hi, skinning isn't available for the LISTVIEW widget. You can give the widget a custom look by setting an OwnerDraw function to the widget which is similar to skinning. I've attached a sample that demonstrates how to do this. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread create a memory device in to a window.

    Post
    Hi, sure, I've posted an example for this in this thread. Best regards, Florian