Search Results

Search results 1-20 of 23.

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

  • I found the mistakes!!! There were two rookie mistakes . 1. in FONT_10 alphabets were not enabled . 2. GUI_UC_SetEncodeUTF8() was used in the main function. (should not be set for displaying °C) Once I enabled all the letters in Font conv, and started using the .c file in my project the problem solved!

  • FONT_10 is custom font generated using emwin FontConv. (Tahoma of size 10). I tried displaying it on parent window, its working. But on child window I am not able to display any kinda of alphabets. Only digits can be displayed!!

  • Also, tried displaying GUI_DispStringAt("temperature",10,10); Its not able to display. but numbers can be displayed .

  • sorry typing error. have used strcat(str, " °C"); also I tried displaying using GUI_DispStringAt("4 ° C",0, 10); Still not displaying ° C part.

  • I am trying to display temperaure values in °C on a child window. Calling the following function inside WM_PAINT (in child window callback). But only number is displayed. The intended unit (°C) is not being displayed. What might be the reason? void ShowGTemperaure(uint8_t temperature) { char str[10]; snprintf(str, sizeof(str), "%u", temperature); strcat(str, " "); strcat(str, °C); GUI_SetFont(FONT_10); GUI_SetColor(LIGHT_GREY); GUI_DispStringAt(str, 10, 0); strcpy(str, "0"); strcat(str, " "); st…

  • I have a screen which has multiple buttons. Once any button is pressed , all other buttons must not take any input from user. Can I disable the background window using WM_DisableWindow()? Will it disable the buttons at once instead of disabling each and every button? Is there any other approach other than above mentioned one? 1. What is the risk involved in using WM_SetCapture and WM_ReleaseCapture? 2. Will modal window approach work?

  • thank you.

  • when the screen is shown, will we enter WM_NOTIFICATION_RELEASED case, since button is not clicked and in release state? or is it only after we click and release the button ?when does WM_NOTIFICATION_RELEASED occur?

  • if both the windows similar widgets? for example both A and B have buttons called POWER, in A its active, in B it is inactive. But both are separate widgets with similar appearance. Issue I am facing is, if I show B without hiding A, POWER button appears as active.

  • If there are 2 dialogs A and B, A is shown and B is hidden. If I try to show B i.e WM_ShowWin(handle of B), without WM_HideWin(handle of A) what exactly happens?

  • Invalidating a widget

    Manasa - - emWin related

    Post

    Thank you.

  • Invalidating a widget

    Manasa - - emWin related

    Post

    I am using WM_InvalidateWindow() to invalidate a customized button widget. With this API, only the button will get invalidated or will the adjacent area will get refreshed too? I need only that button to change appearance (color of text on button to blue) and area other than this button should remain unaffected. Also, What exactly is the difference between WM_Invalidate() and WM_InvalidateWindow().

  • Decimal separators in Emwin

    Manasa - - emWin related

    Post

    GUI_SetDecChar(',') will work only if I use api like GUI_DispFloat(). Is that correct? I am displaying values using API GUI_DispStringInRect(), Since I need to show the value at particular position on custom button. Please check the Code is shared below: void YButnCallBack(WM_MESSAGE *pMsg) { GUI_RECT rect0 = { 10,10,255,70 }; GUI_RECT rect1 = { 256,10,330,70 }; GUI_RECT rect2 = { 331,10, 380,70 }; char strY[5]; snprintf(strY, sizeof(strY), "%.1f", Ysize); // (YSize is float variable that will k…

  • Decimal separators in Emwin

    Manasa - - emWin related

    Post

    Thank you. I will try this API. Every time before displaying the value I need to call this API. If I have some 20 widgets showing floating point value, This API must be called each and every time. Is that correct?

  • Decimal separators in Emwin

    Manasa - - emWin related

    Post

    In few regions, comma is used as decimal separator instead of decimal point ( Eg: CZech). Does Emwin have any option to handle these decimal separator based on language ?

  • Not able to generate .c file even when I use pattern file and use required characters only. That should reduce the size right?

  • If it is converting then, it will show as Reading characters followed by Ready at the lower left corner. Is that right? In my case, Reading characters doesn't appear for this particular font. I have attached the screenshot. Kindly check. Regards, Manasaforum.segger.com/index.php/Att…00ffc95fb389813f58d10d067

  • It is a .ttf file. It does not generate any kind of output file with this file, In fact, when we click Save/Save as no pop-up appears!.

  • Thank you so much. I will look into the examples. I'm facing a problem with emwin Font converter tool. i.e not able to generate .c file for font < DMFinBeiJing to support Traditional chinese texts in my GUI. What could be the problem? -Regards, Manasa

  • Hi, What exactly happens when we merge two font files (.c) ? What is the use of merging .c files? By merging can we avoid multiple copies of same character?