Example #1
0
 private GWindowsButton AddButton(string name, int index, OnClick onClick)
 {
     GWindowsButton toAdd = new GWindowsButton(name, 0x103, (30 + (index * 0x19)) - 0x16, 0x2f, 0x16) {
         OnClick = onClick
     };
     base.Client.Children.Add(toAdd);
     return toAdd;
 }
Example #2
0
        private GWindowsButton AddButton(string name, int index, OnClick onClick)
        {
            GWindowsButton toAdd = new GWindowsButton(name, 0x103, (30 + (index * 0x19)) - 0x16, 0x2f, 0x16)
            {
                OnClick = onClick
            };

            base.Client.Children.Add(toAdd);
            return(toAdd);
        }
Example #3
0
 public GWindowsForm(int x, int y, int width, int height) : base(x, y)
 {
     base.m_CanDrag      = true;
     base.m_QuickDrag    = true;
     this.m_Width        = width;
     this.m_Height       = height;
     this.m_CaptionLabel = new GLabel("Form", Engine.GetUniFont(1), Hues.Default, 7, 3);
     base.m_Children.Add(this.m_CaptionLabel);
     this.m_Client = new GEmpty(0, 0, 0, 0);
     base.m_Children.Add(this.m_Client);
     this.m_CloseButton            = new GWindowsButton("", 0, 0, 0x10, 14);
     this.m_CloseButton.ImageColor = 0;
     this.m_CloseButton.Image      = Engine.m_FormX;
     this.m_CloseButton.Clicked   += new EventHandler(this.CloseButton_Clicked);
     base.m_Children.Add(this.m_CloseButton);
     this.ResizeClient();
 }
Example #4
0
 public GWindowsForm(int x, int y, int width, int height)
     : base(x, y)
 {
     base.m_CanDrag = true;
     base.m_QuickDrag = true;
     this.m_Width = width;
     this.m_Height = height;
     this.m_CaptionLabel = new GLabel("Form", Engine.GetUniFont(1), Hues.Default, 7, 3);
     base.m_Children.Add(this.m_CaptionLabel);
     this.m_Client = new GEmpty(0, 0, 0, 0);
     base.m_Children.Add(this.m_Client);
     this.m_CloseButton = new GWindowsButton("", 0, 0, 0x10, 14);
     this.m_CloseButton.ImageColor = 0;
     this.m_CloseButton.Image = Engine.m_FormX;
     this.m_CloseButton.Clicked += new EventHandler(this.CloseButton_Clicked);
     base.m_Children.Add(this.m_CloseButton);
     this.ResizeClient();
 }