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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
793件の閲覧回数
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 解決策
528件の閲覧回数
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 返答(返信)
529件の閲覧回数
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 件の賞賛
528件の閲覧回数
Maciek
Contributor V

Thanks for help. It works.

Regards

Maciek

0 件の賞賛