Fix for rectangle capture staying top of dialogs

This commit is contained in:
Jaex 2014-07-12 03:17:54 +03:00
parent 42e036a925
commit f6f945f918
4 changed files with 6 additions and 2 deletions

View file

@ -138,6 +138,7 @@ private void InitializeComponent()
this.DoubleBuffered = true;
this.FormBorderStyle = FormBorderStyle.None;
this.Text = "ShareX - Image viewer";
this.TopMost = true;
this.WindowState = FormWindowState.Maximized;
this.Controls.Add(this.pbPreview);

View file

@ -174,6 +174,7 @@ private void InitializeComponent()
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "ShareX - Post capture tasks";
this.TopMost = true;
this.tcTasks.ResumeLayout(false);
this.tpAfterCapture.ResumeLayout(false);
this.tpBeforeUpload.ResumeLayout(false);

View file

@ -88,12 +88,13 @@ private void InitializeComponent()
this.Controls.Add(this.btnOK);
this.Controls.Add(this.ucBeforeUpload);
this.MaximizeBox = false;
this.MaximumSize = new System.Drawing.Size(420, 460);
this.MaximumSize = new System.Drawing.Size(420, 800);
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(420, 420);
this.Name = "BeforeUploadForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "ShareX - Dynamic Destinations";
this.Text = "ShareX - Dynamic destinations";
this.TopMost = true;
this.ResumeLayout(false);
}

View file

@ -310,6 +310,7 @@ public static bool SelectRegion(out Rectangle rect)
using (RectangleRegion surface = new RectangleRegion())
{
surface.AreaManager.WindowCaptureMode = true;
surface.AreaManager.IncludeControls = true;
surface.Prepare();
surface.ShowDialog();