/// <summary>
        /// Defines layout of the components regardless their prior position
        /// </summary>
        public void SetUniversalLayout()
        {
            if (m_ContainerForm == null)
            {
                return;
            }

            if (Parent.Parent == null)
            {
                return;
            }

            this.AutoSize = true;

            if (Parent.Height > Parent.Parent.Height)
            {
                Parent.MinimumSize = new Size(this.Width + 1, Parent.Parent.Height - 1);
                Parent.MaximumSize = new Size(this.Width + 2, Parent.Parent.Height);
                Parent.Height      = Parent.Parent.Height;
            }
            this.MinimumSize = new Size(this.Width, this.Parent.Height);
            this.MaximumSize = new Size(this.Width, this.Parent.Height);

            m_ContainerForm.m_btnTrackingStart.MinimumSize = m_ContainerForm.m_btnNormalizeTracking.Size;
            m_ContainerForm.m_btnTrackingStop.MinimumSize  = m_ContainerForm.m_btnNormalizeTracking.Size;

            int nButtonHeight = (m_ContainerForm.m_btnNormalizeTracking.Height * 3) + 8;
            int nTop          = ((this.Height - nButtonHeight) / 2) + 7;

            m_ContainerForm.m_btnNormalizeTracking.Top   = nTop;
            m_ContainerForm.m_btnTrackingStart.Top       = m_ContainerForm.m_btnNormalizeTracking.Bottom + 2;
            m_ContainerForm.m_btnTrackingStop.Top        = m_ContainerForm.m_btnTrackingStart.Bottom + 2;
            m_ContainerForm.m_chkSNAAutoStop.Top         = m_ContainerForm.m_btnTrackingStart.Top + 4;
            m_ContainerForm.m_listSNAOptions.Top         = m_ContainerForm.m_btnTrackingStop.Top + 1;
            m_ContainerForm.m_nRFGENIterationAverage.Top = nTop;
            m_ContainerForm.m_labRFGenAverage.Top        = nTop + 4;

            int nRightPos = m_ContainerForm.m_btnNormalizeTracking.Right + 6;

            m_ContainerForm.m_listSNAOptions.Left           = nRightPos;
            m_ContainerForm.m_chkSNAAutoStop.Left           = nRightPos;
            m_ContainerForm.m_nRFGENIterationAverage.Left   = this.Right - (m_ContainerForm.m_nRFGENIterationAverage.Width + 10);
            m_ContainerForm.m_labRFGenAverage.Left          = m_ContainerForm.m_nRFGENIterationAverage.Left - m_ContainerForm.m_labRFGenAverage.Width;
            m_ContainerForm.m_listSNAOptions.Width          = m_ContainerForm.m_chkSNAAutoStop.Width + 10;
            m_ContainerForm.m_nRFGENIterationAverage.Height = m_ContainerForm.m_listSNAOptions.Height;

            this.MinimumSize = new Size(m_ContainerForm.m_listSNAOptions.Right + 5, m_ContainerForm.m_btnTrackingStop.Bottom + 4);

            if (m_CollGroupBoxGenTracking == null)
            {
                m_CollGroupBoxGenTracking = new CollapsibleGroupbox(this);
                m_CollGroupBoxGenTracking.CollapsedCaption = "SNA TRACK";
                CollapseBtn_Click(null, null); //to update status first time
                m_CollGroupBoxGenTracking.CollapseButtonClick += new EventHandler(CollapseBtn_Click);
                this.Paint += new System.Windows.Forms.PaintEventHandler(this.Collapse_Paint);
            }
        }
        /// <summary>
        /// Defines layout of the components regardless their prior position
        /// </summary>
        public void SetUniversalLayout()
        {
            if (m_ContainerForm == null)
            {
                return;
            }

            if (Parent.Parent == null)
            {
                return;
            }

            this.AutoSize = true;

            if (Parent.Height > Parent.Parent.Height)
            {
                Parent.MinimumSize = new Size(this.Width + 1, Parent.Parent.Height - 1);
                Parent.MaximumSize = new Size(this.Width + 2, Parent.Parent.Height);
                Parent.Height      = Parent.Parent.Height;
            }
            this.MinimumSize = new Size(this.Width, this.Height);
            this.MaximumSize = new Size(this.Width, this.Height);

            int nLeftPos = m_ContainerForm.m_labDataSample.Right + 2;

            m_ContainerForm.m_NumericSweepIndex.Left = nLeftPos;
            m_ContainerForm.m_numericIterations.Left = nLeftPos;
            m_ContainerForm.m_NumericSweepIndex.Top  = m_ContainerForm.m_chkRunMode.Bottom + 3;
            m_ContainerForm.m_numericIterations.Top  = m_ContainerForm.m_NumericSweepIndex.Bottom + 3;

            m_ContainerForm.m_chkRunMode.MinimumSize        = m_ContainerForm.m_labDataSample.Size;
            m_ContainerForm.m_chkHoldMode.MinimumSize       = m_ContainerForm.m_numericIterations.Size;
            m_ContainerForm.m_NumericSweepIndex.MaximumSize = m_ContainerForm.m_numericIterations.Size;
            m_ContainerForm.m_NumericSweepIndex.MinimumSize = m_ContainerForm.m_numericIterations.Size;
            m_ContainerForm.m_chkHoldMode.Left = m_ContainerForm.m_numericIterations.Left;

            int nRightPos = m_ContainerForm.m_NumericSweepIndex.Right + 5;

            m_ContainerForm.m_labDataSample.Top = m_ContainerForm.m_NumericSweepIndex.Top + 6;
            m_ContainerForm.m_labIterations.Top = m_ContainerForm.m_numericIterations.Top + 6;

            if (m_CollGroupBox == null)
            {
                m_CollGroupBox = new CollapsibleGroupbox(this);
                CollapseBtn_Click(null, null); //to update status first time
                this.Paint += new PaintEventHandler(this.Collapse_Paint);
                m_CollGroupBox.CollapseButtonClick += new EventHandler(CollapseBtn_Click);
                m_CollGroupBox.CollapsedCaption     = "Run Mode";
            }
        }
        /// <summary>
        /// Defines layout of the components regardless their prior position
        /// </summary>
        public void SetUniversalLayout(Size ReferenceControlSize)
        {
            if (m_ContainerFormRemoteScreen == null)
            {
                return;
            }

            this.AutoSize = true;

            m_ContainerFormRemoteScreen.m_numScreenIndex.MinimumSize      = ReferenceControlSize;
            m_ContainerFormRemoteScreen.m_numericZoom.MinimumSize         = m_ContainerFormRemoteScreen.m_numScreenIndex.Size;
            m_ContainerFormRemoteScreen.m_btnSaveRemoteBitmap.MinimumSize = m_ContainerFormRemoteScreen.m_numScreenIndex.Size;

            m_ContainerFormRemoteScreen.m_btnSaveRemoteBitmap.Top   = m_ContainerFormRemoteScreen.m_chkDumpScreen.Bottom + 2;
            m_ContainerFormRemoteScreen.m_numScreenIndex.Top        = m_ContainerFormRemoteScreen.m_chkDumpScreen.Bottom + 2;
            m_ContainerFormRemoteScreen.m_labRemoteScreenSample.Top = m_ContainerFormRemoteScreen.m_chkDumpScreen.Bottom + 4;

            m_ContainerFormRemoteScreen.m_numericZoom.Top         = m_ContainerFormRemoteScreen.m_btnSaveRemoteBitmap.Bottom + 4;
            m_ContainerFormRemoteScreen.m_labRemoteScreenZoom.Top = m_ContainerFormRemoteScreen.m_btnSaveRemoteBitmap.Bottom + 4;
            m_ContainerFormRemoteScreen.m_labBitmapSize.Top       = m_ContainerFormRemoteScreen.m_btnSaveRemoteBitmap.Bottom + 4;

            int nLeftPos = m_ContainerFormRemoteScreen.m_labRemoteScreenSample.Right + 2;

            m_ContainerFormRemoteScreen.m_numScreenIndex.Left = nLeftPos;
            m_ContainerFormRemoteScreen.m_numericZoom.Left    = nLeftPos;

            int nRightPos = m_ContainerFormRemoteScreen.m_numScreenIndex.Right + 2;

            m_ContainerFormRemoteScreen.m_btnSaveRemoteBitmap.Left = nRightPos;
            m_ContainerFormRemoteScreen.m_labBitmapSize.Left       = nRightPos;

            int nCheckPos = m_ContainerFormRemoteScreen.m_btnSaveRemoteBitmap.Right + 6;

            m_ContainerFormRemoteScreen.m_chkDumpHeader.Left      = nCheckPos;
            m_ContainerFormRemoteScreen.m_chkDumpColorScreen.Left = nCheckPos;
            m_ContainerFormRemoteScreen.m_chkDumpLCDGrid.Left     = nCheckPos;
            m_ContainerFormRemoteScreen.m_chkDumpColorScreen.Top  = m_ContainerFormRemoteScreen.m_chkDumpHeader.Bottom + 3;
            m_ContainerFormRemoteScreen.m_chkDumpLCDGrid.Top      = m_ContainerFormRemoteScreen.m_chkDumpColorScreen.Bottom + 3;

            this.MinimumSize = new Size(m_ContainerFormRemoteScreen.m_chkDumpLCDGrid.Right + 5, m_ContainerFormRemoteScreen.m_chkDumpScreen.Bottom + 2);

            if (m_CollGroupBoxRemoteScreen == null)
            {
                m_CollGroupBoxRemoteScreen = new CollapsibleGroupbox(this);
                m_CollGroupBoxRemoteScreen.CollapsedCaption = "REMOTE SCREEN";
                CollapseBtn_Click(null, null); //to update status first time
                this.Paint += new System.Windows.Forms.PaintEventHandler(this.Collapse_Paint);
            }
        }
        /// <summary>
        /// Defines layout of the components regardless their prior position
        /// </summary>
        public void SetUniversalLayout()
        {
            if (m_ContainerForm == null)
            {
                return;
            }

            if (Parent.Parent == null)
            {
                return;
            }

            this.AutoSize = true;

            if (Parent.Height > Parent.Parent.Height)
            {
                Parent.MinimumSize = new Size(this.Width + 1, Parent.Parent.Height - 1);
                Parent.MaximumSize = new Size(this.Width + 2, Parent.Parent.Height);
                Parent.Height      = Parent.Parent.Height;
            }
            this.MinimumSize = new Size(this.Width, this.Parent.Height);
            this.MaximumSize = new Size(this.Width, this.Parent.Height);

            m_ContainerForm.m_comboRFGenPowerCW.SelectedIndex = 0;
            m_ContainerForm.m_btnRFEGenCWStop.Width           = m_ContainerForm.m_btnRFEGenCWStart.Width;

            m_ContainerForm.m_sRFGenFreqCW.Left      = m_ContainerForm.m_labRFGenCWFreq.Right + BORDER_MARGIN;
            m_ContainerForm.m_btnRFEGenCWStart.Left  = m_ContainerForm.m_sRFGenFreqCW.Right + BORDER_MARGIN;
            m_ContainerForm.m_comboRFGenPowerCW.Left = m_ContainerForm.m_labRFGenCWFreq.Right + BORDER_MARGIN;
            m_ContainerForm.m_btnRFEGenCWStop.Left   = m_ContainerForm.m_comboRFGenPowerCW.Right + BORDER_MARGIN;

            if (m_CollGroupBox == null)
            {
                m_CollGroupBox = new CollapsibleGroupbox(this);
                CollapseBtn_Click(null, null); //to update status first time
                this.Paint += new PaintEventHandler(Collapse_Paint);
                m_CollGroupBox.CollapseButtonClick += new EventHandler(CollapseBtn_Click);
                m_CollGroupBox.CollapsedCaption     = "Signal Gen CW";
            }
        }
