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 WM_SetCallback, unexpected behavior.

    Post
    Hi, WM_SET_CALLBACK gets sent immediately to a window after its callback has been changed by WM_SetCallback(). WM_SetCallback() sends a WM_SET_CALLBACK message before returning the previous function pointer. So your application crashes because the…
  • SEGGER - Florian -

    Replied to the thread Use AppWizard font in emWIn.

    Post
    Hi, the last parameter of APPW_GetFont() needs to be a pointer to a GUI_XBF_DATA structure instead of to an array of XBF data. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread Troubleshooting emWin Animation Performance.

    Post
    Hi, Quote from jhgorse: “Does this require manually drawing the widgets and their data with GUI_Draw*() calls? ” Yes, pretty much... I know that this can become tedious. An easier way that could work would be to overwrite WM_PAINT, set the alpha…
  • SEGGER - Florian -

    Replied to the thread AppWizard Textimport.

    Post
    Hi, the number of text entries is limited by the signed 32-bit integer limit (2,147,483,647). Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread Troubleshooting emWin Animation Performance.

    Post
    Hi, I was able to reproduce the steps. Apart from the glitching fade out, the animation looks pretty good! As I mentioned, the FadeIn/FadeOut routines are blocking, that means you cannot execute an animation simultaneously to fading out the button with…
  • Hi, If the dialog window has the focus, you will always land in WM_KEY, when a key message has been stored. So to avoid landing in WM_KEY, no key message should be stored. If there's no other way, you can add a guard to the WM_KEY case to control when…
  • SEGGER - Florian -

    Replied to the thread MULTIEDIT, WM_MOTION.

    Post
    Hi, You're right, it doesn't make sense for these routines to activate it globally when it is deactivated for a widget. I have fixed the _EnableMotion... routines so that they only activate motion support when the OnOff parameter is 1. The SWIPELIST…
  • SEGGER - Florian -

    Replied to the thread Troubleshooting emWin Animation Performance.

    Post
    Hi, are you using the routines GUI_MEMDEV_FadeInWindow()/GUI_MEMDEV_FadeOutWindow()? These routines are blocking, that means emWin cannot continue with an animation while a FadeIn/Out routine is running. Therefore, they are not recommended to be used…
  • SEGGER - Florian -

    Replied to the thread MULTIEDIT, WM_MOTION.

    Post
    Hi, yes, that it is intended since there could be other windows/widgets in the application that could still require motion support. Best regards, Florian
  • Hi, GUI_StoreKeyMsg() adds WM_KEY messages to a buffer. Without any windows, the buffered messages cannot be sent anywhere. As soon as you create the dialog and GUI_Exec() is called (GUI_ExecDialogBox() calls GUI_Exec()), the stored key message gets…
  • SEGGER - Florian -

    Replied to the thread GUI_ClearKeyBuffer();Why is it not clear key buffer??.

    Post
    Hi, Thank you for reporting this issue. It will be fixed with the next version. For now, you can call GUI_GetKey() as a workaround to clear the buffer. Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread creating Arabic virtual keypad.

    Post
    Hi, You can modify the sample simply by replacing the Latin letters by Arabic letters in the BUTTON_DATA array. To display Arabic text in emWin, UTF-8 support has to be enabled, the font you are using must contain Arabic letters and the string has to…
  • SEGGER - Florian -

    Replied to the thread AppWizard Button_Click-Event through Source-Code.

    Post
    Hi, As of right now, it is not possible to trigger interactions from user code. In our view it does not make much sense to manually trigger signals like a button click, since the button click itself should trigger an action instead. I'd recommend you…
  • SEGGER - Florian -

    Replied to the thread Reuse Animation.

    Post
    Hi, The delete callback can be used to e.g. free memory, but its purpose is not to restart the same animation. This can be done with the second parameter of GUI_ANIM_StartEx() which is the number of times the animation should be run. If you pass -1,…
  • SEGGER - Florian -

    Replied to the thread About GUI_KeyPad_Sample.

    Post
    Hi, Did you set all the necessary include paths to the emWin include directories and the Resource.h file in the Keil IDE? Best regards, Florian
  • SEGGER - Florian -

    Replied to the thread AppWizard: Vertically Stacked Widgets - Select and Grow.

    Post
    Hi, I have attached an example on how a LISTVIEW appearance can be customized. The SWIPELIST widget might also be a viable option for your application. It is a list of items that the user can swipe through. The items can also hold bitmaps or other…
  • SEGGER - Florian -

    Replied to the thread Displaying string with different char colors.

    Post
    Hi, emWin's supported character range is Unicode 0x0000 - 0xFFFF. This means 24-bit or 32-bit UC characters are not supported. Unicode is enabled per default, this means you can pass any value in the 16 bit range to GUI_DispChar(). To display…
  • SEGGER - Florian -

    Replied to the thread AppWizard: Vertically Stacked Widgets - Select and Grow.

    Post
    Hi, for the purpose you are describing a LISTVIEW widget would probably be the best choice. Unfortunately, this widget has not been added yet to AppWizard. You would have to add the LISTVIEW via user code (there is an explanation on that in the user
  • SEGGER - Florian -

    Replied to the thread Displaying string with different char colors.

    Post
    Hi, With the routines GUI_DispString()/GUI_DispChar() you could switch colors or fonts between strings with ease since the last char position is saved by the routines. But I'm afraid there is no easy way to do this with GUI_DispStringInRectWrap(). You…
  • SEGGER - Florian -

    Replied to the thread Crash in GUI_ALLOC_Free during GUI_QR_Create.

    Post
    Hi, you can receive information about emWin's memory during runtime using these routines: - GUI_ALLOC_GetNumFreeBytes() - GUI_ALLOC_GetNumUsedBytes() - GUI_ALLOC_GetMaxUsedBytes() A QR code uses a 1bpp bitmap, since there are two colors. By the way,…