PDA

View Full Version : VGUI Element


Nial
06-27-2007, 12:40 PM
I'm trying to create a HUD element that wraps the text I place in it. Right now, I'm just using SetLabelText, which is essentially what I need, except that it doesn't wrap the text. For example:

What I'm getting:
This text is unwrapped.

What I'm looking for:
This text
is wrapped.

The developer WIKI doesn't have any information on this (or, I can't find any). Any suggestions?

Paul|zero
06-27-2007, 05:38 PM
Not sure what SetLabelText is, but, if you're using a vgui::Label control, call,

theLabel->SetWrap( true );