Search Results

Search results 1-20 of 281.

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

  • 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 would have to calculate the position for each char/string manually. GUI_GetStringDistX() can be used to check the x-size of a string with the currently set font. Use GUI_GetCharDistX() for single characters. By the way, to draw UTF-8 strings you ha…

  • 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, the manual now also provides a formula to calculate the memory requirement of a QR code: Source Code (1 line) Best regards, Florian

  • Hi, with the current AppWizard version it is not possible to react on custom keys. This means the behavior would have to be implemented in the exported simulation project. I made an example application which reacts on the left and right arrow keys. Pressing the keys changes the AppWizard variables of the projects. The VALUECHANGED signal of a variable will trigger a SHIFTSCREEN interaction. To react on key input, I added a key hook function to GUIConf.c in the exported simulation project: C Sour…

  • Hi, currently AppWizard only processes keys when an object is focused, that can receive key input. For example, a focused slider changes its value when the corresponding arrow keys are pressed. So as of right now, AppWizard does not offer an interaction to react on key input. We will consider adding such an option to AppWizard with a future release though, as this definitely makes sense for using the AppWizard. Best regards, Florian

  • Hi, the section of the Quick Start Guide you are referring to is a bit vague, since the "Use costum defined value" button was added to AppWizard in the meantime (after the Quick Start Guide was published). We will update the guide according to the new features/new user interfaces of AppWizard. Best regards, Florian

  • play AVI

    SEGGER - Florian - - emWin related


    Hi, I am sorry to have given you wrong information in my previous post. In fact, emWin is also able to display AVI files. The user manual lists two requirements for AVI files: - The codec to be used in AVI file has to be MJPEG - The AVI file has to contain an index list called idx1 list. The Wiki sample for movies on external media can also be used to display AVI files. If you want to display an AVI file from flash, you have to convert it into a binary array (using Bin2C). A sample how to displa…

  • Hi, I was able to reproduce the crash and fix the bug. The crash occurs because emWin runs out of memory. The bitmap created by the QR routine is 485x485 pixels big, because the ModuleSize is 5px and the version number is 20. A version number of 20 sets the size of the QR code to 97x97 (see here). Quote from BramPeeters: “l_pHandle = GUI_QR_Create( "Test", 5, 2, 20 ) ” It is recommended to pass 0 as a parameter for the version number. The bug fix will be published with the next emWin release. Be…

  • Hi, You should make sure that GUI_Init() is called before you use any other emWin routines. Also, I didn't see a superloop in the files you sent. It isn't crucial for the routines you are using but necessary for Window Manager related routines. Best regards, Florian

  • Hi, have you set the WM_CF_HASTRANS flag to the IMAGE widget? Without the flag, a window will not be able to display any transparency. Best regards, Florian

  • Hi, I'm not really sure yet what could cause a behavior like this. Is the transparency index of the GIF correct? Does this issue only appear when using emWin and otherwise the transparency is shown correctly? Best regards, Florian

  • Hi, this structure is undocumented meaning it is only used by emWin internally. The structure is only used for the monospaced fonts that are part of emWin (such as "FontMono8x16"). Font files generated by the Font Converter are not intended to be modified by hand as this could lead to unexpected behavior. Best regards, Florian

  • Hi, with your code, the bitmap should be drawn into the IMAGE widget. Quote from anuj.tanksali: “GUI_DrawBitmap(&image1, 50, 260); ” What are the dimensions of the IMAGE widget? Note that when drawing inside the WM_PAINT case of a window/widget, relative coordinates have to be used instead of screen coordinates. So for example the top-left position of a window in its relative coordinates is (0,0). Is x: 50, y: 260 still in the visible area of the IMAGE widget? Best regards, Florian

  • Hi, creating a QR code allocates memory, although they aren't very memory intensive. Basically, the function allocates memory to create a 1bpp bitmap which is the QR code. A 1bpp bitmap would have to be about 400x400px big to require 20kB of memory. Can you send me some code to reproduce this issue? Best regards, Florian

  • Hi, you can check when a version was released via the "Manual versions" table in the emWin manual. V5.44 was released November 15th, 2017. The latest version is V6.16. Best regards, Florian

  • Hi, which version of STemWin are you using? GUI_QR_CreateFramed() was added to emWin with V6.12, while GUI_BARCODE_Draw() has been released since V6.10. Best regards, Florian

  • Hi, The sample you are using hasn't been updated and would only work with the old ABGR color format. One of the differences between the ABGR and ARGB formats is that the alpha values are inverted. You are using the new ARGB format since you defined GUI_USE_ARGB to be 1. The sample creates a memory device using the GUICC_8888 color conversion, but it should be GUICC_M8888I when using the ARGB format. You can easily fix this by creating the data device as follows: C Source Code (1 line)The routine…

  • Hi, Using the latest AppWizard version (V1.10) you can move and resize a window requiring only a few interactions. To animate the window position, you can use the ANIMCOORD job. The size of a window can be animated using a variable. Basically you are "animating" the value of the variable using ANIMVALUE and reacting on VALUE_CHANGED to execute the job SETSIZE on the window. For the "Value" in the SETSIZE interaction parameters you can then use the size variable by clicking "Set variable". Attach…

  • Hi, If Century Gothic does not include Chinese characters, you would have to use a third-party tool to create your own custom font. As said above, the Font Converter is only able of merging font files of the same font, type and size. Best regards, Florian

  • Hi, animated sprites take up more memory while GIF files require less memory, but are heavier on performance because the file needs to be read and decompressed first. An easy way would be displaying an animated sprite using an animation that only runs a single time. If you prefer to use the GIF file, you can read the delay of a single frame using the routine GUI_GIF_GetImageInfo() or GUI_GIF_GetImageInfoEx(). You could hide the IMAGE widget when the total delay of all frames is over. Best regard…

  • Hi, Virtual screens are an obsolete feature. What you want to do can be achieved by creating a large window (e.g. two times the horizontal size of your display) and using motion support for scrolling through the window. The Window Manager is a requirement for this, though. Our wiki provides an example that demonstrates how this can be done. Best regards, Florian