Beispiel #1
0
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <summary>
        /// (Updates the container margins.)
        /// Handlers for when the main menu, tool bar panel, or status bar are resized.
        /// </summary>
        private void Bars_Resize(object sender, ResizeEventArgs e)
        {
// Update margins to account for the removal of the scroll bar.
            AdjustMargins();
//if (sbHorz != null) sbHorz.Value -= 1;
//if (sbVert != null) sbVert.Value -= 1;
// Crappy fix to certain scrolling issue
        }
Beispiel #2
0
 /// <param name="e"></param>
 /// <summary>
 /// Handles resizing the scroll bar control.
 /// </summary>
 protected override void OnResize(ResizeEventArgs e)
 {
     base.OnResize(e);
     RecalcParams();
     if (Value + PageSize > Range)
     {
         Value = Range - PageSize;
     }
 }
Beispiel #3
0
        /// <param name="e"></param>
        /// <summary>
        /// Handles resizing of the container control.
        /// </summary>
        protected override void OnResize(ResizeEventArgs e)
        {
            base.OnResize(e);
            CalcScrolling();

//if (sbHorz != null) sbHorz.Value -= 1;
//if (sbVert != null) sbVert.Value -= 1;
// Crappy fix to certain scrolling issue
        }
Beispiel #4
0
        /// <param name="e"></param>
        /// <summary>
        /// Handles the resize event.
        /// </summary>
        protected override void OnResize(ResizeEventArgs e)
        {
            base.OnResize(e);

            if (btnDown != null)
            {
                btnDown.Width  = 16;
                btnDown.Height = Height - Skin.Layers[0].ContentMargins.Vertical;
                btnDown.Top    = Skin.Layers[0].ContentMargins.Top;
                btnDown.Left   = Width - btnDown.Width - 2;
            }
        }
Beispiel #5
0
        /// <param name="e"></param>
        /// <summary>
        /// Handles resize events for the clip control.
        /// </summary>
        protected override void OnResize(ResizeEventArgs e)
        {
            base.OnResize(e);

            // Update client area dimensions.
            if (clientArea != null)
            {
                clientArea.Left   = ClientLeft;
                clientArea.Top    = ClientTop;
                clientArea.Width  = ClientWidth;
                clientArea.Height = ClientHeight;
            }
        }
Beispiel #6
0
        void OpenFileDialog_Resize(object sender, ResizeEventArgs e)
        {
            // Resize the controls so they expand with the dialog.
            cmbDirectory.Width  = (ClientWidth - cmbDirectory.Left - btnDirectoryUp.Width);
            btnDirectoryUp.Left = (ClientWidth - btnDirectoryUp.Width);
            lstFiles.Width      = (ClientWidth);
            lstFiles.Height     = (ClientHeight - lstFiles.Top - btnOpen.Height - txtFileName.Height);

            txtFileName.Top   = (lstFiles.Top + lstFiles.Height);
            txtFileName.Width = (ClientWidth - txtFilter.Width);
            txtFilter.Top     = (lstFiles.Top + lstFiles.Height);
            txtFilter.Left    = (ClientWidth - txtFilter.Width);

            btnCancel.Top  = (ClientHeight - btnCancel.Height);
            btnCancel.Left = (ClientWidth - btnCancel.Width);
            btnOpen.Top    = (ClientHeight - btnOpen.Height);
            btnOpen.Left   = (btnCancel.Left - btnOpen.Width);
        }
Beispiel #7
0
        /// <param name="e"></param>
        /// <summary>
        /// Handles resizing the spin box control.
        /// </summary>
        protected override void OnResize(ResizeEventArgs e)
        {
            base.OnResize(e);

// Reposition the spin buttons.
            if (btnUp != null)
            {
                btnUp.Width  = 16;
                btnUp.Height = Height - Skin.Layers["Control"].ContentMargins.Vertical;
                btnUp.Top    = Skin.Layers["Control"].ContentMargins.Top;
                btnUp.Left   = Width - 16 - 2 - 16 - 1;
            }
            if (btnDown != null)
            {
                btnDown.Width  = 16;
                btnDown.Height = Height - Skin.Layers["Control"].ContentMargins.Vertical;
                btnDown.Top    = Skin.Layers["Control"].ContentMargins.Top;
                ;
                btnDown.Left = Width - 16 - 2;
            }
        }
Beispiel #8
0
 /// <summary>
 /// Updates scroll bar values after the console window has been resized.
 /// </summary>
 /// <param name="e"></param>
 protected override void OnResize(ResizeEventArgs e)
 {
     CalcScrolling();
     base.OnResize(e);
 }
Beispiel #9
0
 /// <param name="e"></param>
 /// <summary>
 /// Handles resize events for the tool bar panel control.
 /// </summary>
 protected override void OnResize(ResizeEventArgs e)
 {
     base.OnResize(e);
 }
Beispiel #10
0
 /// <param name="e"></param>
 /// <summary>
 /// Handles resizing of the list box.
 /// </summary>
 protected override void OnResize(ResizeEventArgs e)
 {
     base.OnResize(e);
     ItemsChanged();
 }
Beispiel #11
0
 /// <param name="e"></param>
 /// <summary>
 /// Handles resizing of the window.
 /// </summary>
 protected override void OnResize(ResizeEventArgs e)
 {
     SetMovableArea();
     base.OnResize(e);
 }
Beispiel #12
0
 /// <param name="e"></param>
 /// <summary>
 /// Handles resizing of the track bar control.
 /// </summary>
 protected override void OnResize(ResizeEventArgs e)
 {
     base.OnResize(e);
     RecalcParams();
 }
Beispiel #13
0
 protected override void OnResize(ResizeEventArgs e)
 {
     CalcLayout();
     base.OnResize(e);
 }
Beispiel #14
0
// Respect the guide.

        /// <param name="e"></param>
        /// </summary>
        /// Updates scroll bar values after the console window has been resized.
        /// </summary>
        protected override void OnResize(ResizeEventArgs e)
        {
// Update scroll bar value.
            CalcScrolling();
            base.OnResize(e);
        }
Beispiel #15
0
        /// <param name="e"></param>
        /// <param name="sender"></param>
        /// <summary>
        /// (Updates the container margins.)
        /// Handlers for when the main menu, tool bar panel, or status bar are resized.
        /// </summary>
        private void Bars_Resize(object sender, ResizeEventArgs e)
        {
// Update margins to account for the removal of the scroll bar.
            AdjustMargins();
        }