public override void InitializeControls () { base.InitializeControls(); Texture texture = TextureManager.Instance.Find(ResourceLocator.GetFullPath("Planets/Earth/earth.dds"), TextureMagFilter.Nearest, TextureMinFilter.Nearest, TextureWrapMode.Clamp, TextureWrapMode.Clamp); this.progressBar = new ProgressBar(this.frameMgr, this); this.progressBar.Location = new Point(10, 10); this.progressBar.Size = new Size(200, 20); this.progressBar.Value = 75; this.progressBar.BorderSize = 1; AddChildControl(this.progressBar); this.button = new Button(this.frameMgr, this); this.button.Location = new Point(10, 40); this.button.Size = new Size(100,25); this.button.BorderSize = 1; AddChildControl(this.button); this.picture = new Picture(this.frameMgr, this); this.picture.Location = new Point(10, 70); this.picture.Size = new Size(200, 200); this.picture.BorderSize = 1; this.picture.Texture = texture; AddChildControl(this.picture); this.vScrollBar = new VScrollBar(this.frameMgr, this); this.vScrollBar.Location = new Point(220, 10); this.vScrollBar.Size = new Size(40, 260); AddChildControl(this.vScrollBar); }
public override void InitializeControls() { base.InitializeControls(); this.btnAdd = new Button(frameMgr, this); this.btnAdd.Text = "Add"; this.btnAdd.BorderSize = 1; this.btnAdd.Size = new Size(10, 20); AddChildControl(this.btnAdd); this.btnDelete = new Button(frameMgr, this); this.btnDelete.Text = "Delete"; this.btnDelete.BorderSize = 1; this.btnDelete.Size = new Size(10, 20); AddChildControl(this.btnDelete); this.lstWaypoint = new ListBox(frameMgr, this); this.lstWaypoint.BorderSize = 0; AddChildControl(this.lstWaypoint); this.txtStatus = new Textbox(frameMgr, this); this.txtStatus.BorderSize = 1; AddChildControl(this.txtStatus); }