eGUI - D4D_SetText doesn't work for Label object (v3.0)

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

eGUI - D4D_SetText doesn't work for Label object (v3.0)

跳至解决方案
774 次查看
Maciek
Contributor V

Hi,

I'm updating label content (label text) depending on what button was pressed and some other data.

On each update, the updated (new) text overlaps the old text (or 'superposition' of previous texts) - I get superposition of both texts on the screen.

I would expect that the old text should be erased, and only the new one should be visible on screen.

I've checked both: D4D_SetText and D4D_LabelSetText.

There is no such problem with the Button widget...

I don't think this is the expected behaviour - or maybe I don't understand the widget behaviour ?

Regards

Maciek

0 项奖励
1 解答
509 次查看
LuisCasado
NXP Employee
NXP Employee

Hello,

Change in d4d_user_cfg.h

#define D4D_LBL_FNT_PRTY_DEFAULT  ( D4D_FNT_PRTY_TRANSPARENT_YES_MASK )

By:

#define D4D_LBL_FNT_PRTY_DEFAULT  ( D4D_FNT_PRTY_TRANSPARENT_NO_MASK )

Best Regards,

Luis

在原帖中查看解决方案

0 项奖励
2 回复数
510 次查看
LuisCasado
NXP Employee
NXP Employee

Hello,

Change in d4d_user_cfg.h

#define D4D_LBL_FNT_PRTY_DEFAULT  ( D4D_FNT_PRTY_TRANSPARENT_YES_MASK )

By:

#define D4D_LBL_FNT_PRTY_DEFAULT  ( D4D_FNT_PRTY_TRANSPARENT_NO_MASK )

Best Regards,

Luis

0 项奖励
509 次查看
Maciek
Contributor V

Thanks for help. It works.

Regards

Maciek

0 项奖励