当前位置: 首页>>代码示例>>C#>>正文


C# Forms.SplitterEventArgs类代码示例

本文整理汇总了C#中System.Windows.Forms.SplitterEventArgs的典型用法代码示例。如果您正苦于以下问题:C# SplitterEventArgs类的具体用法?C# SplitterEventArgs怎么用?C# SplitterEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


SplitterEventArgs类属于System.Windows.Forms命名空间,在下文中一共展示了SplitterEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: splitterMoved

 private void splitterMoved(object sender, SplitterEventArgs e)
 {
     if (_settings != null && Visible)
         _settings.PositionPercent = (double) SplitterDistance / Width;
     if (SplitterMoved != null)
         SplitterMoved(sender, e);
 }
开发者ID:RT-Projects,项目名称:RT.Util,代码行数:7,代码来源:SplitContainerEx.cs

示例2: SplitContainerHorizontal_SplitterMoved

		void SplitContainerHorizontal_SplitterMoved(object sender, SplitterEventArgs e) {
			if (this.DataSnapshot == null) return;	// there is no DataSnapshot deserialized in InitializeComponents()
			if (Assembler.InstanceInitialized.MainFormClosingIgnoreReLayoutDockedForms) return;
			if (this.DataSnapshot.SplitDistanceHorizontal == this.splitContainerHorizontal.SplitterDistance) return;
			this.DataSnapshot.SplitDistanceHorizontal = this.splitContainerHorizontal.SplitterDistance;
			this.DataSnapshotSerializer.Serialize();
		}
开发者ID:sanyaade-fintechnology,项目名称:SquareOne,代码行数:7,代码来源:ExceptionsControl.EventConsumer.cs

示例3: splitContainerImage_SplitterMoved

 protected override void splitContainerImage_SplitterMoved(object sender, SplitterEventArgs e)
 {
     foreach (Control con in this.flowLayoutPanelThumbnail.Controls)
     {
         int horizontalMargin = (this.flowLayoutPanelThumbnail.Width - con.Width) / 2;
         con.Margin = new Padding(horizontalMargin, 0, horizontalMargin, 2);
     }
 }
开发者ID:rimas-kudelis,项目名称:VietOCR3.NET,代码行数:8,代码来源:GUIWithThumbnail.cs

示例4: OnSplitterMove

 private void OnSplitterMove(object sender, SplitterEventArgs e)
 {
     // Commented because it does not seem to avoid a slight offset every time the splitter is restored.
     /*
     var settings = CoreSettings.CoreSettings.Default;
     settings.InspectorRecordedWidth = splitContainer.Panel1.Width;
     // for some reason this is necessary to keep the layout from breaking up.
     inspectionView1.ClientSize = splitContainer.Panel2.ClientSize; */
     //inspectionView1.ClientSize = splitContainer.Panel2.ClientSize;
 }    
开发者ID:Kolky,项目名称:open3mod,代码行数:10,代码来源:TabUISkeleton.cs

示例5: _splitContainer_SplitterMoved

        private void _splitContainer_SplitterMoved(object sender, SplitterEventArgs e)
        {
			if (PaneFixed || _resetting)
				return;

			// when the user moves the splitter, we need to keep track of the split ratio
			float x1 = _vertical ? _splitContainer.Panel1.Width : _splitContainer.Panel1.Height;
			float x2 = _vertical ? _splitContainer.Panel2.Width : _splitContainer.Panel2.Height;

			_splitRatio = x1 / (x1 + x2);
        }
开发者ID:nhannd,项目名称:Xian,代码行数:11,代码来源:SplitComponentContainerControl.cs

示例6: splitter1_SplitterMoved

        private void splitter1_SplitterMoved(object sender, SplitterEventArgs e)
        {
            int width = e.X;

            if (width > 350)
            {
                width = 350;
            }
            if (width < 150)
            {
                width = 23;

            }
            this.panLeft.Width = width;
            resizeMiddlePanel();
        }
开发者ID:xy19xiaoyu,项目名称:PatSI,代码行数:16,代码来源:frmstat.cs

示例7: CustomSplitter_SplitterMoved

 void CustomSplitter_SplitterMoved(object sender, SplitterEventArgs e)
 {
     if (m_IsInternalCall)
     {
         m_IsInternalCall = false;
         if (m_LastSplitterPos == 0)
             m_LastSplitterPos = m_Panel1MinSize; //arbitary
         return;
     }
     if (this.Orientation == Orientation.Vertical)
     {
         if (this.SplitterDistance == 0)
         {
             this.m_Panel1State = SplitterPanelState.Retracted;
             this.Invalidate();
         }
         else if (this.SplitterDistance == (this.Width - this.SplitterWidth))
         {
             this.m_Panel2State = SplitterPanelState.Retracted;
             this.Invalidate();
         }
         else
         {
             this.m_Panel1State = SplitterPanelState.Expanded;
             this.m_Panel2State = SplitterPanelState.Expanded;
         }
     }
     else
     {
         if (this.SplitterDistance == 0)
         {
             this.m_Panel1State = SplitterPanelState.Retracted;
             this.Invalidate();
         }
         else if (this.SplitterDistance == (this.Height - this.SplitterWidth))
         {
             this.m_Panel2State = SplitterPanelState.Retracted;
             this.Invalidate();
         }
         else
         {
             this.m_Panel1State = SplitterPanelState.Expanded;
             this.m_Panel2State = SplitterPanelState.Expanded;
         }
     }
 }
