本文整理汇总了C#中System.Windows.Forms.Splitter类的典型用法代码示例。如果您正苦于以下问题:C# Splitter类的具体用法?C# Splitter怎么用?C# Splitter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Splitter类属于System.Windows.Forms命名空间,在下文中一共展示了Splitter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: OnBarUpdate
protected override void OnBarUpdate()
{
if (ChartControl == null || _x )
return;
if (!ChartControl.Controls.ContainsKey("TSEco_News"))
{
_myitem0 = new ToolStripSeparator();
_myitem0.Name = "TradingStudiesEcoSeparator";
_myitem1 = new ToolStripButton("Hide News");
_myitem1.Text = "Hide News";
_myitem1.Name = "TradingStudiesEcoNews";
_myitem1.Click += ToolClick1;
_myitem1.Enabled = true;
_myitem1.ForeColor = Color.Black;
_mystrip = (ToolStrip) ChartControl.Controls["tsrTool"];
_mystrip.Items.Add(_myitem0);
_mystrip.Items.Add(_myitem1);
_sp = new Splitter();
_sp.Name = "TSEco_Splitter";
_sp.Dock = _dp == DockingPlace.Below ? DockStyle.Bottom : DockStyle.Top;
ChartControl.Controls.Add(_sp);
_so = new EcoNewsControl.EcoNewsControl(Cbi.Core.InstallDir + @"\Sounds", Cbi.Core.UserDataDir + @"bin\Custom\");
_so.Dock = _dp == DockingPlace.Below ? DockStyle.Bottom : DockStyle.Top;
_so.Name = "TSEco_News";
ChartControl.Controls.Add(_so);
}
else
_so = ChartControl.Controls["TSEco_News"] as EcoNewsControl.EcoNewsControl;
_x = true;
}
开发者ID:redrhino,项目名称:NinjaTrader.Base,代码行数:33,代码来源:EcoNewsIndicator.cs
示例2: MainForm
public MainForm()
{
rmsController = new RMS_Controller();
rmsController.MainFrm = this;
InitializeComponent();
Panel leftPanel = new Panel();
leftPanel.AutoScroll = true;
leftPanel.Width = 350;
leftPanel.Dock = DockStyle.Left;
Splitter splitterCtrl = new Splitter();
splitterCtrl.Dock = DockStyle.Left;
splitterCtrl.MinExtra = 200;
splitterCtrl.MinSize = 200;
Panel mainPanel = new Panel();
mainPanel.AutoScroll = true;
mainPanel.Dock = DockStyle.Fill;
this.Controls.AddRange(new Control[] {mainPanel, splitterCtrl, leftPanel});
Contract_Control contractsCtrl = new Contract_Control(rmsController);
contractsCtrl.Dock = DockStyle.Fill;
leftPanel.Controls.Add(contractsCtrl);
RateSchedule_Control rateScheduleCtrl = new RateSchedule_Control(rmsController);
rateScheduleCtrl.Dock = DockStyle.Fill;
mainPanel.Controls.Add(rateScheduleCtrl);
//rmsController.RateIDChanged += new System.EventHandler(this.RateID_Changed);
//rmsController.RateScheduleChange += new System.EventHandler(this.RateID_Changed);
}
开发者ID:RookieOne,项目名称:RMS_Refactor,代码行数:34,代码来源:MainForm.cs
示例3: EditorContainer
//private DockPanel _DockPanel;
//private DockState _DockState;
public EditorContainer(Editor editor, DockPanel dock, DockState dockState = DockState.Document)
{
Editor = editor;
Editor.UndoRedoStateChanged += Editor_UndoRedoStateChanged;
Editor.TextChangedDelayed += Editor_TextChangedDelayed;
Splitter = new Splitter() { Dock = DockStyle.Right, BackColor = SystemColors.ControlDarkDark, Width = 4 };
DocumentMap = new DocumentMap() {
Target = editor,
Dock = DockStyle.Right,
Width = DocumentMapInitialWidth,
MinimumSize = new Size(DocumentMapMinimumWidth, 0),
Scale = DocumentMapInitialWidth * DocumentMapScaleFactor,
BackColor = EditorSyntax.Styles.Background,
ForeColor = Color.FromArgb(0, 122, 204)
};
DocumentMap.DoubleClick += DocumentMap_DoubleClick;
DocumentMap.MouseWheel += DocumentMap_MouseWheel;
Splitter.SplitterMoved += Splitter_SplitterMoved;
Name = Editor.File.FileName;
ToolTipText = Editor.File.Path;
Controls.Add(Editor);
Controls.Add(Splitter);
Controls.Add(DocumentMap);
UpdateText(true);
FormClosing += EditorContainer_FormClosing;
FormClosed += EditorContainer_FormClosed;
System.Threading.Thread.Sleep(10);
dock.Invoke(new Action(() => { Show(dock, dockState); }));
}
开发者ID:rbrzezinski,项目名称:Trax,代码行数:31,代码来源:EditorContainer.cs
示例4: SideBar
/// <summary>
/// Конструктор класса
/// </summary>
/// <param name="Caption">Заголовок для боковой панели</param>
/// <param name="parent">Боковая панель</param>
/// <param name="splitter">Сплиттер</param>
/// <param name="formParent">Родительская форма</param>
public SideBar(String Caption, Control parent, Splitter splitter, BankLab formParent)
{
SideBarSplitter = splitter;
SideBarPanel = (Panel)parent;
FormParent = formParent;
SideBarTitle = CreateSideBarTitle(Caption);
}
开发者ID:JDevelopBox,项目名称:Banklab,代码行数:14,代码来源:SideBar.cs
示例5: AddToolWindow
public void AddToolWindow(ToolWindow toolWindow, int toolWindowGroupIndex)
{
ToolWindowHost host;
if (toolWindowGroupIndex != -1)
{
if (this.ToolWindowHosts.Count <= toolWindowGroupIndex)
{
toolWindowGroupIndex = this.ToolWindowHosts.Count - 1;
}
host = (ToolWindowHost) this._toolWindowHosts[toolWindowGroupIndex];
}
else
{
host = new DockedToolWindowHost(this._toolWindowManager);
if (this.ToolWindowHosts.Count != 0)
{
Splitter splitter = new Splitter();
splitter.Size = new Size(4, 4);
splitter.Dock = host.Dock = this.ContainedControlDockStyle;
base.Controls.Add(splitter);
}
this._toolWindowHosts.Add(host);
base.Controls.Add(host);
host.Visible = true;
}
host.AddToolWindow(toolWindow);
}
开发者ID:ikvm,项目名称:webmatrix,代码行数:29,代码来源:DockingContainer.cs
示例6: Form1
public Form1()
{
InitializeComponent();
this.Text = "Splitter 컨트롤 사용하기";
TreeView treeView = new TreeView();
ListView listView = new ListView();
Splitter splitter = new Splitter(); // splitter 개체 생성(과거버전)
treeView.Dock = DockStyle.Left; // 트리뷰를 폼의 외쪽에 배치
splitter.Dock = DockStyle.Left; // 스플리터를 폼의 왼쪽에 배치
splitter.MinExtra = 100; // 스플리터와 컨테이너 반대쪽 가장자리 사이의 간격
splitter.MinSize = 75; // 스플리터와 컨트롤 간의 최소 간격
listView.Dock = DockStyle.Fill; // 리스트뷰는 화면 전체에 채움
treeView.Nodes.Add("트리 노드1");
treeView.Nodes.Add("트리 노드2");
listView.Items.Add("리스트 아이템1");
listView.Items.Add("리스트 아이템2");
// 폼에 리스트뷰, 스플리터, 트리뷰 컨트롤을 추가
this.Controls.AddRange(new Control[] { listView, splitter, treeView });
}
开发者ID:gawallsibya,项目名称:BIT_MFC-CShap-DotNet,代码行数:26,代码来源:Form1.cs
示例7: ImportData_Control
public ImportData_Control()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
progBar = new RMS_ProgressBar();
progBar.Dock = DockStyle.Bottom;
progBar.setAlignment("Center");
topPanel.Controls.Add(progBar);
sourcePanel = new Panel();
sourcePanel.AutoScroll = true;
sourcePanel.Width = 350;
sourcePanel.Dock = DockStyle.Left;
Splitter splitterCtrl = new Splitter();
splitterCtrl.Dock = DockStyle.Left;
splitterCtrl.MinExtra = 200;
splitterCtrl.MinSize = 200;
destinationPanel = new Panel();
destinationPanel.AutoScroll = true;
destinationPanel.Dock = DockStyle.Fill;
fieldsGroupBx.Controls.AddRange(new Control[] {destinationPanel, splitterCtrl, sourcePanel});
}
开发者ID:RookieOne,项目名称:RMS_Refactor,代码行数:26,代码来源:ImportData_Control.cs
示例8: SetupForm
public SetupForm(Splitter aSplitter, IItemBrowser aBrowser)
{
mSplitter = aSplitter;
mBrowser = aBrowser;
InitializeComponent();
if (mSplitter.mBitsValueItemHandle != -1)
{
itemEditBox_Value.ItemName = mBrowser.getItemNameByHandle(mSplitter.mBitsValueItemHandle);
itemEditBox_Value.ItemToolTip = mBrowser.getItemToolTipByHandle(mSplitter.mBitsValueItemHandle);
}
switch (mSplitter.mDataFlow)
{
case EDataFlow.FROM: comboBox_DataFlow.SelectedIndex = 0; break;
case EDataFlow.TO: comboBox_DataFlow.SelectedIndex = 1; break;
case EDataFlow.BOTH: comboBox_DataFlow.SelectedIndex = 2; break;
}
for (int i = 0; i < mSplitter.mBitItemHandles.Length; i++)
{
if (mSplitter.mBitItemHandles[i] != -1)
{
dataGridView_Bit.Rows.Add((decimal)i, mBrowser.getItemNameByHandle(mSplitter.mBitItemHandles[i]));
}
}
if (dataGridView_Bit.RowCount == 0)
{
button_Delete.Enabled = false;
button_Modify.Enabled = false;
}
}
开发者ID:yuriik83,项目名称:Process-Simulator-2-OpenSource,代码行数:33,代码来源:SetupForm.cs
示例9: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.grid = new System.Windows.Forms.PropertyGrid();
this.splitter1 = new System.Windows.Forms.Splitter();
this.tboxElementHtml = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// grid
//
this.grid.BackColor = System.Drawing.SystemColors.Control;
this.grid.CommandsVisibleIfAvailable = true;
this.grid.Dock = System.Windows.Forms.DockStyle.Right;
this.grid.HelpVisible = false;
this.grid.LargeButtons = false;
this.grid.LineColor = System.Drawing.SystemColors.ScrollBar;
this.grid.Location = new System.Drawing.Point(376, 0);
this.grid.Name = "grid";
this.grid.PropertySort = System.Windows.Forms.PropertySort.Categorized;
this.grid.Size = new System.Drawing.Size(232, 310);
this.grid.TabIndex = 0;
this.grid.Text = "propertyGrid1";
this.grid.ViewBackColor = System.Drawing.Color.White;
this.grid.ViewForeColor = System.Drawing.SystemColors.WindowText;
//
// splitter1
//
this.splitter1.Dock = System.Windows.Forms.DockStyle.Right;
this.splitter1.Location = new System.Drawing.Point(373, 0);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(3, 310);
this.splitter1.TabIndex = 1;
this.splitter1.TabStop = false;
//
// tboxElementHtml
//
this.tboxElementHtml.BackColor = System.Drawing.Color.White;
this.tboxElementHtml.Dock = System.Windows.Forms.DockStyle.Fill;
this.tboxElementHtml.Location = new System.Drawing.Point(0, 0);
this.tboxElementHtml.Multiline = true;
this.tboxElementHtml.Name = "tboxElementHtml";
this.tboxElementHtml.ReadOnly = true;
this.tboxElementHtml.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.tboxElementHtml.Size = new System.Drawing.Size(373, 310);
this.tboxElementHtml.TabIndex = 2;
this.tboxElementHtml.Text = "";
//
// ElementProperties
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(608, 310);
this.Controls.Add(this.tboxElementHtml);
this.Controls.Add(this.splitter1);
this.Controls.Add(this.grid);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
this.Name = "ElementProperties";
this.Text = "Element Properties";
this.Resize += new System.EventHandler(this.ElementProperties_Resize);
this.ResumeLayout(false);
}
开发者ID:ctsyolin,项目名称:ieunit,代码行数:64,代码来源:ElementProperties.cs
示例10: ResourceSelectionControl
public ResourceSelectionControl( ResourceControl resourceControl )
{
resourceSplitter = new Splitter( );
resourceListBox = new ResourceListBox( );
resourceTreeView = new ResourceTreeView( resourceListBox );
resourceListBox.ResourceTreeView = resourceTreeView;
SuspendLayout( );
// resourceListBox
resourceListBox.Size = new Size( 592, 328 );
resourceListBox.Dock = DockStyle.Fill;
resourceListBox.TabIndex = 0;
resourceListBox.ContextMenu = resourceControl.InternalContextMenu;
// resourceTreeView
resourceTreeView.Dock = DockStyle.Left;
resourceTreeView.Size = new Size( 150, 328 );
// resourceSplitter
resourceSplitter.Dock = DockStyle.Left;
resourceSplitter.MinExtra = 150;
resourceSplitter.MinSize = 150;
Controls.Add( resourceListBox );
Controls.Add( resourceSplitter );
Controls.Add( resourceTreeView );
ResumeLayout( false );
}
开发者ID:mono,项目名称:winforms-tools,代码行数:31,代码来源:ResourceSelectionControl.cs
示例11: TestCaptureWhileSettingSplitPosition
public void TestCaptureWhileSettingSplitPosition ()
{
Form f = new Form ();
TextBox TextBox1 = new TextBox();
TextBox1.Dock = DockStyle.Left;
Splitter Splitter = new Splitter();
Splitter.Dock = DockStyle.Left;
TextBox TextBox2 = new TextBox();
TextBox2.Dock = DockStyle.Fill;
f.Controls.AddRange(new Control[] { TextBox2, Splitter, TextBox1 });
Splitter.Capture = true;
Splitter.SplitPosition = (f.ClientSize.Width - Splitter.Width) / 2;
int position_with_capture = Splitter.SplitPosition;
f.Dispose ();
f = new Form ();
TextBox1 = new TextBox();
TextBox1.Dock = DockStyle.Left;
Splitter = new Splitter();
Splitter.Dock = DockStyle.Left;
TextBox2 = new TextBox();
TextBox2.Dock = DockStyle.Fill;
f.Controls.AddRange(new Control[] { TextBox2, Splitter, TextBox1 });
Splitter.Capture = true;
Splitter.SplitPosition = (f.ClientSize.Width - Splitter.Width) / 2;
Assert.AreEqual (Splitter.SplitPosition, position_with_capture, "1");
}
开发者ID:Profit0004,项目名称:mono,代码行数:32,代码来源:SplitterTest.cs
示例12: ApplicationWindow
public ApplicationWindow()
{
this.Icon = new Icon(this.GetType().Assembly.GetManifestResourceStream("Resourcer.Application.ico"));
this.Font = new Font("Tahoma", 8.25f);
this.Text = (this.GetType().Assembly.GetCustomAttributes(typeof(System.Reflection.AssemblyTitleAttribute), false)[0] as System.Reflection.AssemblyTitleAttribute).Title;
this.Size = new Size(480, 600);
this.MinimumSize = new Size (240, 300);
this.resourceBrowser = new ResourceBrowser();
this.resourceBrowser.Dock = DockStyle.Fill;
this.Controls.Add(this.resourceBrowser);
this.verticalSplitter = new Splitter ();
this.verticalSplitter.Dock = DockStyle.Bottom;
this.verticalSplitter.BorderStyle = BorderStyle.None;
this.Controls.Add(this.verticalSplitter);
this.resourceViewer = new ResourcerViewer();
this.resourceViewer.Dock = DockStyle.Bottom;
this.resourceViewer.Height = 100;
this.Controls.Add(this.resourceViewer);
this.statusBar = new StatusBar();
this.Controls.Add(this.statusBar);
this.commandBarManager = new CommandBarManager();
this.menuBar = new CommandBar(this.commandBarManager, CommandBarStyle.Menu);
this.commandBarManager.CommandBars.Add(this.menuBar);
this.toolBar = new CommandBar(this.commandBarManager, CommandBarStyle.ToolBar);
this.commandBarManager.CommandBars.Add(this.toolBar);
this.Controls.Add(this.commandBarManager);
}
开发者ID:modulexcite,项目名称:Resourcer,代码行数:32,代码来源:ApplicationWindow.cs
示例13: InitializeComponent
/// <summary>
/// This method is required for Windows Forms designer support.
/// Do not change the method contents inside the source code editor. The Forms designer might
/// not be able to load this method if it was changed manually.
/// </summary>
private void InitializeComponent() {
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm));
this.statusBar = new System.Windows.Forms.StatusBar();
this.splitter3 = new System.Windows.Forms.Splitter();
this.dockPanel1 = new WeifenLuo.WinFormsUI.DockPanel();
this.timerExternallyModifiedFiles = new System.Windows.Forms.Timer(this.components);
this.SuspendLayout();
//
// statusBar
//
this.statusBar.Location = new System.Drawing.Point(0, 459);
this.statusBar.Name = "statusBar";
this.statusBar.Size = new System.Drawing.Size(758, 21);
this.statusBar.TabIndex = 6;
//
// splitter3
//
this.splitter3.Dock = System.Windows.Forms.DockStyle.Bottom;
this.splitter3.Location = new System.Drawing.Point(0, 456);
this.splitter3.Name = "splitter3";
this.splitter3.Size = new System.Drawing.Size(758, 3);
this.splitter3.TabIndex = 21;
this.splitter3.TabStop = false;
//
// dockPanel1
//
this.dockPanel1.ActiveAutoHideContent = null;
this.dockPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dockPanel1.Font = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World);
this.dockPanel1.Location = new System.Drawing.Point(0, 0);
this.dockPanel1.Name = "dockPanel1";
this.dockPanel1.Size = new System.Drawing.Size(758, 456);
this.dockPanel1.TabIndex = 23;
//
// timerExternallyModifiedFiles
//
this.timerExternallyModifiedFiles.Interval = 200;
this.timerExternallyModifiedFiles.Tick += new System.EventHandler(this.timerExternallyModifiedFiles_Tick);
//
// MainForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(758, 480);
this.Controls.Add(this.dockPanel1);
this.Controls.Add(this.splitter3);
this.Controls.Add(this.statusBar);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.IsMdiContainer = true;
this.Name = "MainForm";
this.Text = "CH3ETAH";
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Closing += new System.ComponentModel.CancelEventHandler(this.Form_Closing);
this.Load += new System.EventHandler(this.MainForm_Load);
this.Activated += new System.EventHandler(this.MainForm_Activated);
this.Deactivate += new System.EventHandler(this.MainForm_Deactivate);
this.ResumeLayout(false);
}
开发者ID:BackupTheBerlios,项目名称:ch3etah-svn,代码行数:64,代码来源:MainForm.cs
示例14: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.lbDragDropSource = new System.Windows.Forms.ListBox();
this.splitterCentral = new System.Windows.Forms.Splitter();
this.txtMain = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// lbDragDropSource
//
this.lbDragDropSource.Dock = System.Windows.Forms.DockStyle.Left;
this.lbDragDropSource.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lbDragDropSource.IntegralHeight = false;
this.lbDragDropSource.ItemHeight = 20;
this.lbDragDropSource.Name = "lbDragDropSource";
this.lbDragDropSource.Size = new System.Drawing.Size(152, 301);
this.lbDragDropSource.TabIndex = 0;
this.lbDragDropSource.MouseDown += new System.Windows.Forms.MouseEventHandler(this.lbDragDropSource_MouseDown);
this.lbDragDropSource.QueryContinueDrag += new System.Windows.Forms.QueryContinueDragEventHandler(this.lbDragDropSource_QueryContinueDrag);
//
// splitterCentral
//
this.splitterCentral.Location = new System.Drawing.Point(152, 0);
this.splitterCentral.Name = "splitterCentral";
this.splitterCentral.Size = new System.Drawing.Size(3, 301);
this.splitterCentral.TabIndex = 1;
this.splitterCentral.TabStop = false;
//
// txtMain
//
this.txtMain.AcceptsReturn = true;
this.txtMain.AcceptsTab = true;
this.txtMain.AllowDrop = true;
this.txtMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.txtMain.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.txtMain.Location = new System.Drawing.Point(155, 0);
this.txtMain.Multiline = true;
this.txtMain.Name = "txtMain";
this.txtMain.Size = new System.Drawing.Size(333, 301);
this.txtMain.TabIndex = 2;
this.txtMain.Text = "";
this.txtMain.DragOver += new System.Windows.Forms.DragEventHandler(this.txtMain_DragOver);
this.txtMain.DragDrop += new System.Windows.Forms.DragEventHandler(this.txtMain_DragDrop);
this.txtMain.TextChanged += new System.EventHandler(this.txtMain_TextChanged);
//
// DragDropForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(488, 301);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.txtMain,
this.splitterCentral,
this.lbDragDropSource});
this.Name = "DragDropForm";
this.Text = "Drag and Drop Sample";
this.ResumeLayout(false);
}
开发者ID:ppatoria,项目名称:SoftwareDevelopment,代码行数:61,代码来源:MAIN.CS
示例15: AddInScoutViewContent
public AddInScoutViewContent()
: base()
{
this.TitleName = "AddIn Scout";
Panel p = new Panel();
p.Dock = DockStyle.Fill;
p.BorderStyle = BorderStyle.FixedSingle;
Panel RightPanel = new Panel();
RightPanel.Dock = DockStyle.Fill;
p.Controls.Add(RightPanel);
codonListPanel.Dock = DockStyle.Fill;
codonListPanel.CurrentAddinChanged += new EventHandler(CodonListPanelCurrentAddinChanged);
RightPanel.Controls.Add(codonListPanel);
Splitter hs = new Splitter();
hs.Dock = DockStyle.Top;
RightPanel.Controls.Add(hs);
addInDetailsPanel.Dock = DockStyle.Top;
addInDetailsPanel.Height = 175;
RightPanel.Controls.Add(addInDetailsPanel);
Splitter s1 = new Splitter();
s1.Dock = DockStyle.Left;
p.Controls.Add(s1);
AddinTreeView addinTreeView = new AddinTreeView();
addinTreeView.Dock = DockStyle.Fill;
addinTreeView.treeView.AfterSelect += new TreeViewEventHandler(this.tvSelectHandler);
TreeTreeView treeTreeView = new TreeTreeView();
treeTreeView.Dock = DockStyle.Fill;
treeTreeView.treeView.AfterSelect += new TreeViewEventHandler(this.tvSelectHandler);
TabControl tab = new TabControl();
tab.Width = 300;
tab.Dock = DockStyle.Left;
TabPage tabPage2 = new TabPage("Tree");
tabPage2.Dock = DockStyle.Left;
tabPage2.Controls.Add(treeTreeView);
tab.TabPages.Add(tabPage2);
TabPage tabPage = new TabPage("AddIns");
tabPage.Dock = DockStyle.Left;
tabPage.Controls.Add(addinTreeView);
tab.TabPages.Add(tabPage);
p.Controls.Add(tab);
this.control = p;
this.TitleName = "AddIn Scout";
}
开发者ID:2594636985,项目名称:SharpDevelop,代码行数:56,代码来源:AddInScoutViewContent.cs
示例16: TabControl
public TabControl(DockStyle dockStyle, AnchorAlignment stripAnchor)
{
if ((dockStyle == DockStyle.Fill) || (dockStyle == DockStyle.None))
{
throw new ArgumentException(DR.GetString("InvalidDockingStyle", new object[] { "dockStyle" }));
}
base.SuspendLayout();
this.stripAnchor = stripAnchor;
this.Dock = dockStyle;
this.allowDockChange = false;
if ((this.Dock == DockStyle.Left) || (this.Dock == DockStyle.Right))
{
base.Width = SystemInformation.VerticalScrollBarWidth + 2;
this.splitter = new Splitter();
this.tabStrip = new System.Workflow.ComponentModel.Design.TabStrip(Orientation.Vertical, SystemInformation.VerticalScrollBarWidth);
this.scrollBar = new VScrollBar();
if (this.stripAnchor == AnchorAlignment.Near)
{
this.tabStrip.Dock = DockStyle.Top;
this.splitter.Dock = DockStyle.Top;
this.scrollBar.Dock = DockStyle.Fill;
}
else
{
this.tabStrip.Dock = DockStyle.Bottom;
this.splitter.Dock = DockStyle.Bottom;
this.scrollBar.Dock = DockStyle.Fill;
}
}
else
{
base.Height = SystemInformation.HorizontalScrollBarHeight + 2;
this.splitter = new Splitter();
this.tabStrip = new System.Workflow.ComponentModel.Design.TabStrip(Orientation.Horizontal, SystemInformation.HorizontalScrollBarHeight);
this.scrollBar = new HScrollBar();
if (this.stripAnchor == AnchorAlignment.Near)
{
this.tabStrip.Dock = DockStyle.Left;
this.splitter.Dock = DockStyle.Left;
this.scrollBar.Dock = DockStyle.Fill;
}
else
{
this.tabStrip.Dock = DockStyle.Right;
this.splitter.Dock = DockStyle.Right;
this.scrollBar.Dock = DockStyle.Fill;
}
}
base.Controls.AddRange(new Control[] { this.scrollBar, this.splitter, this.tabStrip });
this.splitter.Size = new Size(6, 6);
this.splitter.Paint += new PaintEventHandler(this.OnSplitterPaint);
this.splitter.DoubleClick += new EventHandler(this.OnSplitterDoubleClick);
((ItemList<System.Workflow.ComponentModel.Design.ItemInfo>) this.TabStrip.Tabs).ListChanged += new ItemListChangeEventHandler<System.Workflow.ComponentModel.Design.ItemInfo>(this.OnTabsChanged);
this.BackColor = SystemColors.Control;
base.ResumeLayout();
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:56,代码来源:TabControl.cs
示例17: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.entryDetail = new System.Windows.Forms.Label();
this.splitter1 = new System.Windows.Forms.Splitter();
this.StackListView = new System.Windows.Forms.ListView();
this.SuspendLayout();
//
// entryDetail
//
this.entryDetail.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.entryDetail.Dock = System.Windows.Forms.DockStyle.Top;
this.entryDetail.Font = new System.Drawing.Font("Verdana", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.entryDetail.Location = new System.Drawing.Point(5, 5);
this.entryDetail.Name = "entryDetail";
this.entryDetail.Size = new System.Drawing.Size(694, 83);
this.entryDetail.TabIndex = 4;
//
// splitter1
//
this.splitter1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.splitter1.Dock = System.Windows.Forms.DockStyle.Top;
this.splitter1.Location = new System.Drawing.Point(5, 88);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(694, 5);
this.splitter1.TabIndex = 5;
this.splitter1.TabStop = false;
//
// StackListView
//
this.StackListView.Dock = System.Windows.Forms.DockStyle.Fill;
this.StackListView.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.StackListView.FullRowSelect = true;
this.StackListView.GridLines = true;
this.StackListView.HideSelection = false;
this.StackListView.Location = new System.Drawing.Point(5, 93);
this.StackListView.MultiSelect = false;
this.StackListView.Name = "StackListView";
this.StackListView.Size = new System.Drawing.Size(694, 390);
this.StackListView.TabIndex = 6;
this.StackListView.View = System.Windows.Forms.View.Details;
this.StackListView.ItemActivate += new System.EventHandler(this.StackListView_ItemActivate);
this.StackListView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.StackListView_ColumnClick);
//
// StackControl
//
this.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
this.Controls.Add(this.StackListView);
this.Controls.Add(this.splitter1);
this.Controls.Add(this.entryDetail);
this.DockPadding.All = 5;
this.Name = "StackControl";
this.Size = new System.Drawing.Size(704, 488);
this.ResumeLayout(false);
}
开发者ID:corefan,项目名称:ProfileSharp,代码行数:59,代码来源:StackControl.cs
示例18: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.mMainPanel = new System.Windows.Forms.Panel();
this.mFilesListView = new System.Windows.Forms.ListView();
this.mSplitter = new System.Windows.Forms.Splitter();
this.treeView1 = new System.Windows.Forms.TreeView();
this.mMainPanel.SuspendLayout();
this.SuspendLayout();
//
// mMainPanel
//
this.mMainPanel.Controls.Add(this.mFilesListView);
this.mMainPanel.Controls.Add(this.mSplitter);
this.mMainPanel.Controls.Add(this.treeView1);
this.mMainPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.mMainPanel.Location = new System.Drawing.Point(0, 0);
this.mMainPanel.Name = "mMainPanel";
this.mMainPanel.Size = new System.Drawing.Size(656, 744);
this.mMainPanel.TabIndex = 0;
//
// mFilesListView
//
this.mFilesListView.Dock = System.Windows.Forms.DockStyle.Fill;
this.mFilesListView.Location = new System.Drawing.Point(0, 100);
this.mFilesListView.Name = "mFilesListView";
this.mFilesListView.Size = new System.Drawing.Size(656, 644);
this.mFilesListView.TabIndex = 2;
//
// mSplitter
//
this.mSplitter.Dock = System.Windows.Forms.DockStyle.Top;
this.mSplitter.Location = new System.Drawing.Point(0, 97);
this.mSplitter.Name = "mSplitter";
this.mSplitter.Size = new System.Drawing.Size(656, 3);
this.mSplitter.TabIndex = 1;
this.mSplitter.TabStop = false;
//
// treeView1
//
this.treeView1.Dock = System.Windows.Forms.DockStyle.Top;
this.treeView1.ImageIndex = -1;
this.treeView1.Location = new System.Drawing.Point(0, 0);
this.treeView1.Name = "treeView1";
this.treeView1.SelectedImageIndex = -1;
this.treeView1.Size = new System.Drawing.Size(656, 97);
this.treeView1.TabIndex = 0;
//
// FSExplorerControl
//
this.Controls.Add(this.mMainPanel);
this.Name = "FSExplorerControl";
this.Size = new System.Drawing.Size(656, 744);
this.mMainPanel.ResumeLayout(false);
this.ResumeLayout(false);
}
开发者ID:BackupTheBerlios,项目名称:galatea-svn,代码行数:59,代码来源:FSExplorer.cs
示例19: InitializeComponent
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.treeView1 = new System.Windows.Forms.TreeView();
this.splitter1 = new System.Windows.Forms.Splitter();
this.propertyGrid1 = new System.Windows.Forms.PropertyGrid();
this.SuspendLayout();
//
// treeView1
//
this.treeView1.CheckBoxes = true;
this.treeView1.Dock = System.Windows.Forms.DockStyle.Left;
this.treeView1.ImageIndex = -1;
this.treeView1.Location = new System.Drawing.Point(0, 0);
this.treeView1.Name = "treeView1";
this.treeView1.SelectedImageIndex = -1;
this.treeView1.Size = new System.Drawing.Size(121, 302);
this.treeView1.TabIndex = 0;
this.treeView1.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterCheck);
this.treeView1.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterSelect);
//
// splitter1
//
this.splitter1.Location = new System.Drawing.Point(121, 0);
this.splitter1.Name = "splitter1";
this.splitter1.Size = new System.Drawing.Size(3, 302);
this.splitter1.TabIndex = 1;
this.splitter1.TabStop = false;
//
// propertyGrid1
//
this.propertyGrid1.CommandsVisibleIfAvailable = true;
this.propertyGrid1.Dock = System.Windows.Forms.DockStyle.Fill;
this.propertyGrid1.LargeButtons = false;
this.propertyGrid1.LineColor = System.Drawing.SystemColors.ScrollBar;
this.propertyGrid1.Location = new System.Drawing.Point(124, 0);
this.propertyGrid1.Name = "propertyGrid1";
this.propertyGrid1.Size = new System.Drawing.Size(316, 302);
this.propertyGrid1.TabIndex = 2;
this.propertyGrid1.Text = "propertyGrid1";
this.propertyGrid1.ViewBackColor = System.Drawing.SystemColors.Window;
this.propertyGrid1.ViewForeColor = System.Drawing.SystemColors.WindowText;
//
// ExternalLayerManager
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(440, 302);
this.Controls.Add(this.propertyGrid1);
this.Controls.Add(this.splitter1);
this.Controls.Add(this.treeView1);
this.Name = "ExternalLayerManager";
this.Text = "ExternalLayerManager";
this.ResumeLayout(false);
}
开发者ID:jpespartero,项目名称:WorldWind,代码行数:58,代码来源:ExternalLayerManager.cs
示例20: MsdnNamePropertyTest
public override void MsdnNamePropertyTest()
{
Splitter splitter = new Splitter();
AutomationElement child = GetAutomationElementFromControl(splitter);
Assert.AreEqual(splitter.Name,
child.GetCurrentPropertyValue(AutomationElementIdentifiers.NameProperty, true),
"NameProperty");
splitter.Name = "Unhappy splitter";
Assert.AreEqual(splitter.Name,
child.GetCurrentPropertyValue(AutomationElementIdentifiers.NameProperty, true),
"NameProperty");
}
开发者ID:mono,项目名称:uia2atk,代码行数:13,代码来源:SplitterTest.cs
注:本文中的System.Windows.Forms.Splitter类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论