Exemple #5
0
        /// <summary>
        /// Defines layout of the components regardless their prior position
        /// </summary>
        public void SetUniversalLayout()
        {
            const int BORDER_MARGIN = 4;

            if (m_ContainerForm == null)
            {
                return;
            }

            if (Parent.Parent == null)
            {
                return;
            }

            if (Parent.Height > Parent.Parent.Height)
            {
                Parent.MinimumSize = new Size(this.Width + 1, Parent.Parent.Height - 1);
                Parent.MaximumSize = new Size(this.Width + 2, Parent.Parent.Height);
                Parent.Height      = Parent.Parent.Height;
            }
            this.MinimumSize = new Size(this.Width, this.Height);
            this.MaximumSize = new Size(this.Width, this.Height);

            m_ContainerForm.m_comboStdCmd.Left              = m_ContainerForm.m_label12.Right + BORDER_MARGIN;
            m_ContainerForm.m_comboCustomCommand.Left       = m_ContainerForm.m_label12.Right + BORDER_MARGIN;
            m_ContainerForm.m_btnSendAnalyzerCmd.Left       = m_ContainerForm.m_comboCustomCommand.Right + 8;
            m_ContainerForm.m_btnSendAnalyzerCustomCmd.Left = m_ContainerForm.m_comboCustomCommand.Right + 8;
            m_ContainerForm.m_btnSendGenCmd.Left            = m_ContainerForm.m_btnSendAnalyzerCmd.Right + BORDER_MARGIN;
            m_ContainerForm.m_btnSendGenCustomCmd.Left      = m_ContainerForm.m_btnSendAnalyzerCmd.Right + BORDER_MARGIN;

            if (m_CollGroupBoxCommands == null)
            {
                m_CollGroupBoxCommands = new CollapsibleGroupbox(this);
                CollapseBtn_Click(null, null); //to update status first time
                this.Paint += new PaintEventHandler(this.Collapse_Paint);
                m_CollGroupBoxCommands.CollapseButtonClick += new EventHandler(CollapseBtn_Click);
                m_CollGroupBoxCommands.CollapsedCaption     = "Commands";
            }
        }
