Simple tab control test
svn path=/trunk/winforms/; revision=35604
This commit is contained in:
Родитель
90b7f34067
Коммит
ccea1d2b01
|
@ -0,0 +1,10 @@
|
|||
all: mono
|
||||
|
||||
mono: swf-tabcontrol.cs
|
||||
mcs swf-tabcontrol.cs /r:System.Windows.Forms.dll /r:System.Drawing.dll
|
||||
|
||||
dotnet: swf-tabcontrol.cs
|
||||
csc swf-tabcontrol.cs /r:System.Windows.Forms.dll /r:System.Drawing.dll
|
||||
|
||||
clean:
|
||||
rm swf-tabcontrol.exe -r -f
|
|
@ -0,0 +1,51 @@
|
|||
//
|
||||
// swf-tabcontrol.cs
|
||||
//
|
||||
// Author(s):
|
||||
// Jackson Harper (jackson@ximian.com)
|
||||
//
|
||||
// Copyright (C) Novell, Inc (http://www.novell.com)
|
||||
//
|
||||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace System.Windows.Forms {
|
||||
|
||||
public class TabControlDemo : Form {
|
||||
|
||||
public TabControlDemo ()
|
||||
{
|
||||
TabControl tab = new TabControl ();
|
||||
tab.Alignment = TabAlignment.Top;
|
||||
// tab.Appearance = TabAppearance.FlatButtons;
|
||||
// tab.Multiline = true;
|
||||
|
||||
tab.Controls.Add (new TabPage ("Tab A"));
|
||||
tab.Controls.Add (new TabPage ("Tab B"));
|
||||
tab.Controls.Add (new TabPage ("Tab C"));
|
||||
tab.Controls.Add (new TabPage ("Tab D"));
|
||||
tab.Controls.Add (new TabPage ("Tab E"));
|
||||
|
||||
tab.Controls.Add (new TabPage ("Tab F"));
|
||||
tab.Controls.Add (new TabPage ("Tab G"));
|
||||
tab.Controls.Add (new TabPage ("Tab H"));
|
||||
tab.Controls.Add (new TabPage ("Tab I"));
|
||||
tab.Controls.Add (new TabPage ("Tab J"));
|
||||
tab.Controls.Add (new TabPage ("Tab K"));
|
||||
|
||||
tab.Height = 200;
|
||||
tab.SelectedIndex = 3;
|
||||
Controls.Add (tab);
|
||||
|
||||
}
|
||||
|
||||
public static void Main ()
|
||||
{
|
||||
Application.Run (new TabControlDemo ());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче