DirectEntry text property changes not instantly visible

Bug #874136 reported by Epihaius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Panda3D
New
Undecided
Unassigned

Bug Description

When changing properties of the text that has already been typed into a DirectEntry, I would expect to see those changes immediately. However, those changes are only applied to subsequently typed text.

In more detail:

after I typed some text, it keeps its properties even after I change those properties on the underlying TextNode, using for example entry.guiItem.getTextDef(0).setTextColor(0., 1., 0., 1.) (or doing it the "intended" way - entry["text_fg"] = (0., 1., 0., 1.) - which has the exact same effect) to set the text to green.
Text typed after that change *is* green, but the previous text (to the left of that green text) simply remains black.
Furthermore, the changes only take effect from the second character onward after the change. So if I type "123", then change the color to green and type "456", "4" will still be black and only "56" will be green.

Forum topic: http://www.panda3d.org/forums/viewtopic.php?t=12066

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.