Example #1
0
 void m_splitter_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     if (m_splitter.Visible)
     {
         m_key.SetValue(m_regValue, m_splitter.SplitterDistance);
     }
 }
Example #2
0
 private void splitterMoved(object sender, SplitterEventArgs e)
 {
     if (_settings != null && Visible)
         _settings.PositionPercent = (double) SplitterDistance / Width;
     if (SplitterMoved != null)
         SplitterMoved(sender, e);
 }
		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();
		}
Example #4
0
 private void splitter1_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     textBox1.Width         = splitter1.Left;
     workspaceViewer1.Left  = splitter1.Left + splitter1.Width;
     workspaceViewer1.Width = this.ClientSize.Width - workspaceViewer1.Left;
     progressBar1.Left      = workspaceViewer1.Left;
     progressBar1.Width     = workspaceViewer1.Width;
 }
 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);
     }
 }
Example #6
0
        void Splitter_SplitterMoved(object sender, WF.SplitterEventArgs e)
        {
            if (!block_splitter_changed_event)
            {
                (Widget as Group).RefreshChildren();
            }

            int debug = 0;
        }
Example #7
0
        /// <summary>
        /// Called after Splitter move, Set new ControlPane
        /// </summary>
        /// <param name="sender"> </param>
        /// <param name="e"> </param>
        protected void splitter1_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
        {
            m_ControlPaneWidth = ControlPane.Width;

            this.OnResize(new EventArgs());

            // Redraw splitter
            splitter1.Invalidate();
        }
Example #8
0
 private void splitterHorizontal_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     // we size up the y waveform panel to fit the viewer panel nicely
     this.waveformY.WaveformPanel.Anchor   = AnchorStyles.None;
     this.waveformY.WaveformPanel.Location = new Point(8, this.layoutScatter.ViewerPanel.Top + this.layoutScatter.Top);
     this.waveformY.WaveformPanel.Width    = this.waveformY.Width - 16;
     this.waveformY.WaveformPanel.Height   = this.layoutScatter.ViewerPanel.Height;
     this.waveformY.WaveformPanel.Anchor   = AnchorStyles.Left | AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
 }
Example #9
0
 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;
 }    
        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);
        }
Example #11
0
        private void splitVertical_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
        {
            int newLeft  = splitVertical.Location.X + 10;
            int newWidth = ClientSize.Width - splitVertical.Location.X - 15;

            lblName.Left       = newLeft;
            lblName.Width      = newWidth;
            grpSeparator.Left  = newLeft;
            grpSeparator.Width = newWidth;
            panDetails.Left    = newLeft;
            panDetails.Width   = newWidth;
        }
Example #12
0
File: Form1.cs Project: Gwee/csharp
        private void splitter1_SplitterMoving(object sender, System.Windows.Forms.SplitterEventArgs e)
        {
            int deltaX = splitter1.SplitPosition - prevSplitter1Position;

            this.Width               += deltaX;
            TreeView1.Width          += deltaX;
            TextBox1.Location         = new System.Drawing.Point(TextBox1.Location.X + deltaX, TextBox1.Location.Y);
            ButtonAddChild.Location   = new System.Drawing.Point(ButtonAddChild.Location.X + deltaX, ButtonAddChild.Location.Y);
            ButtonAddBrother.Location = new System.Drawing.Point(ButtonAddBrother.Location.X + deltaX, ButtonAddBrother.Location.Y);
            ButtonDelete.Location     = new System.Drawing.Point(ButtonDelete.Location.X + deltaX, ButtonDelete.Location.Y);
            listBox1.Location         = new System.Drawing.Point(listBox1.Location.X + deltaX, listBox1.Location.Y);
            prevSplitter1Position    += deltaX;
        }
Example #13
0
        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();
        }
Example #14
0
        private void splitter_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
        {
            // If splitter at bottom, exchange top pane with bottom and close
            // out top.

            if (ClientSize.Height - splitter.SplitPosition <= splitter.MinExtra + 10)
            {
                if (!m_fNoRecurse)
                {
                    m_fNoRecurse = true;
                    ChangePanes(-2);
                    m_fNoRecurse = false;
                }
            }

            // Save away size ratio

            m_nSplitRatio = (float)splitter.SplitPosition / (float)ClientSize.Height;
        }
 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();
         }
     }
 }
 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;
         }
     }
 }
Example #17
0
 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);
 }
Example #18
0
        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);
        }
 void playerListMapSplitContainer_SplitterMoved(object sender, SplitterEventArgs e)
 {
     OnResize(e); //OnResize(e) will be intercepted by BattleChatControl.cs & resize minimap.
 }
Example #20
0
File: Form1.cs Project: kebby/jss
 private void splitter1_SplitterMoved(object sender, SplitterEventArgs e)
 {
 }
Example #21
0
 void MySplitter_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     //this.SetSplitterButtonRectangle();
     //this.Invalidate(this.splitterButtonRectangle);
     //File.AppendAllText("e:\\debug.txt", "move. split_position=" + this.SplitPosition.ToString() + "\r\n");
 }
