Wednesday, September 20th 2017, 8:07pm UTC+2

You are not logged in.

  • Login
  • Register

Search results

Search results 1-20 of 356.

Yesterday, 9:20am

Author: SEGGER - Schoenen

Button_SetBMPEx() function does not work

Hi, On the first look it seems that this should work. I'm not sure how big the BMP is, but 2000 bytes seems a bit small. What kind of BMP file is this? Please take a look into chapter 9.1.1 'Supported formats' of the emWin user manual. There are all supported formats listed. Regards, Sven

Yesterday, 9:11am

Author: SEGGER - Schoenen

Dropwdown Event WM_NOTIFICATION_CLICKED not received

Hi, @mrohit2011 How much memory did you spend emWin (GUI_ALLOC_AssignMemory() in the function GUI_X_Config()), try to increase the amount of memory. @JuliusCaesar Of course it is allowed to call GUI_Delay() with a RTOS. A GUI_Delay() performs all required operations to keep the GUI 'alive' (like checking for touch, check for timer, updating any windows, etc) beside of that it also calles a delay of the RTOS. Of course, this works only if it configured correctly. Check the functions below if they...

Yesterday, 8:53am

Author: SEGGER - Schoenen

Issues with GUI_EndDialog and WM_DELETE

Hi, You are right, Calling GUI_EndDialog() will mark the dialog as 'to be deleted'. Next time you enter WM_Exec() (e.g. calling GUI_Delay() in a main loop) the dialog gets deleted. To be on the save side you can reset the data on WM_CREATE. This should be the first message a window receives. Regards, Sven

Thursday, September 14th 2017, 9:44am

Author: SEGGER - Schoenen

emWin can not read from SSD1963?

Hi, Please try to set a different read function. There are two ways you can try. First, call GUIDRV_FlexColor_SetReadFunc66720_B16(GUIDRV_FLEXCOLOR_READ_FUNC_II). This changes the way how the data gets processed. Please also refer to the 'Configuration API' table in chapter 33.7.4 'GUIDRV_FlexColor' of the emWin user manual. If that doesn't work you can also set a custom read function by a call of LCD_SetDevFunc(). This is described a page before the 'Configuration API' table. Regards Sven

Thursday, September 14th 2017, 8:55am

Author: SEGGER - Schoenen

STemWin memory usage, aMemory

Hi, How much memory emWin requires depends pretty much on your the application. You can call GUI_ALLOC_GetNumUsedBytes() and/or GUI_ALLOC_GetNumFreeBytes() to find out how much memory emWin is using at a specific point in your application. Depending on what you want to do, you can try to write the application without any widgets and the window manager, this will save some memory, too. Avoid using memory devices (do not call WM_SetCreateFlags(WM_CF_MEMDEV)), memory devices will allocate memory fr...

Monday, September 4th 2017, 4:26pm

Author: SEGGER - Schoenen

How to delete a SWIPELIST

Hi, Try to call GUI_EndDialog(pMsg->hWin, 0); instead. You are using a blocking method to create a dialog. With a call of WM_DeleteWindow() you won't return from GUI_ExecDialogBox(). Attached is an example which uses a non blocking function to create a dialog. Regards, Sven

Monday, September 4th 2017, 1:24pm

Author: SEGGER - Schoenen

How to delete a SWIPELIST

Hi Simone, A simple call of WM_DeleteWindow() should be sufficient. Normally all items attached to the swipelist should be deleted with the SWIPELIST widget itself. Regards, Sven

Monday, September 4th 2017, 1:20pm

Author: SEGGER - Schoenen

How can I get emWin_png library?

Hi Boram, I tried the first link, it is working fine. www.segger.com/downloads/emwin/emWin_PNG Regards, Sven

Wednesday, August 30th 2017, 11:35am

Author: SEGGER - Schoenen

Create and Display a Graph

Hi, You have to create a data item and attach it to the graph. To update the graph simply add values to the item. Attached is an example which shows a simple graph with two data items (sine, cosine). Regards, Sven

Tuesday, August 29th 2017, 1:48pm

Author: SEGGER - Schoenen

How to set the back color of a child window

