Foreign/SonyLE/LevelEditor/Search/DomNodePropertySearchService.cs
/// <summary>
/// Forces the UI elements to take up the remaining space in their parent control</summary>
Forces the UI elements to take up the remaining space in their parent control
Forces the UI elements to take up the remaining space in their parent control
protected virtual void DoLayout()
        {
            if (SearchUI != null)
            {
                SearchUI.Control.Anchor = AnchorStyles.Top | AnchorStyles.Left;
                Rectangle scb = SearchUI.Control.Bounds;
                if (ResultsUI != null)
                {
                    Rectangle resultsBounds = scb;
                    resultsBounds.Y += scb.Height;
                    resultsBounds.Width = m_rootControl.Width - (m_rootControl.Margin.Left + m_rootControl.Margin.Right);
                    resultsBounds.Height = m_rootControl.Height - (m_rootControl.Margin.Top + m_rootControl.Margin.Bottom + scb.Height + 2);
                    ResultsUI.Control.Bounds = resultsBounds;
                    ResultsUI.Control.Anchor = AnchorStyles.None;
                }
                if (_clearButton != null)
                {
                    Rectangle bounds = scb;
                    bounds.X += scb.Width;
                    bounds.Width = _clearButton.Width;
                    _clearButton.AutoSize = false; 
                    _clearButton.Bounds = bounds;
                    _clearButton.Anchor = AnchorStyles.None;
                    scb.Width += bounds.Width;
                }
                if (ReplaceUI != null)
                {
                    Rectangle replaceBounds = scb;
                    replaceBounds.X += scb.Width;
                    ReplaceUI.Control.Bounds = replaceBounds;
                    ReplaceUI.Control.Anchor = AnchorStyles.None;
                }
            }
        }
protected virtual void DoLayout ( ) { if ( SearchUI != null ) { SearchUI . Control . Anchor = AnchorStyles . Top | AnchorStyles . Left ; Rectangle scb = SearchUI . Control . Bounds ; if ( ResultsUI != null ) { Rectangle resultsBounds = scb ; resultsBounds . Y += scb . Height ; resultsBounds . Width = m_rootControl . Width - ( m_rootControl . Margin . Left + m_rootControl . Margin . Right ) ; resultsBounds . Height = m_rootControl . Height - ( m_rootControl . Margin . Top + m_rootControl . Margin . Bottom + scb . Height + 2 ) ; ResultsUI . Control . Bounds = resultsBounds ; ResultsUI . Control . Anchor = AnchorStyles . None ; } if ( _clearButton != null ) { Rectangle bounds = scb ; bounds . X += scb . Width ; bounds . Width = _clearButton . Width ; _clearButton . AutoSize = false ; _clearButton . Bounds = bounds ; _clearButton . Anchor = AnchorStyles . None ; scb . Width += bounds . Width ; } if ( ReplaceUI != null ) { Rectangle replaceBounds = scb ; replaceBounds . X += scb . Width ; ReplaceUI . Control . Bounds = replaceBounds ; ReplaceUI . Control . Anchor = AnchorStyles . None ; } } }
Forces the UI elements to take up the remaining space in their parent control
Forces the UI elements to take up the remaining space in their parent control