Source/NFX.WinForms/Controls/ChartKit/Temporal/TimeSeriesChart.cs
/// <summary>
/// Performs layout of sub controls, such as element host, scroll bars etc.. 
/// </summary>
Performs layout of sub controls, such as element host, scroll bars etc
Performs layout of sub controls such as element host scroll bars etc
protected virtual void LayoutSubControls(int oldLeft, int oldTop, int oldWidth,
                                             int oldHeight)
    {
      oldHeight = oldHeight - ((m_Panes.Count - 1)*SPLITTER_HEIGHT);
      if (oldHeight < MIN_PANE_HEIGHT) oldHeight = MIN_PANE_HEIGHT;
      var newHeight = Height - ((m_Panes.Count - 1)*SPLITTER_HEIGHT);
      if (newHeight < MIN_PANE_HEIGHT) newHeight = MIN_PANE_HEIGHT;
      this.SuspendLayout();
      try
      {
        foreach (var pane in m_Panes)
        {
          var nph = (int)(GetPaneVProportion(pane.Name)*newHeight);
          if (nph < MIN_PANE_HEIGHT) nph = MIN_PANE_HEIGHT;
          pane.Height = nph;
        }
      }
      finally
      {
        this.ResumeLayout(true);
      }
      rebuildChart();
    }
protected virtual void LayoutSubControls ( int oldLeft , int oldTop , int oldWidth , int oldHeight ) { oldHeight = oldHeight - ( ( m_Panes . Count - 1 ) * SPLITTER_HEIGHT ) ; if ( oldHeight < MIN_PANE_HEIGHT ) oldHeight = MIN_PANE_HEIGHT ; var newHeight = Height - ( ( m_Panes . Count - 1 ) * SPLITTER_HEIGHT ) ; if ( newHeight < MIN_PANE_HEIGHT ) newHeight = MIN_PANE_HEIGHT ; this . SuspendLayout ( ) ; try { foreach ( var pane in m_Panes ) { var nph = ( int ) ( GetPaneVProportion ( pane . Name ) * newHeight ) ; if ( nph < MIN_PANE_HEIGHT ) nph = MIN_PANE_HEIGHT ; pane . Height = nph ; } } finally { this . ResumeLayout ( true ) ; } rebuildChart ( ) ; }
Performs layout of sub controls, such as element host, scroll bars etc..
Performs layout of sub controls such as element host scroll bars etc ..
oldLeft
int
oldTop
int
oldWidth
int
oldHeight
int