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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,250 次查看
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 项奖励
回复
1 解答
1,018 次查看
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 项奖励
回复
1 回复
1,019 次查看
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 项奖励
回复