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!
-
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?
-
what happens when you show a new screen without hiding previous screen?
Manasa - - emWin related
Postif 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.
-
what happens when you show a new screen without hiding previous screen?
Manasa - - emWin related
PostIf 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
PostThank you.
-
Invalidating a widget
Manasa - - emWin related
PostI 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().
-
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…
-
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