Exemple #6
0
        /// <summary>
        /// Defines layout of the components regardless their prior position
        /// </summary>
        internal void SetUniversalLayout()
        {
            if (m_ContainerForm == null)
            {
                return;
            }

            if (Parent.Parent == null)
            {
                return;
            }

            this.AutoSize = true;

            if (Parent.Height > Parent.Parent.Height)
            {
                Parent.MinimumSize = new Size(this.Width + 1, Parent.Parent.Height - 1);
                Parent.MaximumSize = new Size(this.Width + 2, Parent.Parent.Height);
                Parent.Height      = Parent.Parent.Height;
            }
            this.MinimumSize = new Size(this.Width, this.Parent.Height);
            this.MaximumSize = new Size(this.Width, this.Parent.Height);

            //Correct Position
            m_ContainerForm.m_chkCalcRealtime.Left = m_ContainerForm.m_chkThick.Right + BORDER_MARGIN;
            m_ContainerForm.m_chkCalcAverage.Left  = m_ContainerForm.m_chkThick.Right + BORDER_MARGIN;
            m_ContainerForm.m_chkCalcMaxPeak.Left  = m_ContainerForm.m_chkThick.Right + BORDER_MARGIN;
            m_ContainerForm.m_chkCalcMaxHold.Left  = m_ContainerForm.m_chkThick.Right + BORDER_MARGIN;
            m_ContainerForm.m_chkCalcMin.Left      = m_ContainerForm.m_chkThick.Right + BORDER_MARGIN;

            if (m_CollGroupBoxTraces == null)
            {
                m_CollGroupBoxTraces = new CollapsibleGroupbox(this);
                CollapseBtn_Click(null, null); //to update status first time
                this.Paint += new PaintEventHandler(Collapse_Paint);
                m_CollGroupBoxTraces.CollapseButtonClick += new EventHandler(CollapseBtn_Click);
            }
        }
        /// <summary>
        /// Defines layout of the components regardless their prior position
        /// </summary>
        public void SetUniversalLayout()
        {
            if (m_ContainerForm == null)
            {
                return;
            }

            if (Parent.Parent == null)
            {
                return;
            }

            this.AutoSize = true;

            if (Parent.Height > Parent.Parent.Height)
            {
                Parent.MinimumSize = new Size(this.Width + 1, Parent.Parent.Height - 1);
                Parent.MaximumSize = new Size(this.Width + 2, Parent.Parent.Height);
                Parent.Height      = Parent.Parent.Height;
            }
            this.MinimumSize = new Size(this.Width, this.Parent.Height);
            this.MaximumSize = new Size(this.Width, this.Parent.Height);

            m_ContainerForm.m_MarkerIndex.Left = m_ContainerForm.label1.Right + BORDER_MARGIN;
            m_ContainerForm.m_chkEnabled.Left  = m_ContainerForm.m_MarkerIndex.Right + BORDER_MARGIN;

            m_ContainerForm.m_sMarkerFreq.Left = m_ContainerForm.label1.Right + BORDER_MARGIN;
            m_ContainerForm.m_TrackCombo.Left  = m_ContainerForm.label1.Right + BORDER_MARGIN;

            if (m_CollGroupBox == null)
            {
                m_CollGroupBox = new CollapsibleGroupbox(this);
                CollapseBtn_Click(null, null); //to update status first time
                this.Paint += new PaintEventHandler(Collapse_Paint);
                m_CollGroupBox.CollapseButtonClick += new EventHandler(CollapseBtn_Click);
            }
        }
