Search Results

Search results 1-20 of 243.

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

  • MEMDEV Issue..

    SEGGER - Florian - - emWin related

    Post

    Hi, first of all, you should make sure that GUI_Init() has been called at the beginning of your program. Then, after your drawing operations in a memory device are finished, you have to deselect the memory device by calling GUI_MEMDEV_Select(0). If the above steps did not help you, you should make sure that you have enough memory for the PNG images and the memory device. Best regards, Florian

  • Hi, Did you make sure the VNC module files have been added to your solution? You should also check your include paths if they include GUI_VNC.h. Best regards, Florian

  • Hi, You can view and interact with your emWin application from your PC by the use of a VNC server. Note that emWin VNC routines are part of an additional module. Have a look at this example to learn how to start a VNC server from your board. Your board will need an Ethernet connection. Lastly, you need a VNC client to access your server. You can find our free VNC client on our website, but any VNC client should work. Best regards, Florian

  • Hi, the only way to do this with a YT graph is by clearing the data array when the limit has been reached. Then, newly added points will appear on the left side of the GRAPH again. You can clear the data object by calling GRAPH_DATA_YT_Clear(). Best regards, Florian

  • Hi, the easiest way would be to create a TEXT widget and place it above the IMAGE widget. If you want the TEXT widget to be drawn transparently (without a background), you can add the WM_CF_HASTRANS flag upon creation of the TEXT widget, or call WM_SetHasTrans(). Best regards, Florian

  • Hi, if you are using the same color conversion mode there's still a difference, then it is related to your target LCD. I have attached a sample for testing colors on a display. Best regards, Florian

  • Hi, can you provide me with your emWin version number and some code to reproduce the behavior? Best regards, Florian

  • Font size issue

    SEGGER - Florian - - emWin related

    Post

    Hi, applications such as Microsoft Word use points as measuring unit instead of pixels. When creating a font in the Font Converter, you can switch the unit to points. This will ensure that the generated font will be the same size as on your computer. Best regards, Florian

  • Hi, GUI_BMP_DrawEx() expects a pointer to a GetData function as first and the file handle as second parameter. The GetData function reads the file using the file handle, so that emWin can draw the BMP image with the data that was read. There is an example in the wiki that demonstrates this. The example can be run in both the Windows simulation and on a target (using emFile). You can apply this example to the file system you are using, since the steps are the same. The code you posted should be m…

  • Hi, did you set the encoding of emWin to UTF-8? You can do this by calling GUI_UC_SetEncodeUTF8(). Furthermore you should make sure that the font you are using includes the Arabic presentation forms. These characters are located in the area 0xFE70 - 0xFEFC. I would expect the font you are using to have the presentation forms, since it is a font specifically for Arabic, but you should still check nonetheless. Best regards, Florian

  • Place image on button

    SEGGER - Florian - - emWin related

    Post

    Hi, the best way would be to overwrite the callback of the BUTTON. By doing this, only your callback will determine how the BUTTON is being drawn. You can find a sample in the wiki that demonstrates, how this can be done. Best regards, Florian

  • Hi, you can edit the properties of the attached scale object using the GRAPH_SCALE_... functions. To change the numbers shown on the scale, GRAPH_SCALE_SetFactor() and GRAPH_SCALE_SetTickDist() are used. Best regards, Florian

  • Hi, you can get the handle of the TEXT widget by calling WM_GetDialogItem(hParent, ID_TEXT_0) where hParent is the parent window of the child window. In this case, the dialog is the parent of the TEXT widget. In your function _UpdateText(), you can't call pMsg->hWin without having a pointer to a WM_MESSAGE structure. You could save the handle of the parent window as a static variable in order for the function to work. Best regards, Florian

  • Hi, when you are displaying a new value, it is written above the old value. Therefore, the background of the value has to be cleared, so that only the new value is visible in the end. You can clear the background of a window with GUI_Clear(). Note that GUI_Clear() clears the entire screen with the currently set background color. You can limit the area to be cleared with GUI_ClearRect(). If emWin widgets are included in your library or source code, using the TEXT widget will be probably a lot eas…

  • Font Converter issue

    SEGGER - Florian - - emWin related

    Post

    Hi, the Font Converter shows a dialog when trying to overwrite an existing file, though. Nonetheless, you do have a point, we will consider improving the file naming in the tool. Best regards, Florian

  • Hi, this only applies to the fonts that are included in emWin, not fonts generated by the Font Converter. These standard fonts are listed in the manual as "GUI_FONT...". You could use TTF fonts to generate the font with a desired font size during runtime. TTF files are usually pretty big, so in most cases it would make sense to store them on external memory. You can find examples on how to use TTF fonts in emWin in the Wiki: - TTF file in ROM - TTF file on external memory The most memory-efficie…

  • Font Converter issue

    SEGGER - Florian - - emWin related

    Post

    Hi, the Font Converter always adds the pixel height of the font to the file name, not just the height of a character. The pixel height includes the spacing above and below a character, therefore the height can be the same with different point sizes. Best regards, Florian

  • Hi, your display driver may not be configured correctly. Unfortunately, we do not currently have a ready-to-use LCDConf.c for the board you are using, so you might want to contact ST about this issue. It could also be a hardware error. Sometimes the display is not placed correctly, so that the outputs look crooked or offset. Best regards, Florian

  • Hi, the values are getting written onto the display all at once. You can add a delay to the for-loop to see the value getting updated. To do that, use GUI_Delay(ms). Best regards, Florian

  • Hi, you would have to add more values at once in order for the curve to update faster. Every value added with GRAPH_DATA_YT_AddValue() only equates to 1px in width of the curve. It makes sense to store the values in an array, if they are not dynamic, to save CPU time. Best regards, Florian