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,273件の閲覧回数
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,041件の閲覧回数
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,042件の閲覧回数
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 件の賞賛
返信