svn path=/trunk/winforms/; revision=61473
This commit is contained in:
Jackson Harper 2006-06-05 23:36:06 +00:00
Родитель 3bd0d951c4
Коммит 9d8283159f
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -5,7 +5,7 @@ using System.Windows.Forms;
public class ToolWindowTest : Form { public class ToolWindowTest : Form {
private bool sizable; private bool sizable = true;
private Button button; private Button button;
public ToolWindowTest () public ToolWindowTest ()
@ -25,9 +25,11 @@ public class ToolWindowTest : Form {
form.Text = "tool window"; form.Text = "tool window";
if (sizable) { if (sizable) {
form.FormBorderStyle = FormBorderStyle.SizableToolWindow; form.FormBorderStyle = FormBorderStyle.SizableToolWindow;
form.Text = "Sizable Tool Window";
button.Text = "Gimme a Fixed Tool Window"; button.Text = "Gimme a Fixed Tool Window";
} else { } else {
form.FormBorderStyle = FormBorderStyle.FixedToolWindow; form.FormBorderStyle = FormBorderStyle.FixedToolWindow;
form.Text = "Fixed Tool Window";
button.Text = "Gimme a Sizable Tool Window"; button.Text = "Gimme a Sizable Tool Window";
} }
sizable = !sizable; sizable = !sizable;