Search Results
Search results 341-360 of 430.
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
-
Hi, sure, this can be done by setting a skinning callback routine to the SLIDER. You can read about skinning in the manual. But in short, a skinning callback reacts on certain commands (different for each widget) to perform partial draw operations. So for example, the SLIDER skinning callback receives commands for drawing the thumb, shaft, ticks and the focus rectangle. Each of these individual parts can be drawn by the user or the default callback can be called. In your case you just have to re…
-
Hi Jan, GUI_Delay() calls GUI_Exec() and delays the application, so both functions basically do the same (except for the delay). When not calling any of these two functions, nothing should happen, meaning emWin shouldn't break either. I'm not really sure why you're landing in HardFault then. It could be that not enough memory was assigned to emWin or something different not related to emWin. Best regards, Florian
-
Hi, the easiest way to display animated GIFs on a target is by using GUI_SPRITE_CreateAnim(). I've attached a sample that demonstrates this. You need to convert the GIF into an animated sprite beforehand. This is done by selecting "File -> Create animated sprite from GIF" and saving the file. Best regards, Florian
-
Hi, I've tried to display your image with the sample, but nothing showed up on the screen. It worked fine with another BMP image though, so I guess something's wrong with your image file? You could convert it to another file type and still display it from external memory, which worked for me. Best regards, Florian
-
Hi, DWORD and HANDLE are types from the Win32-API, therefore these samples aren't to be used for any targets but rather on a Windows PC. I've attached a few samples that displays external images (BMP, GIF, JPEG, PNG and bitmap stream) from both the Windows simulation and on the target using emFile. I hope this helps. Best regards, Florian
-
Hi, GUI_SetOrientation() always worsens the performance since it uses a rotation device. What will probably work better is changing the display driver to rotate the screen, GUIDRV_Lin and GUIDRV_FlexColor still offer a good performance when rotated. To mirror the X and Y axis and use e.g. 32bpp, change the DISPLAY_DRIVER define in your LCDConf.c to: C Source Code (1 line)You'll find a full list of all supported orientations and color depths of this driver in the manual under "34.7.6 GUIDRV_Lin".…
-
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 displays the texts based on BUTTON_IsPressed() in the WIDGET_ITEM_DRAW_TEXT case. A custom color for each MULTIPAGE tab can be done similarly, by setting a skinning routine. When the background is drawn in the WIDGET_ITEM_DRAW_BACKGROUND case, the us…