Exemple #8
0
        /// <summary>
        /// Defines layout of the components regardless their prior position
        /// </summary>
        public void SetUniversalLayout()
        {
            if (m_ContainerForm == null)
            {
                return;
            }

            if (Parent.Parent == null)
            {
                return;
            }

            this.AutoSize = true;

            if (Parent.Height > Parent.Parent.Height)
            {
                Parent.MinimumSize = new Size(this.Width + 1, Parent.Parent.Height - 1);
                Parent.MaximumSize = new Size(this.Width + 2, Parent.Parent.Height);
                Parent.Height      = Parent.Parent.Height;
            }
            this.MinimumSize = new Size(this.Width, this.Parent.Height);
            this.MaximumSize = new Size(this.Width, this.Parent.Height);

            int nLeftEditBox = m_ContainerForm.m_labRFGenPowerStart.Right + BORDER_MARGIN;

            m_ContainerForm.m_comboRFGenPowerStart.Left    = nLeftEditBox;
            m_ContainerForm.m_comboRFGenPowerStop.Location = new Point(nLeftEditBox, m_ContainerForm.m_comboRFGenPowerStart.Bottom + BORDER_MARGIN);
            m_ContainerForm.m_sRFGenDelay.Location         = new Point(nLeftEditBox, m_ContainerForm.m_comboRFGenPowerStop.Bottom + BORDER_MARGIN);

            m_ContainerForm.m_labRFGenPowerStart.Top = m_ContainerForm.m_comboRFGenPowerStart.Top + BORDER_MARGIN - 1;
            m_ContainerForm.m_labRFGenPowerStop.Top  = m_ContainerForm.m_comboRFGenPowerStop.Top + BORDER_MARGIN;
            m_ContainerForm.m_labRFGenDelay.Top      = m_ContainerForm.m_sRFGenDelay.Top + BORDER_MARGIN + 1;
            m_ContainerForm.m_labRFGenSteps.Top      = m_ContainerForm.m_labRFGenDelay.Top;
            m_ContainerForm.m_sRFGenSteps.Top        = m_ContainerForm.m_sRFGenDelay.Top;

            int nButtonPos = m_ContainerForm.m_comboRFGenPowerStart.Right + 5;

            m_ContainerForm.m_btnRFEGenStartAmplitudeSweep.Left = nButtonPos;
            m_ContainerForm.m_btnRFEGenStopAmplitudeSweep.Left  = nButtonPos;
            m_ContainerForm.m_labRFGenSteps.Left = nButtonPos;
            m_ContainerForm.m_sRFGenSteps.Left   = m_ContainerForm.m_labRFGenSteps.Right + BORDER_MARGIN;

            m_ContainerForm.m_btnRFEGenStartAmplitudeSweep.Top = m_ContainerForm.m_comboRFGenPowerStart.Top - 3;
            m_ContainerForm.m_btnRFEGenStopAmplitudeSweep.Top  = m_ContainerForm.m_comboRFGenPowerStop.Top - 2;

            m_ContainerForm.m_btnRFEGenStartAmplitudeSweep.Height = m_ContainerForm.m_sRFGenSteps.Height;
            m_ContainerForm.m_btnRFEGenStopAmplitudeSweep.Height  = m_ContainerForm.m_sRFGenSteps.Height;
            m_ContainerForm.m_sRFGenSteps.Height = m_ContainerForm.m_sRFGenDelay.Height;

            m_ContainerForm.m_btnRFEGenStopAmplitudeSweep.Width = m_ContainerForm.m_btnRFEGenStartAmplitudeSweep.Width;
            m_ContainerForm.m_sRFGenSteps.Width = m_ContainerForm.m_btnRFEGenStartAmplitudeSweep.Width - (m_ContainerForm.m_labRFGenSteps.Width + BORDER_MARGIN);

            m_ContainerForm.m_comboRFGenPowerStart.SelectedIndex = 0;
            m_ContainerForm.m_comboRFGenPowerStop.SelectedIndex  = 0;

            if (m_CollGroupBox == null)
            {
                m_CollGroupBox = new CollapsibleGroupbox(this);
                CollapseBtn_Click(null, null); //to update status first time
                this.Paint += new PaintEventHandler(Collapse_Paint);
                m_CollGroupBox.CollapseButtonClick += new EventHandler(CollapseBtn_Click);
                m_CollGroupBox.CollapsedCaption     = "SWEEP AMP";
            }
        }
