//----------------------------------------------------------------------------//
void MultiLineEditboxWindowRenderer::onLookNFeelAssigned()
{
assert(d_window != 0);
// ensure window's text has a terminating \n
String text(d_window->getText());
if (text.empty() || text[text.length() - 1] != '\n')
{
text.append(1, '\n');
d_window->setText(text);
}
}
——Why to append '\n' here? Confusing
MultilineEditbox and '\n'
Moderators: CEGUI MVP, CEGUI Team
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 2 guests