开发者ID:blacklensama,项目名称:earthquake-project-ui,代码行数:46,代码来源:CustomSplitter.cs

示例8: splitContainer2_SplitterMoved

 private void splitContainer2_SplitterMoved(object sender, SplitterEventArgs e)
 {
     if (splitContainer2.SplitterDistance >= 250 && button2.Text == ">")
         button2.Text = "<";
     else if(splitContainer2.SplitterDistance<100)
     {
         panel2.Visible = false;
     }
     else if(splitContainer2.SplitterDistance>100 && !panel2.Visible)
     {
         panel2.Visible = true;
     }
 }
开发者ID:demty,项目名称:bd_company,代码行数:13,代码来源:SquadForm.cs

示例9: OnSplitterMoved

 private void OnSplitterMoved(object sender, SplitterEventArgs e)
 {
     if ((this.InheritanceAttribute != InheritanceAttribute.InheritedReadOnly) && !this.splitterDistanceException)
     {
         try
         {
             base.RaiseComponentChanging(TypeDescriptor.GetProperties(this.splitContainer)["SplitterDistance"]);
             base.RaiseComponentChanged(TypeDescriptor.GetProperties(this.splitContainer)["SplitterDistance"], null, null);
             if (this.disabledGlyphs)
             {
                 base.BehaviorService.EnableAllAdorners(true);
                 SelectionManager service = (SelectionManager) this.GetService(typeof(SelectionManager));
                 if (service != null)
                 {
                     service.Refresh();
                 }
                 this.disabledGlyphs = false;
             }
         }
         catch (InvalidOperationException exception)
         {
             ((IUIService) base.Component.Site.GetService(typeof(IUIService))).ShowError(exception.Message);
         }
         catch (CheckoutException exception2)
         {
             if (exception2 == CheckoutException.Canceled)
             {
                 try
                 {
                     this.splitterDistanceException = true;
                     this.splitContainer.SplitterDistance = this.initialSplitterDist;
                     return;
                 }
                 finally
                 {
                     this.splitterDistanceException = false;
                 }
             }
             throw;
         }
     }
 }
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:42,代码来源:SplitContainerDesigner.cs

示例10: mainSplitContainer_SplitterMoved

 private void mainSplitContainer_SplitterMoved(object sender, SplitterEventArgs e)
 {
     var changingUI = false;
     try
     {
         changingUI = true;
         panelMain.SuspendLayout();
         panelMain.SuspendDrawing();
         SetControlSize(null);
     }
     catch (Exception ex)
     {
         HandleException(ex);
     }
     finally
     {
         if (changingUI)
         {
             panelMain.ResumeDrawing();
             panelMain.ResumeLayout();
         }
     }
 }
开发者ID:BlueBasher,项目名称:ServiceBusExplorer,代码行数:23,代码来源:ContainerForm.cs

示例11: splitDescription_SplitterMoved

        private void splitDescription_SplitterMoved(object sender, SplitterEventArgs e) {
            if (ignore_change_ > 0)
                return;

            if (splitDescription.SplitterDistance >= 0) {
                global_ui.description_splitter_pos = splitDescription.SplitterDistance;
                save();
            } else
                Debug.Assert(false);
        }
开发者ID:noelhx,项目名称:logwizard,代码行数:10,代码来源:log_wizard.cs

示例12: filteredLeft_SplitterMoved

 private void filteredLeft_SplitterMoved(object sender, SplitterEventArgs e) {
     update_msg_details(true);
     if (ignore_change_ > 0)
         return;
     //logger.Debug("[splitter] filteredleft=" + filteredLeft.SplitterDistance  );
     if (filteredLeft.SplitterDistance >= 0) {
         global_ui.full_log_splitter_pos = filteredLeft.SplitterDistance;
         save();
     } else
         Debug.Assert(false);
 }
开发者ID:noelhx,项目名称:logwizard,代码行数:11,代码来源:log_wizard.cs

示例13: splitContainer8_SplitterMoved

 private void splitContainer8_SplitterMoved(object sender, SplitterEventArgs e)
 {
 }
开发者ID:tt,项目名称:gitextensions,代码行数:3,代码来源:Commit.cs

示例14: splitContainer1_SplitterMoved

 /// <summary>
 /// resize the forms to appropriate sizes
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void splitContainer1_SplitterMoved(object sender, SplitterEventArgs e)
 {
     int size = Convert.ToInt32(splitContainer1.Width * maxDistancePercent);
     if (splitContainer1.SplitterDistance < size)
     {
         splitContainer1.SplitterDistance = size;
     }
 }
开发者ID:maveroke,项目名称:PerformanceProgression,代码行数:13,代码来源:Form2.cs

示例15: SplitContainer4_SplitterMoved

 private void SplitContainer4_SplitterMoved(object sender, SplitterEventArgs e)
 {
     if (this.WindowState == FormWindowState.Normal && !_initialLayout)
     {
         _myAdSpDis = SplitContainer4.SplitterDistance;
         _modifySettingLocal = true;
     }
 }
开发者ID:lupeeloveee,项目名称:OpenTween,代码行数:8,代码来源:Tween.cs


注:本文中的System.Windows.Forms.SplitterEventArgs类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。