Exemple #9
0
        /// <summary>
        /// Defines layout of the components regardless their prior position
        /// </summary>
        public void SetUniversalLayout()
        {
            if (m_ContainerForm == null)
            {
                return;
            }

            if (Parent.Parent == null)
            {
                return;
            }

            this.AutoSize = true;

            if (Parent.Height > Parent.Parent.Height)
            {
                Parent.MinimumSize = new Size(this.Width + 1, Parent.Parent.Height - 1);
                Parent.MaximumSize = new Size(this.Width + 2, Parent.Parent.Height);
                Parent.Height      = Parent.Parent.Height;
            }
            this.MinimumSize = new Size(Parent.Width, Parent.Height);
            this.MaximumSize = new Size(Parent.Width, Parent.Height);

            int nLeftEditBox = m_ContainerForm.m_labRFGenStartFreq.Right + 2;

            m_ContainerForm.m_sRFGenFreqSweepStart.Left    = nLeftEditBox;
            m_ContainerForm.m_sRFGenFreqSweepStop.Location = new Point(nLeftEditBox, m_ContainerForm.m_sRFGenFreqSweepStart.Bottom + 2);
            m_ContainerForm.m_sRFGenDelay.Location         = new Point(nLeftEditBox, m_ContainerForm.m_sRFGenFreqSweepStop.Bottom + 2);

            m_ContainerForm.m_labRFGenStartFreq.Top    = m_ContainerForm.m_sRFGenFreqSweepStart.Top + 4;
            m_ContainerForm.m_labRFGenStopFreq.Top     = m_ContainerForm.m_sRFGenFreqSweepStop.Top + 4;
            m_ContainerForm.m_labRFGenDelay.Top        = m_ContainerForm.m_sRFGenDelay.Top + 4;
            m_ContainerForm.m_labRFGenSteps.Top        = m_ContainerForm.m_labRFGenDelay.Top;
            m_ContainerForm.m_sRFGenFreqSweepSteps.Top = m_ContainerForm.m_sRFGenDelay.Top;

            int nButtonPos = m_ContainerForm.m_sRFGenFreqSweepStart.Right + 5;

            m_ContainerForm.m_btnStartFreqSweepContinuous.Left = nButtonPos;
            m_ContainerForm.m_btnStopFreqSweep.Left            = nButtonPos;
            m_ContainerForm.m_labRFGenSteps.Left        = nButtonPos;
            m_ContainerForm.m_sRFGenFreqSweepSteps.Left = m_ContainerForm.m_labRFGenSteps.Right + 4;

            m_ContainerForm.m_btnStartFreqSweepContinuous.Top = m_ContainerForm.m_sRFGenFreqSweepStart.Top;
            m_ContainerForm.m_btnStopFreqSweep.Top            = m_ContainerForm.m_sRFGenFreqSweepStop.Top;

            m_ContainerForm.m_btnStartFreqSweepContinuous.Height = m_ContainerForm.m_sRFGenFreqSweepStart.Height;
            m_ContainerForm.m_btnStopFreqSweep.Height            = m_ContainerForm.m_sRFGenFreqSweepStart.Height;
            m_ContainerForm.m_labRFGenDelay.Height        = m_ContainerForm.m_sRFGenFreqSweepStart.Height;
            m_ContainerForm.m_sRFGenDelay.Width           = m_ContainerForm.m_sRFGenFreqSweepStart.Width;
            m_ContainerForm.m_sRFGenFreqSweepSteps.Width  = m_ContainerForm.m_btnStartFreqSweepContinuous.Width - (m_ContainerForm.m_labRFGenSteps.Width + BORDER_MARGIN);
            m_ContainerForm.m_sRFGenFreqSweepSteps.Height = m_ContainerForm.m_sRFGenDelay.Height;

            m_ContainerForm.m_btnStopFreqSweep.Top = m_ContainerForm.m_btnStartFreqSweepContinuous.Bottom + 2;

            m_ContainerForm.m_btnStopFreqSweep.MinimumSize = m_ContainerForm.m_btnStartFreqSweepContinuous.Size;

            if (m_CollGroupBox == null)
            {
                m_CollGroupBox = new CollapsibleGroupbox(this);
                CollapseBtn_Click(null, null); //to update status first time
                m_CollGroupBox.CollapsedCaption = "SWEEP FREQ";
                this.Paint += new System.Windows.Forms.PaintEventHandler(this.Collapse_Paint);
                m_CollGroupBox.CollapseButtonClick += new EventHandler(CollapseBtn_Click);
            }
        }
        /// <summary>
        /// Defines layout of the components regardless their prior position
        /// </summary>
        public void SetUniversalLayout()
        {
            if (m_ContainerForm == null)
            {
                return;
            }

            if (Parent.Parent == null)
            {
                return;
            }

            this.AutoSize = true;

            if (Parent.Height > Parent.Parent.Height)
            {
                Parent.MinimumSize = new Size(this.Width + 1, Parent.Parent.Height - 1);
                Parent.MaximumSize = new Size(this.Width + 2, Parent.Parent.Height);
                Parent.Height      = Parent.Parent.Height;
            }
            this.MinimumSize = new Size(this.Width, this.Parent.Height);
            this.MaximumSize = new Size(this.Width, this.Parent.Height);

            Size SizeMinEditbox   = new Size((int)(m_ContainerForm.m_labAnalyzerCenterFreq.Width * 1.4), 26);
            Size SizeMinLeftText  = m_ContainerForm.m_labAnalyzerBottomAmplitude.Size;
            Size SizeMinRightText = m_ContainerForm.m_labAnalyzerFreqSpan.Size;
            int  nLeftEditBox     = m_ContainerForm.m_labAnalyzerBottomAmplitude.Right + 3;

            m_ContainerForm.m_sAnalyzerCenterFreq.MinimumSize      = SizeMinEditbox;
            m_ContainerForm.m_sAnalyzerFreqSpan.MinimumSize        = SizeMinEditbox;
            m_ContainerForm.m_sAnalyzerTopAmplitude.MinimumSize    = SizeMinEditbox;
            m_ContainerForm.m_sAnalyzerBottomAmplitude.MinimumSize = SizeMinEditbox;
            m_ContainerForm.m_sAnalyzerStartFreq.MinimumSize       = SizeMinEditbox;
            m_ContainerForm.m_sAnalyzerEndFreq.MinimumSize         = SizeMinEditbox;

            m_ContainerForm.m_sAnalyzerCenterFreq.Location      = new Point(nLeftEditBox, m_ContainerForm.m_sAnalyzerCenterFreq.Top);
            m_ContainerForm.m_sAnalyzerStartFreq.Location       = new Point(nLeftEditBox, m_ContainerForm.m_sAnalyzerCenterFreq.Bottom + 2);
            m_ContainerForm.m_sAnalyzerBottomAmplitude.Location = new Point(nLeftEditBox, m_ContainerForm.m_sAnalyzerStartFreq.Bottom + 2);

            m_ContainerForm.m_labAnalyzerCenterFreq.Top      = m_ContainerForm.m_sAnalyzerCenterFreq.Top + 4;
            m_ContainerForm.m_labAnalyzerStartFreq.Top       = m_ContainerForm.m_sAnalyzerStartFreq.Top + 4;
            m_ContainerForm.m_labAnalyzerBottomAmplitude.Top = m_ContainerForm.m_sAnalyzerBottomAmplitude.Top + 4;

            m_ContainerForm.m_labAnalyzerCenterFreq.MinimumSize = SizeMinLeftText;
            m_ContainerForm.m_labAnalyzerStartFreq.MinimumSize  = SizeMinLeftText;

            int nRightText = m_ContainerForm.m_sAnalyzerCenterFreq.Right + 5;

            m_ContainerForm.m_labAnalyzerFreqSpan.Location     = new Point(nRightText, m_ContainerForm.m_labAnalyzerCenterFreq.Top);
            m_ContainerForm.m_labAnalyzerEndFreq.Location      = new Point(nRightText, m_ContainerForm.m_labAnalyzerStartFreq.Top);
            m_ContainerForm.m_labAnalyzerTopAmplitude.Location = new Point(nRightText, m_ContainerForm.m_labAnalyzerBottomAmplitude.Top);

            int nRightEditBox = m_ContainerForm.m_labAnalyzerFreqSpan.Right + 3;

            m_ContainerForm.m_sAnalyzerFreqSpan.Location     = new Point(nRightEditBox, m_ContainerForm.m_sAnalyzerCenterFreq.Top);
            m_ContainerForm.m_sAnalyzerEndFreq.Location      = new Point(nRightEditBox, m_ContainerForm.m_sAnalyzerCenterFreq.Bottom + 2);
            m_ContainerForm.m_sAnalyzerTopAmplitude.Location = new Point(nRightEditBox, m_ContainerForm.m_sAnalyzerStartFreq.Bottom + 2);

            int nButtonPos = m_ContainerForm.m_sAnalyzerTopAmplitude.Right + 5;

            m_ContainerForm.btnAnalyzerSend.Left = nButtonPos;
            m_ContainerForm.btnAnalyzerFreqSettingsReset.Location = new Point(nButtonPos, m_ContainerForm.m_sAnalyzerBottomAmplitude.Top);
            m_ContainerForm.btnAnalyzerFreqSettingsReset.Height   = m_ContainerForm.m_sAnalyzerStartFreq.Height;
            m_ContainerForm.btnAnalyzerFreqSettingsReset.Width    = SizeMinRightText.Width;
            m_ContainerForm.btnAnalyzerSend.MinimumSize           = new Size(m_ContainerForm.btnAnalyzerFreqSettingsReset.Width, m_ContainerForm.m_sAnalyzerStartFreq.Bottom - m_ContainerForm.m_sAnalyzerCenterFreq.Top);
            m_ContainerForm.btnAnalyzerSend.MaximumSize           = m_ContainerForm.btnAnalyzerSend.MinimumSize;

            this.MinimumSize = new Size(m_ContainerForm.btnAnalyzerSend.Right + 6, m_ContainerForm.m_sAnalyzerBottomAmplitude.Bottom + 2);

            if (m_CollGroupBox == null)
            {
                m_CollGroupBox = new CollapsibleGroupbox(this);
                m_CollGroupBox.CollapsedCaption = "FREQ";
                CollapseBtn_Click(null, null); //to update status first time
                this.Paint += new PaintEventHandler(Collapse_Paint);
                m_CollGroupBox.CollapseButtonClick += new EventHandler(CollapseBtn_Click);
            }
        }