public winDebug() { this.Size = new Size(300, 300); this.Location = GetCenter(this.Size); this.ShowInTaskBar = true; this.TaskBarText = "Debug Window"; this.Text = "Debug Window"; txtTest = new Client.Logic.Gui.Textbox.Textbox(); txtTest.Location = new Point(0, 0); txtTest.BackColor = Color.Black; txtTest.ForeColor = Color.Gray; txtTest.Size = new Size(154, 100); //txtPassword.PasswordChar = '*'; //txtPassword.Text = IO.Options.SavedPassword; txtTest.FocusOnClick = true; progressBar = new Client.Logic.Gui.ProgressBar(); progressBar.Size = new Size(200, 50); progressBar.Location = new Point(10, 0); progressBar.ProgressBarColor = Color.Blue; progressBar.Value = 50; btnTest = new Client.Logic.Gui.Button(); btnTest.Location = new Point(10, 0); btnTest.Size = new Size(50, 50); btnTest.Text = "Hi"; //this.AddControl(txtTest); this.AddControl(progressBar); progressBar.AddControl(btnTest); }
private void Init() { if (base.ContainsControl(btnUp)) { base.RemoveControl(btnUp); } btnUp = new Button(); btnUp.OnClick += new EventHandler<SdlDotNet.Input.MouseButtonEventArgs>(btnUp_OnClick); btnUp.Location = new Point(0, 0); btnUp.Size = new Size(this.Width, buttonHeight); btnUp.Backcolor = SystemColors.Control; this.AddControl(btnUp); if (base.ContainsControl(btnDown)) { base.RemoveControl(btnDown); } btnDown = new Button(); btnDown.OnClick += new EventHandler<SdlDotNet.Input.MouseButtonEventArgs>(btnDown_OnClick); btnDown.Location = new Point(0, this.Height - buttonHeight); btnDown.Size = new Size(this.Width, 10); btnDown.Backcolor = SystemColors.Control; this.AddControl(btnDown); mBackground = new SdlDotNet.Graphics.Surface(this.Width, this.Height - (buttonHeight * 2)); cursorSurf = new SdlDotNet.Graphics.Surface(7, 12); cursorSurf.Fill(Color.Gray); }