SEGGER - Florian Administrator

  • 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 Separate color for separate row listbox.

    Post
    Hi, the item spacing you set is not considered because of the WIDGET_ITEM_GET_YSIZE case in the owner draw function. With your method you overwrite the y-size of an item, but without adding the item spacing. When removing the WIDGET_ITEM_GET_XSIZE and…
  • SEGGER - Florian -

    Replied to the thread Separate color for separate row listbox.

    Post
    Hi, do you mean updating the scroll position of the Listbox/-view by buttons? That can be done the same way as in the sample I sent you for the MULTIEDIT. You can find that sample in the wiki now, by the way. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread Separate color for separate row listbox.

    Post
    Hi, you can do that by setting an owner draw function to the widget and doing the drawing yourself. Have a look at this sample. Unfortunately, there is no WIDGET_ITEM_DRAW_BACKGROUND command, only a WIDGET_ITEM_DRAW command, which means you have to…
  • SEGGER - Florian -

    Replied to the thread Display backspace symbol on Button.

    Post
    Hi, there are a few things to obey when displaying non-ASCII characters. 1. You have to enable UTF-8 support by calling GUI_UC_SetEncodeUTF8(). 2. The character you want to display must be in the font you are using. 3. The characters in the string must…
  • SEGGER - Florian -

    Replied to the thread WM_NOTIFY_PARENT does not work for Listbox!.

    Post
    Hi, WM_TOUCH_CHILD messages are sent to the parent window, if a child window has received touch input. WM_NOTIFY_PARENT messages are also sent from the child window to the parent. I tested this and after I changed the LISTBOX's selection, the parent…
  • SEGGER - Florian -

    Replied to the thread emWin + AppWizard examples request.

    Post
    Hi, please note that the AppWizard tool is only part of the emWin PRO shipment and not of the SEGGER evaluation software. Basic steps such as adding different screens to an application are explained in the accompanying documents like the manual or…
  • SEGGER - Florian -

    Replied to the thread Passing data from callback function to main function.

    Post
    Hi, you can send data between windows with user data. The Wiki has a tutorial on this topic. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread GRAPH_DATA_YT_AddValue questions.

    Post
    Hi, currently there is no GRAPH_DATA routine to update the array. You have to clear the old data handle, create a new one and attach it. C Source Code (5 lines) Also, to actually fill the array with values, you have to index the array. Like this: C…
  • SEGGER - Florian -

    Replied to the thread WM_IsCompletelyVisible doesn't seem to work.

    Post
    Hi, we were able to reproduce the error and are currently looking into the issue. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread SD card doesn't work well after FS_Deinit() is called.

    Post
    Hi, as mentioned in your other thread, this is a forum section dedicated to emWin. Please use the emFile forum for threads regarding emFile. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread Is there a way to de-initalize file system?.

    Post
    Hi, please note that this forum section is dedicated only to emWin. I know that the emFile forum is not as active, but we cannot give you adequate support for emFile either. I'll move the thread accordingly. In the future, please only use the emFile…
  • SEGGER - Florian -

    Replied to the thread Moving the content of a window.

    Post
    Hi, Quote from marc345: “I don't want to just draw 4 horizontally alligned rectangles as in the example ” the sample you are describing sounds more like the WM_MOTION_MoveWindows sample to me, rather than the WM_MOTION_MoveContent sample? Anyways,…
  • SEGGER - Florian -

    Replied to the thread Add user defined character in the font.

    Post
    Hi, you can add custom characters to a font. There are many unicode areas that are unassigned (e.g. 0x700-0x8FF), so you can freely add any custom characters to these areas. The best way would probably to do this in a dedicated font editor program, but…
  • SEGGER - Florian -

    Replied to the thread sawtooth issue.

    Post
    Hi, this is probably a cache problem. The attached LCDConf.c should fix your problem. The relevant function calls that clear the cache are SCB_CleanInvalidateDCache() and GUI_DCACHE_SetClearCacheHook(_ClearCache). Also, note that WM_MULTIBUF_Enable()…
  • SEGGER - Florian -

    Replied to the thread How might I use PAN/ZOOM on a window with controls like sliders.

    Post
    Hi, the manual describes how gesture support can be implemented for windows under MultiTouch support -> Window animation. I have also attached a sample for you that demonstrates this. You should take a look at the _cbGestures() callback. When…
  • SEGGER - Florian -

    Replied to the thread Image distortion.

    Post
    Hi, GUI_SUPPORT_MEMDEV simply tells the compiler if code for memory devices should be included. But since you are using a precompiled library, that define has no influence on whether or not memory devices are included by the compiler. Anyhow, the…
  • SEGGER - Florian -

    Replied to the thread Memdev deallocate memory.

    Post
    Hi, you have to save the KNOB handle in your "handle" variable, not a memory device handle. You should use the KNOB handle for any KNOB-prefixed routines and the memory device handle for MEMDEV routines. Regarding line 9: When you are done drawing in a…
  • Hi, when a child window is redrawn, the parent window is also redrawn. But generally only the necessary area is redrawn. Though, drawing operations, e.g. a circle, cannot be partially redrawn, they can only be drawn completely. You can check the area by…
  • SEGGER - Florian -

    Replied to the thread DROPDOWN : Reaction on click.

    Post
    Hi, in the example I used a BUTTON widget instead of an EDIT for better visual feedback on clicks. The mechanic is exactly the same with the EDIT widget or any other widget that receives clicks. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread GUI_DrawStreamedBitmap.

    Post
    Hi, to save an image as an indexed streamed bitmap, you have to convert the image into best palette before saving it as a DTA file. To do that, select Image -> Convert to -> Best palette in the BitmapConverter. Best regards, Florian