public Label( String name, String caption, Real width )
{
element = OverlayManager.Instance.Elements.CreateElementFromTemplate( "SdkTrays/Label", "BorderPanel", name );
this.textArea = (TextArea)( (OverlayElementContainer)element ).Children[ Name + "/LabelCaption" ];
this.textArea.Text = caption;
this.Caption = caption;
if ( width <= 0 )
this.isFitToTray = true;
else
{
this.isFitToTray = false;
element.Width = width;
}
}