• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.SplitterEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: splitter1_SplitterMoved

 private void splitter1_SplitterMoved(object sender, SplitterEventArgs e)
 {
 }
开发者ID:kebby,项目名称:jss,代码行数:3,代码来源:Form1.cs


示例17: SplitContainer1SplitterMoved

 void SplitContainer1SplitterMoved(object sender, SplitterEventArgs e)
 {
 }
开发者ID:krikelin,项目名称:MediaChrome,代码行数:3,代码来源:Library.cs


示例18: SplitContainer1SplitterMoved

 private void SplitContainer1SplitterMoved(object sender, SplitterEventArgs e)
 {
     Main_Resize(null, null);
 }
开发者ID:m1croN,项目名称:subtitleedit,代码行数:4,代码来源:Main.cs


示例19: main_SplitterMoved

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


示例20: SplitContainerMainSplitterMoved

 private void SplitContainerMainSplitterMoved(object sender, SplitterEventArgs e)
 {
     mediaPlayer.Refresh();
 }
开发者ID:m1croN,项目名称:subtitleedit,代码行数:4,代码来源:Main.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.StatusBar类代码示例发布时间:2022-05-26
下一篇:
C# Forms.Splitter类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap