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

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

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

Jump to solution
718 Views
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 Kudos
1 Solution
453 Views
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

View solution in original post

0 Kudos
2 Replies
454 Views
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 Kudos
453 Views
Maciek
Contributor V

Thanks for help. It works.

Regards

Maciek

0 Kudos