better ui for zoom & icon
This commit is contained in:
60
StreamViewer.Designer.cs
generated
60
StreamViewer.Designer.cs
generated
@@ -31,11 +31,12 @@ namespace robospot_camera_finder
|
||||
private void InitializeComponent()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(StreamViewer));
|
||||
videoView = new LibVLCSharp.WinForms.VideoView();
|
||||
tbZoom = new TrackBar();
|
||||
lblMinZoom = new Label();
|
||||
lblMaxZoom = new Label();
|
||||
timerUpdateZoom = new System.Windows.Forms.Timer(components);
|
||||
btnZoomMin = new Button();
|
||||
btnZoomMax = new Button();
|
||||
((System.ComponentModel.ISupportInitialize)videoView).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)tbZoom).BeginInit();
|
||||
SuspendLayout();
|
||||
@@ -68,44 +69,49 @@ namespace robospot_camera_finder
|
||||
tbZoom.KeyUp += tbZoom_KeyUp;
|
||||
tbZoom.MouseUp += tbZoom_MouseUp;
|
||||
//
|
||||
// lblMinZoom
|
||||
//
|
||||
lblMinZoom.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
||||
lblMinZoom.AutoSize = true;
|
||||
lblMinZoom.Location = new Point(902, 492);
|
||||
lblMinZoom.Name = "lblMinZoom";
|
||||
lblMinZoom.Size = new Size(19, 15);
|
||||
lblMinZoom.TabIndex = 2;
|
||||
lblMinZoom.Text = "1x";
|
||||
//
|
||||
// lblMaxZoom
|
||||
//
|
||||
lblMaxZoom.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||
lblMaxZoom.AutoSize = true;
|
||||
lblMaxZoom.Location = new Point(902, 12);
|
||||
lblMaxZoom.Name = "lblMaxZoom";
|
||||
lblMaxZoom.Size = new Size(25, 15);
|
||||
lblMaxZoom.TabIndex = 3;
|
||||
lblMaxZoom.Text = "32x";
|
||||
//
|
||||
// timerUpdateZoom
|
||||
//
|
||||
timerUpdateZoom.Enabled = true;
|
||||
timerUpdateZoom.Interval = 10000;
|
||||
timerUpdateZoom.Tick += timerUpdateZoom_Tick;
|
||||
//
|
||||
// btnZoomMin
|
||||
//
|
||||
btnZoomMin.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
|
||||
btnZoomMin.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
||||
btnZoomMin.Location = new Point(886, 484);
|
||||
btnZoomMin.Name = "btnZoomMin";
|
||||
btnZoomMin.Size = new Size(42, 23);
|
||||
btnZoomMin.TabIndex = 2;
|
||||
btnZoomMin.Text = "1x";
|
||||
btnZoomMin.UseVisualStyleBackColor = true;
|
||||
btnZoomMin.Click += btnZoomMin_Click;
|
||||
//
|
||||
// btnZoomMax
|
||||
//
|
||||
btnZoomMax.Anchor = AnchorStyles.Top | AnchorStyles.Right;
|
||||
btnZoomMax.Font = new Font("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
|
||||
btnZoomMax.Location = new Point(886, 12);
|
||||
btnZoomMax.Name = "btnZoomMax";
|
||||
btnZoomMax.Size = new Size(42, 23);
|
||||
btnZoomMax.TabIndex = 3;
|
||||
btnZoomMax.Text = "32x";
|
||||
btnZoomMax.UseVisualStyleBackColor = true;
|
||||
btnZoomMax.Click += btnZoomMax_Click;
|
||||
//
|
||||
// StreamViewer
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
ClientSize = new Size(933, 519);
|
||||
Controls.Add(lblMaxZoom);
|
||||
Controls.Add(lblMinZoom);
|
||||
Controls.Add(btnZoomMax);
|
||||
Controls.Add(btnZoomMin);
|
||||
Controls.Add(tbZoom);
|
||||
Controls.Add(videoView);
|
||||
Icon = (Icon)resources.GetObject("$this.Icon");
|
||||
Margin = new Padding(4, 3, 4, 3);
|
||||
Name = "StreamViewer";
|
||||
Text = "LibVLCSharp.WinForms";
|
||||
Text = "Camera";
|
||||
FormClosed += StreamViewer_FormClosed;
|
||||
((System.ComponentModel.ISupportInitialize)videoView).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)tbZoom).EndInit();
|
||||
@@ -117,8 +123,8 @@ namespace robospot_camera_finder
|
||||
|
||||
private LibVLCSharp.WinForms.VideoView videoView;
|
||||
private TrackBar tbZoom;
|
||||
private Label lblMinZoom;
|
||||
private Label lblMaxZoom;
|
||||
private System.Windows.Forms.Timer timerUpdateZoom;
|
||||
private Button btnZoomMin;
|
||||
private Button btnZoomMax;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user