This commit is contained in:
meelstorm
2025-10-13 14:59:28 +02:00
parent 44748f2855
commit 97ac18eac6
22 changed files with 645 additions and 21 deletions

View File

@@ -46,9 +46,14 @@ namespace Hawkeye.VisionBuilder.Features.ImagePreview
imagePreviewControl.GraphicsElements.Add(element);
}
private void btnFit_Click(object sender, EventArgs e)
public void Fit()
{
imagePreviewControl.FitToScreen();
}
private void btnFit_Click(object sender, EventArgs e)
{
Fit();
}
}
}

View File

@@ -143,7 +143,9 @@
//
// ckbExecuteWorkflow
//
ckbExecuteWorkflow.Checked = true;
ckbExecuteWorkflow.CheckOnClick = true;
ckbExecuteWorkflow.CheckState = CheckState.Checked;
ckbExecuteWorkflow.DisplayStyle = ToolStripItemDisplayStyle.Text;
ckbExecuteWorkflow.Image = (Image)resources.GetObject("ckbExecuteWorkflow.Image");
ckbExecuteWorkflow.ImageTransparentColor = Color.Magenta;

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Microsoft ResX Schema
Version 2.0
@@ -48,7 +48,7 @@
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter

View File

@@ -198,7 +198,7 @@
// imageStatisticsToolStripMenuItem
//
imageStatisticsToolStripMenuItem.Name = "imageStatisticsToolStripMenuItem";
imageStatisticsToolStripMenuItem.Size = new Size(180, 22);
imageStatisticsToolStripMenuItem.Size = new Size(155, 22);
imageStatisticsToolStripMenuItem.Text = "Image statistics";
imageStatisticsToolStripMenuItem.Click += imageStatisticsToolStripMenuItem_Click;
//
@@ -213,7 +213,7 @@
MainMenuStrip = menuStrip1;
Name = "MainWindow";
StartPosition = FormStartPosition.CenterScreen;
Text = "Hawkeye Vision Builder";
Text = "Hawkeye Vision Builder Core";
toolStrip1.ResumeLayout(false);
toolStrip1.PerformLayout();
menuStrip1.ResumeLayout(false);

View File

@@ -152,7 +152,10 @@ namespace Hawkeye.VisionBuilder
protected override void OnShown(EventArgs e)
{
base.OnShown(e);
WindowState= FormWindowState.Maximized;
Application.DoEvents();
OrganizeWindows(null, null);
_previewPanel.Fit();
}
private void OrganizeWindows(object sender, EventArgs e)