how do I change the color of text in a textbox (D4D)?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how do I change the color of text in a textbox (D4D)?

Jump to solution
662 Views
Dario_
Contributor I

Hello friends, 

 

I want to get the color of text has a different color to the color of the scroll bar in a textbox. I Modify the color scheme in the statement of the textbox but can not get good results. 

 

Anyone know how to do this?

 

Thanks.

 

Dario

0 Kudos
1 Solution
430 Views
LuisCasado
NXP Employee
NXP Employee

Hi,

 

All the objects will use the default scheme colors. You can define a particular color scheme color using:

 

pScheme—Pointer to a color scheme, if its NULL, default scheme is used.

 

when you declare the object. Otherwise the d4d_user_cfg.h default colors will be used:

 

For example:

 

/******************************************************************************
* General object colors
******************************************************************************/

// standard normal color fore
#define D4D_COLOR_FORE_NORM  D4D_COLOR_YELLOW
// standard normal color background
#define D4D_COLOR_BCKG_NORM  D4D_COLOR_LIGHT_GREY

// standard disabled color fore
#define D4D_COLOR_FORE_DISABLED D4D_COLOR_WHITE
// standard disabled color background
#define D4D_COLOR_BCKG_DISABLED D4D_COLOR_LIGHT_GREY

// standard focus color fore
#define D4D_COLOR_FORE_FOCUS D4D_COLOR_ORANGE
// standard focus color background
#define D4D_COLOR_BCKG_FOCUS D4D_COLOR_WHITE

// standard capturing color fore
#define D4D_COLOR_FORE_CAPTURE D4D_COLOR_BRIGHT_RED
// standard capturing color background
#define D4D_COLOR_BCKG_CAPTURE D4D_COLOR_WHITE

 

Best Regards,

 

Luis

View solution in original post

0 Kudos
1 Reply
431 Views
LuisCasado
NXP Employee
NXP Employee

Hi,

 

All the objects will use the default scheme colors. You can define a particular color scheme color using:

 

pScheme—Pointer to a color scheme, if its NULL, default scheme is used.

 

when you declare the object. Otherwise the d4d_user_cfg.h default colors will be used:

 

For example:

 

/******************************************************************************
* General object colors
******************************************************************************/

// standard normal color fore
#define D4D_COLOR_FORE_NORM  D4D_COLOR_YELLOW
// standard normal color background
#define D4D_COLOR_BCKG_NORM  D4D_COLOR_LIGHT_GREY

// standard disabled color fore
#define D4D_COLOR_FORE_DISABLED D4D_COLOR_WHITE
// standard disabled color background
#define D4D_COLOR_BCKG_DISABLED D4D_COLOR_LIGHT_GREY

// standard focus color fore
#define D4D_COLOR_FORE_FOCUS D4D_COLOR_ORANGE
// standard focus color background
#define D4D_COLOR_BCKG_FOCUS D4D_COLOR_WHITE

// standard capturing color fore
#define D4D_COLOR_FORE_CAPTURE D4D_COLOR_BRIGHT_RED
// standard capturing color background
#define D4D_COLOR_BCKG_CAPTURE D4D_COLOR_WHITE

 

Best Regards,

 

Luis

0 Kudos