Пример #1
0
 // Advances to the next widget depending on the autotab setting
 public void Increment()
 {
     if (AutoTab)
     {
         CompositeWidget.TabNext();
     }
 }
Пример #2
0
 public LabeledEdit(CompositeWidget parent, string caption) : base(parent)
 {
     Gap = 0;
     new Fill(this)
     {
         ExpandX = true
     };
     new Label(this, caption)
     {
         ExpandY = true
     };
     new Edit(this);
 }
Пример #3
0
        public Separator(CompositeWidget parent, bool vertical)
        {
            if (vertical)
            {
                ExpandY = true;
            }
            else
            {
                ExpandX = true;
            }

            AttachDriverObject(parent, Guppy.Driver.CreateSeparator(this, vertical));
        }
Пример #4
0
 public ButtonBar(CompositeWidget parent, params string[] buttons) : base(parent)
 {
     new Fill(this)
     {
         ExpandX = true
     };
     foreach (string str in buttons)
     {
         new Button(this, str)
         {
             UniformWidth = true
         };
     }
     new Fill(this);
 }
Пример #5
0
 public void UpdateLabel()
 {
     Text = string.Join(",", _bindings.Where(str => !string.IsNullOrWhiteSpace(str)));
     CompositeWidget.RefreshTooltip();
 }
Пример #6
0
 public Fill(CompositeWidget parent)
 {
     AttachDriverObject(parent, null);
 }
Пример #7
0
 public GridBox(CompositeWidget parent, int linecnt, bool vertical) : base(parent, null, null)
 {
     this.linecount = linecnt;
     this.vertical  = vertical;
 }
Пример #8
0
 public HBox(CompositeWidget parent)
     : base(parent, null, null)
 {
     ChildrenAlign = GuppyEx.LayoutAlign.Center;
     //ChildrenExpandX = false;
 }
Пример #9
0
 public VBox(CompositeWidget parent)
     : base(parent, null, null) //vbox has no driver representation
 {
 }
Пример #10
0
        public TableLayout(CompositeWidget parent)

        {
            AttachDriverObject(parent, null);
        }