Example:
Code: Select all
Label.Value = _("Continue");
log(Label.ComputeWidth(Label.Value));
Code: Select all
Label.Value = TL::Compose("Current attacker: %1", Players[0].User.Name);
log(Label.ComputeWidth(Label.Value));
Moderator: English Moderator
Code: Select all
Label.Value = _("Continue");
log(Label.ComputeWidth(Label.Value));
Code: Select all
Label.Value = TL::Compose("Current attacker: %1", Players[0].User.Name);
log(Label.ComputeWidth(Label.Value));
Maybe it is fixed by now, but as I learned about the not yet released ComputeHeight function in the same post in february 2015, I'm scepticalnoyranea wrote: Label.ComputeWidth(Text) returns only the length of the last line (more precisely the length it should have without autonewline=True[...]). This will be fixed soon.
Users browsing this forum: No registered users and 0 guests