Hi,
I am using functions given below to display a string with background color. I want background color length corresponding to string length but in the end of string some extra length ( 1 character) of background color is coming. Please suggest solution to this problem.
GUI_SetBkColor(GUI_RED);
GUI_SetColor(GUI_BLACK);
GUI_RECT pHRect={85,430,380,465}; //10/7/2019{95,435,383,465};
GUI_DispStringInRectEx(dispHighPriW,&pHRect,GUI_TA_VCENTER|GUI_TA_HCENTER, strlen(dispHighPriW), GUI_ROTATE_0);
Regards
Gaurav Aggarwal
I am using functions given below to display a string with background color. I want background color length corresponding to string length but in the end of string some extra length ( 1 character) of background color is coming. Please suggest solution to this problem.
GUI_SetBkColor(GUI_RED);
GUI_SetColor(GUI_BLACK);
GUI_RECT pHRect={85,430,380,465}; //10/7/2019{95,435,383,465};
GUI_DispStringInRectEx(dispHighPriW,&pHRect,GUI_TA_VCENTER|GUI_TA_HCENTER, strlen(dispHighPriW), GUI_ROTATE_0);
Regards
Gaurav Aggarwal