Inheritance: System.Windows.Forms.UserControl
Esempio n. 1
0
 public static void RemoveAndAddForTabOrder(YamuiScrollPanel scrollPanel)
 {
     ArrayList controlArraySorted = new ArrayList();
     controlArraySorted.AddRange(scrollPanel.ContentPanel.Controls);
     controlArraySorted.Sort(new TabSchemeComparer(TabOrderManager.TabScheme.AcrossFirst));
     foreach (Control c in controlArraySorted) {
         if (c.Controls.Count == 0) {
             scrollPanel.ContentPanel.Controls.Remove(c);
             scrollPanel.ContentPanel.Controls.Add(c);
         }
     }
 }
Esempio n. 2
0
        public InfoToolTipForm()
        {
            Padding = new Padding(5);

            // add scroll page
            _panel = new YamuiScrollPanel {
                Dock = DockStyle.Fill,
                NoBackgroundImage = true
            };
            Controls.Add(_panel);

            // add label
            _labelContent = new HtmlLabel {
                AutoSizeHeightOnly = true,
                Location = new Point(0, 0),
                Anchor = AnchorStyles.Top | AnchorStyles.Left
            };
            _panel.ContentPanel.Location = new Point(0, 0);
            _panel.ContentPanel.Controls.Add(_labelContent);

            Size = new Size(50, 50);
        }