Ejemplo n.º 1
0
 public LabelHandler()
 {
     Control = new EtoLabel
     {
         AutoSize = true
     };
 }
Ejemplo n.º 2
0
 public LabelHandler()
 {
     eventBox = new Gtk.EventBox();
     //eventBox.VisibleWindow = false;
     Control = new EtoLabel();
     Wrap    = WrapMode.Word;
     Control.SetAlignment(0, 0);
     eventBox.Child = Control;
 }
Ejemplo n.º 3
0
 public LabelHandler()
 {
     eventBox = new Gtk.EventBox();
     eventBox.VisibleWindow = false;
     Control = new EtoLabel {
         SingleLineMode = false,
         LineWrap       = true,
         LineWrapMode   = Pango.WrapMode.Word
     };
     Control.SetAlignment(0, 0);
     eventBox.Child = (Gtk.Label)Control;
 }
Ejemplo n.º 4
0
 public LabelHandler()
 {
     text    = new swc.AccessText();
     Control = new EtoLabel
     {
         Padding = new sw.Thickness(0),
         Content = text
     };
     Control.Target  = Control;
     HorizontalAlign = HorizontalAlign.Left;
     VerticalAlign   = VerticalAlign.Top;
 }
Ejemplo n.º 5
0
        public LabelHandler()
        {
            eventBox = new EtoEventBox {
                Handler = this
            };
#if GTK2
            eventBox.ResizeMode = Gtk.ResizeMode.Immediate;
#endif
            Control        = new EtoLabel();
            Control.Xalign = 0;
            Control.Yalign = 0;
            eventBox.Child = Control;
            Wrap           = WrapMode.Word;
        }
Ejemplo n.º 6
0
 public LabelHandler()
 {
     Enabled = true;
     Control = new EtoLabel
     {
         Handler = this,
         Cell = new MyTextFieldCell { StringValue = string.Empty },
         DrawsBackground = false,
         Bordered = false,
         Bezeled = false,
         Editable = false,
         Selectable = false,
         Alignment = NSTextAlignment.Left
     };
     is106 = Control.Cell.RespondsToSelector(new Selector("setUsesSingleLineMode:"));
     if (is106)
         Control.Cell.UsesSingleLineMode = false;
     Control.Cell.LineBreakMode = NSLineBreakMode.ByWordWrapping;
 }
Ejemplo n.º 7
0
 public LabelHandler()
 {
     Enabled        = true;
     paragraphStyle = new NSMutableParagraphStyle();
     str            = new NSMutableAttributedString();
     textColor      = NSColor.Text;
     underlineIndex = -1;
     Control        = new EtoLabel
     {
         Handler         = this,
         Cell            = new MyTextFieldCell(),
         DrawsBackground = false,
         Bordered        = false,
         Bezeled         = false,
         Editable        = false,
         Selectable      = false,
         Alignment       = NSTextAlignment.Left,
     };
     if (supportsSingleLine)
     {
         Control.Cell.UsesSingleLineMode = false;
     }
     paragraphStyle.LineBreakMode = NSLineBreakMode.ByWordWrapping;
 }
Ejemplo n.º 8
0
 public LabelHandler()
 {
     Control = new EtoLabel(this);
 }