public CheckBox( String name, String caption, Real width )
{
IsCursorOver = false;
isFitToContents = width <= 0;
element = OverlayManager.Instance.Elements.CreateElementFromTemplate
( "SdkTrays/CheckBox", "BorderPanel", name );
OverlayElementContainer c = (OverlayElementContainer)element;
this.textArea = (TextArea)c.Children[ Name + "/CheckBoxCaption" ];
this.square = (BorderPanel)c.Children[ Name + "/CheckBoxSquare" ];
this.x = this.square.Children[ this.square.Name + "/CheckBoxX" ];
this.x.Hide();
element.Width = width;
this.Caption = caption;
}