Example #22
0
 private void splitContainer1_SplitterMoved(object sender, SplitterEventArgs e)
 {
     MainWindow_Resize(null, null);
 }
Example #23
0
 private void splitContainer1_SplitterMoved(System.Object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     // Define what happens when the splitter is no longer moving.
     Cursor.Current = System.Windows.Forms.Cursors.Default;
 }
Example #24
0
 private void splitter1_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     //richTextBox1.Left = splitter1.SplitPosition;
     //richTextBox2.Left = splitter1.SplitPosition;
 }
Example #25
0
 void _splitterBottom_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     _flexTL.Width = _flexBL.Width;
 }
 private void splitter1_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
 {
 }
Example #27
0
 /// -----------------------------------------------------------------------------------
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 /// -----------------------------------------------------------------------------------
 private void splitter1_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     lblConverted.Left = panel1.Left + splitter1.Left + splitter1.Width + 4;
     lblOrigFile.Width = splitter1.Left - 60;
 }
Example #28
0
 /// <summary>
 /// Splitter moved: update option
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void splitter_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     Pandora.Profile.General.DecoSplitter = splitter.SplitPosition;
 }
Example #29
0
 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;
     }
 }
 private void OnDockspaceSeparatorMoved(object sender, SplitterEventArgs e)
 {
     if (SplitterMoved != null)
         SplitterMoved(sender, e);
 }
 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;
         }
     }
 }
 private void mainSplitContainer_SplitterMoved(object sender, SplitterEventArgs e)
 {
     if (splitterMovePending)
       {
     splitterMovePending = false;
     wbContext.save_state("sidebar_width", "model_overview", mainSplitContainer.SplitterDistance);
       }
 }
Example #33
0
 private void splitter1_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     MessageBox.Show("Splitter moved: " + e.SplitX.ToString() + " : " + e.SplitY.ToString());
 }
 /// <summary>
 /// Saves splitter location.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void scSourceOutput_SplitterMoved(object sender, SplitterEventArgs e)
 {
     Properties.Settings.Default.scSourceOutputSplitterDistance = scSamples.SplitterDistance;
 }
Example #35
0
 private void SplitContainer4_SplitterMoved(object sender, SplitterEventArgs e)
 {
     if (this.WindowState == FormWindowState.Normal && !_initialLayout)
     {
         _myAdSpDis = SplitContainer4.SplitterDistance;
         _modifySettingLocal = true;
     }
 }
Example #36
0
 void SplitContainer1SplitterMoved(object sender, SplitterEventArgs e)
 {
 }
Example #37
0
 /// <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;
     }
 }
Example #38
0
 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);
 }
Example #39
0
 private void splitContainer8_SplitterMoved(object sender, SplitterEventArgs e)
 {
 }
 private void MainH_SplitterMoved(object sender, SplitterEventArgs e)
 {
     if (loaded == true)
     { // startup check
         MainV2.config["FlightSplitter"] = MainH.SplitterDistance.ToString();
     }
     loaded = true;
     hud1.Width = MainH.Panel1.Width;
 }
Example #41
0
 private void SplitContainer1SplitterMoved(object sender, SplitterEventArgs e)
 {
     Main_Resize(null, null);
 }
Example #42
0
		// Splitter moved so save it's position
		private void treeSplitter_SplitterMoved( object sender, SplitterEventArgs e )
		{
			userSettings.SaveSetting( "Gui.MainForm.SplitPosition", treeSplitter.SplitPosition );
		}
Example #43
0
 private void SplitContainerMainSplitterMoved(object sender, SplitterEventArgs e)
 {
     mediaPlayer.Refresh();
 }
 /// <include file='doc\SplitContainer.uex' path='docs/doc[@for="SplitContainer.OnSplitterMoved"]/*' />
 /// <devdoc>
 ///     Inherriting classes should override this method to respond to the
 ///     splitterMoved event. This event occurs when the user finishes
 ///     moving the splitter.
 /// </devdoc>
 public void OnSplitterMoved(SplitterEventArgs e) {
     SplitterEventHandler handler = (SplitterEventHandler)Events[EVENT_MOVED];
     if (handler != null) handler(this, e);
 }
Example #45
0
 private void splitter1_SplitterMoved(object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     MessageBox.Show(e.SplitX + "; " + e.SplitY);
 }
Example #46
0
 private void randomNumberSplitPanel_SplitterMoved(object sender, SplitterEventArgs e)
 {
     // Center the spliter
     randomNumberSplitPanel.SplitterDistance = (int)(randomNumberSplitPanel.Width / 2.0);
 }
Example #47
0
 private void splitContainer1_SplitterMoved(System.Object sender, System.Windows.Forms.SplitterEventArgs e)
 {
     // When the splitter stops moving, change the cursor back to the default.
     Cursor.Current = System.Windows.Forms.Cursors.Default;
 }
Example #48
0
 private void splitContainer5_SplitterMoved(object sender, SplitterEventArgs e)
 {
     ShowRecentRepositories();
 }
 private void splitter2_SplitterMoved(object sender, SplitterEventArgs e)
 {
 }