View Full Version : VGUI Element

06-27-2007, 11:40 AM
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?

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

theLabel->SetWrap( true );