/// ------------------------------------------------------------------------------------ /// <summary> /// </summary> /// ------------------------------------------------------------------------------------ protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // Draw the etched, horizontal line separating the wizard buttons // from the rest of the form. LineDrawing.DrawDialogControlSeparator(e.Graphics, ClientRectangle, btn_help.Bounds); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Paint an etched line to separate main controls from Add, Cancel, and Help buttons. /// </summary> /// <param name="e">Paint Event arguments</param> /// ------------------------------------------------------------------------------------ protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // Draw the etched, horizontal line separating the Add/Cancel/Help buttons LineDrawing.DrawDialogControlSeparator(e.Graphics, ClientRectangle, btnAdd.Top - (this.ClientRectangle.Bottom - btnAdd.Bottom)); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Paint an etched line to separate main controls from OK, Cancel, and Help buttons. /// </summary> /// <param name="e">Paint Event arguments</param> /// ------------------------------------------------------------------------------------ protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // Draw the etched, horizontal line separating the buttons from the stuff above // them. LineDrawing.DrawDialogControlSeparator(e.Graphics, ClientRectangle, btnBackup.Bounds); }
/// ------------------------------------------------------------------------------------ /// <summary> /// This will draw the the etched line that separates the dialog's buttons at the /// bottom from the rest of the dialog. /// </summary> /// ------------------------------------------------------------------------------------ protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // Draw the line between the marker name and the exclude check box. LineDrawing.DrawDialogControlSeparator(e.Graphics, ClientRectangle, (mappingDetailsCtrl.Top + markerLabel.Bottom) / 2); // Draw the line separating the buttons from the rest of the form. LineDrawing.DrawDialogControlSeparator(e.Graphics, ClientRectangle, btnHelp.Bounds); }
/// ----------------------------------------------------------------------------------- /// <summary> /// This will draw the the etched line that separates the dialog's buttons at the /// bottom from the rest of the dialog. It will also call the method to update the /// "Step x of n" label. /// </summary> /// ----------------------------------------------------------------------------------- protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); // Draw the etched, horizontal line separating the wizard buttons // from the rest of the form. LineDrawing.DrawDialogControlSeparator(e.Graphics, ClientRectangle, lblSteps.Bottom + (m_btnHelp.Top - lblSteps.Bottom) / 2); UpdateStepLabel(); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Raises the paint event. /// </summary> /// <param name="e">The <see cref="T:System.Windows.Forms.PaintEventArgs"/> /// instance containing the event data.</param> /// ------------------------------------------------------------------------------------ protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); LineDrawing.DrawDialogControlSeparator(e.Graphics, ClientRectangle, btnOK.Bounds); }