Hi, Unfortunately, there is no such function. But you can simply add the following to your callback function: C/C++ Source code 1 2 3 4 case WM_PAINT: GUI_SetBkColor(GUI_GREEN); GUI_Clear(); break; Regards, Sven

Tuesday, August 22nd 2017, 9:48am

Author: SEGGER - Schoenen

using Emwin Window Manager

Hi, I'm not entirely sure why cbForegroundWin() gets never called. One thing might be the out commented 'break' in cbBackground (In the manual it is not present at all, this will be fixed). Attached is a very simple application with two callbacks (one for the background window and one for the foreground window). It shows how you can update a text on the foreground window with a bitmap in the background. BTW, you should avoid using GUI_SetClipRect(). in most cases this is not required because the...

Friday, August 18th 2017, 3:22pm

Author: SEGGER - Schoenen

Displaying changing text with transparant background

Hi, emWin supports multi buffering. If configured properly in the LCDConf.c a call of WM_MULTIBUF_Enable(1) enables the automatic use of multibuffering by the Window Manager. Which driver are you using? If you are using GUIDRV_Lin you can use multibuffering. If you use e.g. GUIDRV_FlexColor multibuffering is not available but you can set it up to a cache which hase more or less the same function than multiple buffers. You can simply create your own c-bitmaps with the BitmapConverter. If you are ...

Thursday, August 17th 2017, 5:00pm

Author: SEGGER - Schoenen

Facing problem with Swipelist.

Hi, Are using multibuffering? If not try to enable it by calling WM_MULTIBUF_Enable(1) right after GUI_Init(). Of course, this requires to change the LCD configuration in LCDConf.c to configure emWin for the use of multiple buffers. If this is not available for you (e.g. because you don't have enough RAM available) try using WM_SetCreateFlags(WM_CF_MEMDEV) instead. Regards, Sven

Thursday, August 17th 2017, 4:28pm

Author: SEGGER - Schoenen

Displaying changing text with transparant background

Hi, Of course, here you go: Displaying changing transparant text Regards, Sven

Thursday, August 17th 2017, 4:26pm

Author: SEGGER - Schoenen

Displaying changing transparant text

Hi, Now I understand. You have to redraw the background of the text, too. Otherwise you will draw the text over the already displayed text and so on. The easiest way is to use the window manager. Simply set a callback for the background window (WM_HBKWIN) which takes care of redrawing the background if a transparent child window changes its content. The other way would be to manage the clearing/redrawing of the background on your own. Take a look into the sample attached. It shows both ways. Reg...

Wednesday, August 16th 2017, 5:12pm

Author: SEGGER - Schoenen

Displaying changing transparant text

Hi, It does work. Take a look into the example attached. It is the same as the last but displaying a value and using one of the standard fonts. Regards, Sven

Wednesday, August 16th 2017, 3:03pm

Author: SEGGER - Schoenen

Displaying changing transparant text

Hi, Attached is an example on how to display semi transparent strings. A timer changes periodically the value for the alpha channel of a color. This color is used to draw display string. In the background a bitmap gets drawn. If you display a string with a function like GUI_DispString() the background of the string to be displayed is solid per default. To get a transparent background you can call GUI_SetTextMode(GUI_TM_TRANS). This removes only the background color. To get a semi transparent str...

Friday, August 11th 2017, 3:17pm

Author: SEGGER - Schoenen

Is it possible to output to HDMI using STemWin Library with STM32?

Hi, This shouldn't be a problem. At least not when using the GUIDRV_Lin driver. emWin manages the framebuffer content. How these data get to the display is not part of emWin itself. In general this is done by the on board LCD controller of the STM32. If you configure the controller to 'feed' the HDMI interface it shouldn't be a problem to use it. The same is possible with the MIPI DSI interface. Unfortunately, we don't have a sample for this. Regards, Sven

Thursday, August 10th 2017, 8:53am

Author: SEGGER - Schoenen

Listview problems

Hi, Please ask ST to update to the latest version. We are not responsible for keeping STemWin up to date. Regards, Sven

Thursday, August 10th 2017, 8:51am

Author: SEGGER - Schoenen

Is it possible to generate EMF file from emWin?

Hi, Unfortunately, it is not possible to create EMFs or JPEGs out of emWin. The only way to create an image from the screen content is to use GUI_BMP_SerializeEx(). Regards, Sven