Beispiel #1
0
        public ScrollView()
        {
            Dock   = DockStyle.Fill;
            Margin = new Squid.Margin(2);

            Panel      = new Panel();
            Panel.Dock = DockStyle.Fill;
            Panel.VScroll.ButtonUp.Visible   = false;
            Panel.VScroll.ButtonDown.Visible = false;
            Panel.VScroll.Size                = new Point(13, 12);
            Panel.VScroll.Slider.Style        = "window";
            Panel.VScroll.Slider.Button.Style = "button";
            Panel.VScroll.Dock                = DockStyle.Right;
            Panel.VScroll.Margin              = new Margin(4, 0, 0, 0);
            Panel.HScroll.Size                = new Point(0, 0);
            Elements.Add(Panel);

            Content          = new Frame();
            Content.AutoSize = AutoSize.Vertical;
            Content.Dock     = DockStyle.Top;
            Panel.Content.Controls.Add(Content);
        }
Beispiel #2
0
        public ScrollView()
        {
            Dock = DockStyle.Fill;
            Margin = new Squid.Margin(2);

            Panel = new Panel();
            Panel.Dock = DockStyle.Fill;
            Panel.VScroll.ButtonUp.Visible = false;
            Panel.VScroll.ButtonDown.Visible = false;
            Panel.VScroll.Size = new Point(13, 12);
            Panel.VScroll.Slider.Style = "window";
            Panel.VScroll.Slider.Button.Style = "button";
            Panel.VScroll.Dock = DockStyle.Right;
            Panel.VScroll.Margin = new Margin(4, 0, 0, 0);
            Panel.HScroll.Size = new Point(0, 0);
            Elements.Add(Panel);

            Content = new Frame();
            Content.AutoSize = AutoSize.Vertical;
            Content.Dock = DockStyle.Top;
            Panel.Content.Controls.Add(Content);
        }
Beispiel #3
0
 static Margin()
 {
     Empty = new Margin(0);
 }
Beispiel #4
0
 /// <summary>
 /// Subtracts the specified p1.
 /// </summary>
 /// <param name="p1">The p1.</param>
 /// <param name="p2">The p2.</param>
 /// <returns>Margin.</returns>
 public static Margin Subtract(Margin p1, Margin p2)
 {
     return(p1 - p2);
 }
Beispiel #5
0
 /// <summary>
 /// Adds the specified p1.
 /// </summary>
 /// <param name="p1">The p1.</param>
 /// <param name="p2">The p2.</param>
 /// <returns>Margin.</returns>
 public static Margin Add(Margin p1, Margin p2)
 {
     return(p1 + p2);
 }