Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

How to set background and text color if text color
if text is drawn using IDISPLAY_DrawText and ISTATIC_SetText

I tried using IDISPLAY_FillRect but it displays color outside the text and take CLR_USER_BACKGROUND color as background and

IDISPLAY_DrawFrame only filled boundary and take CLR_USER_BACKGROUND color.

I don't want CLR_USER_BACKGROUND as a background color.

Use IDisplay_SetColor()
CLR_USER_TEXT : Active Text Color
CLR_USER_BACKGROUND : Active Background color

Use IDisplay_SetColor()
CLR_USER_TEXT : Active Text Color
CLR_USER_BACKGROUND : Active Background color

I don't want to use CLR_USER_BACKGROUND as a background color for text
I want to dispaly text with different background color other than CLR_USER_BACKGROUND
like
CLR_USER_BACKGROUND - white
CLR_USER_TEXT - RGB(199,21,144) // Violet Red
rect color in which text to be placed faint pink

I don't want to use CLR_USER_BACKGROUND as a background color for text
I want to dispaly text with different background color other than CLR_USER_BACKGROUND
like
CLR_USER_BACKGROUND - white
CLR_USER_TEXT - RGB(199,21,144) // Violet Red
rect color in which text to be placed faint pink

Dear,
Did you refer Brew API reference?
CLR_USER_TEXT : Active Text Color
CLR_USER_BACKGROUND : Active Background color
are the color items and not colors. If you want to set bg color set color for CLR_USER_BACKGROUND item using IDISPLAY_SetColor.

Dear,
Did you refer Brew API reference?
CLR_USER_TEXT : Active Text Color
CLR_USER_BACKGROUND : Active Background color
are the color items and not colors. If you want to set bg color set color for CLR_USER_BACKGROUND item using IDISPLAY_SetColor.

hi , thx for reply.
Using GRAPHICS_SetFillColor it is possible to set background selected rect color of text.

hi , thx for reply.
Using GRAPHICS_SetFillColor it is possible to set background selected rect color of text.