mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-04 04:06:05 +13:00
Fix for rectangle capture staying top of dialogs
This commit is contained in:
parent
42e036a925
commit
f6f945f918
4 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
1
ShareX/Forms/AfterCaptureForm.Designer.cs
generated
1
ShareX/Forms/AfterCaptureForm.Designer.cs
generated
|
@ -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);
|
||||
|
|
5
ShareX/Forms/BeforeUploadForm.Designer.cs
generated
5
ShareX/Forms/BeforeUploadForm.Designer.cs
generated
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue