Search Results
Search results 1-20 of 397.
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
Hi, AppWizard does not have a feature like this. The closest thing you could do (without user code) is trigger a GIF animation on a button press. The image object would be at the same position as the button while the button itself is invisible. But of course, the GIF animation would be static. The ripple effect wouldn't change dynamically to where the button was touched. If you want to create a ripple effect that takes the touch position into account, you would have to manually implement this th…
-
EMwin ttf font
PostHi, You should create the font only once, you could do this in the "case WM_CREATE" of the callback or in the MainTask after GUI_Init() has been called. But note that all the data needs to be static and has to stay valid the entire time the font is being used. To be more specific, the GUI_TTF_DATA, GUI_TTF_CS, GUI_FONT structure as well as the data pointer to the TTF file need to stay valid. Another thing is that you should only call GUI_TTF_DestroyCache() if you're absolutely sure that no TTF f…
-
Hi, The user data set to windows or widgets refers to additional data being allocated when the window/widget is created. This data is part of the memory block associated with the window and can be accessed with <WIDGET>_GetUserData(). You can find a detailed tutorial about this topic in our wiki. The strings added to a LISTVIEW are not part of the user data. And since you did not add user data to the widget with LISTVIEW_SetUserData() calling ..._GetUserData() returns 0 bytes. Unfortunately the …
-
Hi Viktor, I have just updated the wiki example. The old example "KEYBOARD_Usage" has been renamed to "KEYBOARD_Advanced". And now there is also a stripped-down version called "KEYBOARD_Simple". This one only shows how to use a predefined layout. The export and import of pattern and layout files to the file system is not included in that example. You can find the new example here. Best regards, Florian
-
Hi, The last byte in the XBF file contains the font type. You can identify this byte searching for "XBF" at the end of the file. The following byte is the font type: C Source Code (4 lines) From the given font type you can select the corresponding pointer: C Source Code (4 lines) The reason why there currently is no function that does this automatically is that all font types would always be referenced. Best regards, Florian
-
Hi, I'm wondering if "bm_array" is an actual BMP image file? Please note that the GUI_DrawBitmap() function is only for C bitmaps (the GUI_BITMAP structure), not actual BMP files. BMP images have to be drawn with the GUI_BMP_... API functions. You can find an example in our wiki on how to draw a BMP image file. Best regards, Florian
-
Hi Nalin, Currently, NXP's Pixel Processing Pipeline is not supported. Quote from nalinnakum: “How can I excecated code from the RAM on SEGGER Embedded Studio? ” You can find a tutorial on how to do this in our wiki. Quote from nalinnakum: “Do you support "Cacheable Container" kind of functionality as supported by TouchGFX? ” As far as I understand the cacheable containers by TouchGFX is that they are drawing caches in RAM. emWin offers this kind of functionality with Memory Devices. The basic p…
-
a MEMDEV issue
PostHi, WM_CF_MEMDEV enables automatic use of memory devices for the window manager. This means on each WM_PAINT the window will be drawn into a temporary memory device to avoid flickering. But generally this flag is not needed, if for example your hardware already supports multi-buffering. I don't understand why you would draw the image into your memory device on a WM_PRE_PAINT message. I am assuming the image that you load does not change? If so, it would make the most sense to create the memory d…
-
Hi, The LISTVIEW widget does not provide a routine to set bitmaps to individual rows or items. You would have to implement this by setting an owner draw routine to the LISTVIEW and drawing the bitmaps in this routine. Have a look at this Wiki example to see how to use an owner draw routine for this widget. The HEADER widget that is part of the LISTVIEW however does provide a functions to set an image to a given column, see HEADER_SetBitmap(), HEADER_SetBMP() or HEADER_SetStreamedBitmap(). Best r…
-
Hi Alex, The SLIDER callback is missing some code which "swallows" the motion input. Can you set the following callback to the SLIDER? We will add this to the internal SLIDER code as well. C Source Code (16 lines) If you want motion to move the parent window only, then you do not need to add anything else. But you do need to react on WM_MOTION in _cbWin if the motion input should not move the window but instead move something else inside the parent window. The WM_MOTION_MANAGE_BY_WINDOW flag dis…
-
emWin Longevity
PostHi, please excuse the late reply. You can find the price list for emWin and its additional modules on our website. An emWin license includes one year of technical support and software updates. The support and update period can then be extended for 20 % of list price of the purchased items per year. If you want to request a quote, please use the form on our website. Best regards, Florian
-
Hi, please excuse the late reply. The example MOTION_OverlapByWindow.c you refered to might not be the best template for what you are trying to do. In this example, the main window is the size of the display and WM_MOTION is used to collect the moved distance. So the main window is not moved at all, and so its child windows (e.g. a button) are not moved either. You would have to manually move the child windows based on the motion offset (similarly as the pages are drawn in WM_PAINT based on the …
-
Hi Alex, Thank you for reporting this issue! The issue only occurs when WM_MOTION_R would be used initially and then vertical/horizontal motion afterwards. It will be fixed with the next bugfix release. If you need a fix for this as soon as possible, please have a look at the attached file. An internal function pointer was not reset from radial movements back to XY movements which is what I added to your sample. Best regards, Florian
-
Hi, Does your bitmap format and the color format of your display match? If you are using GUIDRV_Lin_24, then you should also convert your BMP image to true color 24bpp. If the bitmap is in another format (e.g. 32bpp), it will be converted during runtime to 24bpp before it is written to the display, which has a heavy impact on performance. If you have enough memory and your display supports it, you can also configure emWin to use GUIDRV_Lin_32 and the color conversion GUICC_M8888I. Because emWin …