Commit 6c52ad76 HZH

仪表

1 个父辈 87698f3d
// ***********************************************************************
// Assembly : HZH_Controls
// Created : 2019-09-03
//
// ***********************************************************************
// <copyright file="UCMeter.cs">
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
// </copyright>
//
// Blog: https://www.cnblogs.com/bfyx
// GitHub:https://github.com/kwwwvagaa/NetWinformControl
// gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.ComponentModel;
namespace HZH_Controls.Controls
{
/// <summary>
/// Class UCMeter.
/// Implements the <see cref="System.Windows.Forms.UserControl" />
/// </summary>
/// <seealso cref="System.Windows.Forms.UserControl" />
public class UCMeter : UserControl
{
private int splitCount = 10;
/// <summary>
/// Gets or sets the split count.
/// </summary>
/// <value>The split count.</value>
[Description("分隔刻度数量,>1"), Category("自定义")]
public int SplitCount
{
get { return splitCount; }
set
{
if (value < 1)
return;
splitCount = value;
Refresh();
}
}
private int meterDegrees = 150;
/// <summary>
/// Gets or sets the meter degrees.
/// </summary>
/// <value>The meter degrees.</value>
[Description("表盘跨度角度,0-360"), Category("自定义")]
public int MeterDegrees
{
get { return meterDegrees; }
set
{
if (value > 360 || value <= 0)
return;
meterDegrees = value;
Refresh();
}
}
private decimal minValue = 0;
/// <summary>
/// Gets or sets the minimum value.
/// </summary>
/// <value>The minimum value.</value>
[Description("最小值,<MaxValue"), Category("自定义")]
public decimal MinValue
{
get { return minValue; }
set
{
if (value >= maxValue)
return;
minValue = value;
Refresh();
}
}
private decimal maxValue = 100;
/// <summary>
/// Gets or sets the maximum value.
/// </summary>
/// <value>The maximum value.</value>
[Description("最大值,>MinValue"), Category("自定义")]
public decimal MaxValue
{
get { return maxValue; }
set
{
if (value <= minValue)
return;
maxValue = value;
Refresh();
}
}
/// <summary>
/// 获取或设置控件显示的文字的字体。
/// </summary>
/// <value>The font.</value>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.EnvironmentPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
/// <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode, ControlEvidence" />
/// <IPermission class="System.Diagnostics.PerformanceCounterPermission, System, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
/// </PermissionSet>
[Description("刻度字体"), Category("自定义")]
public override Font Font
{
get
{
return base.Font;
}
set
{
base.Font = value;
Refresh();
}
}
private decimal m_value = 0;
/// <summary>
/// Gets or sets the value.
/// </summary>
/// <value>The value.</value>
[Description("值,>=MinValue并且<=MaxValue"), Category("自定义")]
public decimal Value
{
get { return m_value; }
set
{
if (value < minValue || value > maxValue)
return;
m_value = value;
Refresh();
}
}
private MeterTextLocation textLocation = MeterTextLocation.None;
/// <summary>
/// Gets or sets the text location.
/// </summary>
/// <value>The text location.</value>
[Description("值和固定文字显示位置"), Category("自定义")]
public MeterTextLocation TextLocation
{
get { return textLocation; }
set
{
textLocation = value;
Refresh();
}
}
private string fixedText;
/// <summary>
/// Gets or sets the fixed text.
/// </summary>
/// <value>The fixed text.</value>
[Description("固定文字"), Category("自定义")]
public string FixedText
{
get { return fixedText; }
set
{
fixedText = value;
Refresh();
}
}
private Font textFont = DefaultFont;
/// <summary>
/// Gets or sets the text font.
/// </summary>
/// <value>The text font.</value>
[Description("值和固定文字字体"), Category("自定义")]
public Font TextFont
{
get { return textFont; }
set
{
textFont = value;
Refresh();
}
}
private Color externalRoundColor = Color.FromArgb(255, 77, 59);
/// <summary>
/// Gets or sets the color of the external round.
/// </summary>
/// <value>The color of the external round.</value>
[Description("外圆颜色"), Category("自定义")]
public Color ExternalRoundColor
{
get { return externalRoundColor; }
set
{
externalRoundColor = value;
Refresh();
}
}
private Color insideRoundColor = Color.FromArgb(255, 77, 59);
/// <summary>
/// Gets or sets the color of the inside round.
/// </summary>
/// <value>The color of the inside round.</value>
[Description("内圆颜色"), Category("自定义")]
public Color InsideRoundColor
{
get { return insideRoundColor; }
set
{
insideRoundColor = value;
Refresh();
}
}
private Color boundaryLineColor = Color.FromArgb(255, 77, 59);
/// <summary>
/// Gets or sets the color of the boundary line.
/// </summary>
/// <value>The color of the boundary line.</value>
[Description("边界线颜色"), Category("自定义")]
public Color BoundaryLineColor
{
get { return boundaryLineColor; }
set
{
boundaryLineColor = value;
Refresh();
}
}
private Color scaleColor = Color.FromArgb(255, 77, 59);
/// <summary>
/// Gets or sets the color of the scale.
/// </summary>
/// <value>The color of the scale.</value>
[Description("刻度颜色"), Category("自定义")]
public Color ScaleColor
{
get { return scaleColor; }
set
{
scaleColor = value;
Refresh();
}
}
private Color scaleValueColor = Color.FromArgb(255, 77, 59);
/// <summary>
/// Gets or sets the color of the scale value.
/// </summary>
/// <value>The color of the scale value.</value>
[Description("刻度值文字颜色"), Category("自定义")]
public Color ScaleValueColor
{
get { return scaleValueColor; }
set
{
scaleValueColor = value;
Refresh();
}
}
private Color pointerColor = Color.FromArgb(255, 77, 59);
/// <summary>
/// Gets or sets the color of the pointer.
/// </summary>
/// <value>The color of the pointer.</value>
[Description("指针颜色"), Category("自定义")]
public Color PointerColor
{
get { return pointerColor; }
set
{
pointerColor = value;
Refresh();
}
}
private Color textColor = Color.FromArgb(255, 77, 59);
/// <summary>
/// Gets or sets the color of the text.
/// </summary>
/// <value>The color of the text.</value>
[Description("值和固定文字颜色"), Category("自定义")]
public Color TextColor
{
get { return textColor; }
set
{
textColor = value;
Refresh();
}
}
Rectangle m_rectWorking;
public UCMeter()
{
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.Selectable, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
this.SetStyle(ControlStyles.UserPaint, true);
this.SizeChanged += UCMeter1_SizeChanged;
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.Size = new Size(350, 200);
}
void UCMeter1_SizeChanged(object sender, EventArgs e)
{
m_rectWorking = new Rectangle(10, 10, this.Width - 20, this.Height - 20);
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
var g = e.Graphics;
g.SetGDIHigh();
//外圆
float fltStartAngle = -90 - (meterDegrees) / 2 + 360;
var r1 = new Rectangle(m_rectWorking.Location, new Size(m_rectWorking.Width, m_rectWorking.Width));
g.DrawArc(new Pen(new SolidBrush(externalRoundColor), 1), r1, fltStartAngle, meterDegrees);
//内圆
var r2 = new Rectangle(m_rectWorking.Left + (m_rectWorking.Width - m_rectWorking.Width / 4) / 2, m_rectWorking.Top + (m_rectWorking.Width - m_rectWorking.Width / 4) / 2, m_rectWorking.Width / 4, m_rectWorking.Width / 4);
g.DrawArc(new Pen(new SolidBrush(insideRoundColor), 1), r2, fltStartAngle, meterDegrees);
//边界线
if (meterDegrees != 360)
{
float fltAngle = fltStartAngle - 180;
float intY = (float)(m_rectWorking.Top + m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2 - m_rectWorking.Width / 8) * Math.Sin(Math.PI * (fltAngle / 180.00F))));
float intX = (float)(m_rectWorking.Left + (m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2 - m_rectWorking.Width / 8) * Math.Cos(Math.PI * (fltAngle / 180.00F)))));
float fltY1 = (float)(m_rectWorking.Top + m_rectWorking.Width / 2 - (m_rectWorking.Width / 8 * Math.Sin(Math.PI * (fltAngle / 180.00F))));
float fltX1 = (float)(m_rectWorking.Left + (m_rectWorking.Width / 2 - (m_rectWorking.Width / 8 * Math.Cos(Math.PI * (fltAngle / 180.00F)))));
g.DrawLine(new Pen(new SolidBrush(boundaryLineColor), 1), new PointF(intX, intY), new PointF(fltX1, fltY1));
g.DrawLine(new Pen(new SolidBrush(boundaryLineColor), 1), new PointF(m_rectWorking.Right - (fltX1 - m_rectWorking.Left), fltY1), new PointF(m_rectWorking.Right - (intX - m_rectWorking.Left), intY));
}
//分割线
int _splitCount = splitCount * 2;
float fltSplitValue = (float)meterDegrees / (float)_splitCount;
for (int i = 0; i <= _splitCount; i++)
{
float fltAngle = (fltStartAngle + fltSplitValue * i - 180) % 360;
float fltY1 = (float)(m_rectWorking.Top + m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2) * Math.Sin(Math.PI * (fltAngle / 180.00F))));
float fltX1 = (float)(m_rectWorking.Left + (m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2) * Math.Cos(Math.PI * (fltAngle / 180.00F)))));
float fltY2 = 0;
float fltX2 = 0;
if (i % 2 == 0)
{
fltY2 = (float)(m_rectWorking.Top + m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2 - 10) * Math.Sin(Math.PI * (fltAngle / 180.00F))));
fltX2 = (float)(m_rectWorking.Left + (m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2 - 10) * Math.Cos(Math.PI * (fltAngle / 180.00F)))));
if (!(meterDegrees == 360 && i == _splitCount))
{
decimal decValue = minValue + (maxValue - minValue) / _splitCount * i;
var txtSize = g.MeasureString(decValue.ToString("0.##"), this.Font);
float fltFY1 = (float)(m_rectWorking.Top - txtSize.Height / 2 + m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2 - 20) * Math.Sin(Math.PI * (fltAngle / 180.00F))));
float fltFX1 = (float)(m_rectWorking.Left - txtSize.Width / 2 + (m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2 - 20) * Math.Cos(Math.PI * (fltAngle / 180.00F)))));
g.DrawString(decValue.ToString("0.##"), Font, new SolidBrush(scaleValueColor), fltFX1, fltFY1);
}
}
else
{
fltY2 = (float)(m_rectWorking.Top + m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2 - 5) * Math.Sin(Math.PI * (fltAngle / 180.00F))));
fltX2 = (float)(m_rectWorking.Left + (m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2 - 5) * Math.Cos(Math.PI * (fltAngle / 180.00F)))));
}
g.DrawLine(new Pen(new SolidBrush(scaleColor), i % 2 == 0 ? 2 : 1), new PointF(fltX1, fltY1), new PointF(fltX2, fltY2));
}
//值文字和固定文字
if (textLocation != MeterTextLocation.None)
{
string str = m_value.ToString("0.##");
var txtSize = g.MeasureString(str, textFont);
float fltY = m_rectWorking.Top + m_rectWorking.Width / 4 - txtSize.Height / 2;
float fltX = m_rectWorking.Left + m_rectWorking.Width / 2 - txtSize.Width / 2;
g.DrawString(str, textFont, new SolidBrush(textColor), new PointF(fltX, fltY));
if (!string.IsNullOrEmpty(fixedText))
{
str = fixedText;
txtSize = g.MeasureString(str, textFont);
fltY = m_rectWorking.Top + m_rectWorking.Width / 4 + txtSize.Height / 2;
fltX = m_rectWorking.Left + m_rectWorking.Width / 2 - txtSize.Width / 2;
g.DrawString(str, textFont, new SolidBrush(textColor), new PointF(fltX, fltY));
}
}
//画指针
g.FillEllipse(new SolidBrush(Color.FromArgb(100, pointerColor.R, pointerColor.G, pointerColor.B)), new Rectangle(m_rectWorking.Left + m_rectWorking.Width / 2 - 10, m_rectWorking.Top + m_rectWorking.Width / 2 - 10, 20, 20));
g.FillEllipse(Brushes.Red, new Rectangle(m_rectWorking.Left + m_rectWorking.Width / 2 - 5, m_rectWorking.Top + m_rectWorking.Width / 2 - 5, 10, 10));
float fltValueAngle = (fltStartAngle + ((float)(m_value - minValue) / (float)(maxValue - minValue)) * (float)meterDegrees - 180) % 360;
float intValueY1 = (float)(m_rectWorking.Top + m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2 - 30) * Math.Sin(Math.PI * (fltValueAngle / 180.00F))));
float intValueX1 = (float)(m_rectWorking.Left + (m_rectWorking.Width / 2 - ((m_rectWorking.Width / 2 - 30) * Math.Cos(Math.PI * (fltValueAngle / 180.00F)))));
g.DrawLine(new Pen(new SolidBrush(pointerColor), 3), intValueX1, intValueY1, m_rectWorking.Left + m_rectWorking.Width / 2, m_rectWorking.Top + m_rectWorking.Width / 2);
}
}
/// <summary>
/// Enum MeterTextLocation
/// </summary>
public enum MeterTextLocation
{
/// <summary>
/// The none
/// </summary>
None,
/// <summary>
/// The top
/// </summary>
Top,
/// <summary>
/// The bottom
/// </summary>
Bottom
}
}
......@@ -164,6 +164,9 @@
<Compile Include="Controls\Menu\UCMenuParentItem.Designer.cs">
<DependentUpon>UCMenuParentItem.cs</DependentUpon>
</Compile>
<Compile Include="Controls\Meter\UCMeter.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Controls\Navigation\UCCrumbNavigation.cs">
<SubType>UserControl</SubType>
</Compile>
......
......@@ -40,45 +40,28 @@
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.groupBox9 = new System.Windows.Forms.GroupBox();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.groupBox8 = new System.Windows.Forms.GroupBox();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.button9 = new System.Windows.Forms.Button();
this.groupBox10 = new System.Windows.Forms.GroupBox();
this.groupBox11 = new System.Windows.Forms.GroupBox();
this.groupBox12 = new System.Windows.Forms.GroupBox();
this.groupBox13 = new System.Windows.Forms.GroupBox();
this.button10 = new System.Windows.Forms.Button();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripComboBox1 = new System.Windows.Forms.ToolStripComboBox();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripTextBox1 = new System.Windows.Forms.ToolStripTextBox();
this.ucSplitLine_V1 = new HZH_Controls.Controls.UCSplitLine_V();
this.ucSplitLine_H1 = new HZH_Controls.Controls.UCSplitLine_H();
this.ucBtnsGroup2 = new HZH_Controls.Controls.UCBtnsGroup();
this.ucBtnsGroup1 = new HZH_Controls.Controls.UCBtnsGroup();
this.ucPagerControl21 = new HZH_Controls.Controls.UCPagerControl2();
this.ucMenu1 = new HZH_Controls.Controls.UCMenu();
this.ucComboxGrid1 = new HZH_Controls.Controls.UCComboxGrid();
this.groupBox9 = new System.Windows.Forms.GroupBox();
this.ucHorizontalList1 = new HZH_Controls.Controls.UCHorizontalList();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.ucDatePickerExt3 = new HZH_Controls.Controls.UCDatePickerExt();
this.ucDatePickerExt2 = new HZH_Controls.Controls.UCDatePickerExt();
this.ucDatePickerExt1 = new HZH_Controls.Controls.UCDatePickerExt();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.ucComboBox2 = new HZH_Controls.Controls.UCCombox();
this.ucComboBox1 = new HZH_Controls.Controls.UCCombox();
this.groupBox8 = new System.Windows.Forms.GroupBox();
this.ucListExt1 = new HZH_Controls.Controls.UCListExt();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.treeViewEx1 = new HZH_Controls.Controls.TreeViewEx();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.ucTextBoxEx4 = new HZH_Controls.Controls.UCTextBoxEx();
this.ucTextBoxEx3 = new HZH_Controls.Controls.UCTextBoxEx();
this.ucTextBoxEx2 = new HZH_Controls.Controls.UCTextBoxEx();
this.ucTextBoxEx1 = new HZH_Controls.Controls.UCTextBoxEx();
this.ucNumTextBox1 = new HZH_Controls.Controls.UCNumTextBox();
this.textBoxTransparent1 = new HZH_Controls.Controls.TextBoxTransparent();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.ucCheckBox4 = new HZH_Controls.Controls.UCCheckBox();
this.ucCheckBox3 = new HZH_Controls.Controls.UCCheckBox();
this.ucCheckBox2 = new HZH_Controls.Controls.UCCheckBox();
......@@ -87,6 +70,7 @@
this.ucRadioButton3 = new HZH_Controls.Controls.UCRadioButton();
this.ucRadioButton2 = new HZH_Controls.Controls.UCRadioButton();
this.ucRadioButton1 = new HZH_Controls.Controls.UCRadioButton();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.ucDropDownBtn1 = new HZH_Controls.Controls.UCDropDownBtn();
this.ucControlBase1 = new HZH_Controls.Controls.UCControlBase();
this.ucBtnExt3 = new HZH_Controls.Controls.UCBtnExt();
......@@ -96,6 +80,23 @@
this.ucBtnFillet1 = new HZH_Controls.Controls.UCBtnFillet();
this.ucBtnExt2 = new HZH_Controls.Controls.UCBtnExt();
this.ucBtnExt1 = new HZH_Controls.Controls.UCBtnExt();
this.button9 = new System.Windows.Forms.Button();
this.groupBox10 = new System.Windows.Forms.GroupBox();
this.ucMenu1 = new HZH_Controls.Controls.UCMenu();
this.groupBox11 = new System.Windows.Forms.GroupBox();
this.ucPagerControl21 = new HZH_Controls.Controls.UCPagerControl2();
this.groupBox12 = new System.Windows.Forms.GroupBox();
this.ucBtnsGroup1 = new HZH_Controls.Controls.UCBtnsGroup();
this.groupBox13 = new System.Windows.Forms.GroupBox();
this.ucBtnsGroup2 = new HZH_Controls.Controls.UCBtnsGroup();
this.button10 = new System.Windows.Forms.Button();
this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripComboBox1 = new System.Windows.Forms.ToolStripComboBox();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripTextBox1 = new System.Windows.Forms.ToolStripTextBox();
this.ucSplitLine_V1 = new HZH_Controls.Controls.UCSplitLine_V();
this.ucSplitLine_H1 = new HZH_Controls.Controls.UCSplitLine_H();
this.button11 = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.groupBox9.SuspendLayout();
this.groupBox7.SuspendLayout();
......@@ -105,11 +106,11 @@
this.groupBox4.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox2.SuspendLayout();
this.ucControlBase1.SuspendLayout();
this.groupBox10.SuspendLayout();
this.groupBox11.SuspendLayout();
this.groupBox12.SuspendLayout();
this.groupBox13.SuspendLayout();
this.ucControlBase1.SuspendLayout();
this.SuspendLayout();
//
// timer1
......@@ -215,259 +216,6 @@
this.groupBox1.TabStop = false;
this.groupBox1.Text = "控件";
//
// groupBox9
//
this.groupBox9.Controls.Add(this.ucHorizontalList1);
this.groupBox9.Location = new System.Drawing.Point(625, 380);
this.groupBox9.Name = "groupBox9";
this.groupBox9.Size = new System.Drawing.Size(485, 102);
this.groupBox9.TabIndex = 8;
this.groupBox9.TabStop = false;
this.groupBox9.Text = "横向列表";
//
// groupBox7
//
this.groupBox7.Controls.Add(this.ucDatePickerExt3);
this.groupBox7.Controls.Add(this.ucDatePickerExt2);
this.groupBox7.Controls.Add(this.ucDatePickerExt1);
this.groupBox7.Location = new System.Drawing.Point(232, 363);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(374, 119);
this.groupBox7.TabIndex = 7;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "日历";
//
// groupBox6
//
this.groupBox6.Controls.Add(this.ucComboBox2);
this.groupBox6.Controls.Add(this.ucComboBox1);
this.groupBox6.Location = new System.Drawing.Point(24, 419);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(187, 119);
this.groupBox6.TabIndex = 6;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "下拉列表";
//
// groupBox8
//
this.groupBox8.Controls.Add(this.ucListExt1);
this.groupBox8.Location = new System.Drawing.Point(876, 30);
this.groupBox8.Name = "groupBox8";
this.groupBox8.Size = new System.Drawing.Size(240, 324);
this.groupBox8.TabIndex = 4;
this.groupBox8.TabStop = false;
this.groupBox8.Text = "列表";
//
// groupBox5
//
this.groupBox5.Controls.Add(this.treeViewEx1);
this.groupBox5.Location = new System.Drawing.Point(625, 30);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(240, 327);
this.groupBox5.TabIndex = 4;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "树";
//
// groupBox4
//
this.groupBox4.Controls.Add(this.ucTextBoxEx4);
this.groupBox4.Controls.Add(this.ucTextBoxEx3);
this.groupBox4.Controls.Add(this.ucTextBoxEx2);
this.groupBox4.Controls.Add(this.ucTextBoxEx1);
this.groupBox4.Controls.Add(this.ucNumTextBox1);
this.groupBox4.Controls.Add(this.textBoxTransparent1);
this.groupBox4.Location = new System.Drawing.Point(397, 30);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(209, 327);
this.groupBox4.TabIndex = 2;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "文本框";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.ucCheckBox4);
this.groupBox3.Controls.Add(this.ucCheckBox3);
this.groupBox3.Controls.Add(this.ucCheckBox2);
this.groupBox3.Controls.Add(this.ucCheckBox1);
this.groupBox3.Controls.Add(this.ucRadioButton4);
this.groupBox3.Controls.Add(this.ucRadioButton3);
this.groupBox3.Controls.Add(this.ucRadioButton2);
this.groupBox3.Controls.Add(this.ucRadioButton1);
this.groupBox3.Location = new System.Drawing.Point(232, 30);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(149, 327);
this.groupBox3.TabIndex = 1;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "单选/复选";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.ucDropDownBtn1);
this.groupBox2.Controls.Add(this.ucControlBase1);
this.groupBox2.Controls.Add(this.ucBtnImg1);
this.groupBox2.Controls.Add(this.ucBtnFillet1);
this.groupBox2.Controls.Add(this.ucBtnExt2);
this.groupBox2.Controls.Add(this.ucBtnExt1);
this.groupBox2.Location = new System.Drawing.Point(25, 30);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(187, 383);
this.groupBox2.TabIndex = 0;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "按钮";
//
// button9
//
this.button9.Location = new System.Drawing.Point(963, 12);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(116, 23);
this.button9.TabIndex = 0;
this.button9.Text = "更多控件";
this.button9.UseVisualStyleBackColor = true;
this.button9.Click += new System.EventHandler(this.button9_Click);
//
// groupBox10
//
this.groupBox10.Controls.Add(this.ucMenu1);
this.groupBox10.Location = new System.Drawing.Point(1162, 88);
this.groupBox10.Name = "groupBox10";
this.groupBox10.Size = new System.Drawing.Size(200, 490);
this.groupBox10.TabIndex = 3;
this.groupBox10.TabStop = false;
this.groupBox10.Text = "导航";
//
// groupBox11
//
this.groupBox11.Controls.Add(this.ucPagerControl21);
this.groupBox11.Location = new System.Drawing.Point(21, 629);
this.groupBox11.Name = "groupBox11";
this.groupBox11.Size = new System.Drawing.Size(715, 61);
this.groupBox11.TabIndex = 5;
this.groupBox11.TabStop = false;
this.groupBox11.Text = "分页控件";
//
// groupBox12
//
this.groupBox12.Controls.Add(this.ucBtnsGroup1);
this.groupBox12.Location = new System.Drawing.Point(751, 629);
this.groupBox12.Name = "groupBox12";
this.groupBox12.Size = new System.Drawing.Size(221, 68);
this.groupBox12.TabIndex = 6;
this.groupBox12.TabStop = false;
this.groupBox12.Text = "单选按钮组";
//
// groupBox13
//
this.groupBox13.Controls.Add(this.ucBtnsGroup2);
this.groupBox13.Location = new System.Drawing.Point(994, 629);
this.groupBox13.Name = "groupBox13";
this.groupBox13.Size = new System.Drawing.Size(367, 68);
this.groupBox13.TabIndex = 6;
this.groupBox13.TabStop = false;
this.groupBox13.Text = "多选按钮组";
//
// button10
//
this.button10.Location = new System.Drawing.Point(43, 49);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(89, 23);
this.button10.TabIndex = 0;
this.button10.Text = "TestListView";
this.button10.UseVisualStyleBackColor = true;
this.button10.Click += new System.EventHandler(this.button10_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(32, 19);
//
// toolStripComboBox1
//
this.toolStripComboBox1.Name = "toolStripComboBox1";
this.toolStripComboBox1.Size = new System.Drawing.Size(121, 25);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 6);
//
// toolStripTextBox1
//
this.toolStripTextBox1.Name = "toolStripTextBox1";
this.toolStripTextBox1.Size = new System.Drawing.Size(100, 23);
//
// ucSplitLine_V1
//
this.ucSplitLine_V1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(232)))), ((int)(((byte)(232)))));
this.ucSplitLine_V1.Location = new System.Drawing.Point(1149, 12);
this.ucSplitLine_V1.Name = "ucSplitLine_V1";
this.ucSplitLine_V1.Size = new System.Drawing.Size(1, 100);
this.ucSplitLine_V1.TabIndex = 9;
this.ucSplitLine_V1.TabStop = false;
//
// ucSplitLine_H1
//
this.ucSplitLine_H1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(232)))), ((int)(((byte)(232)))));
this.ucSplitLine_H1.Location = new System.Drawing.Point(1177, 22);
this.ucSplitLine_H1.Name = "ucSplitLine_H1";
this.ucSplitLine_H1.Size = new System.Drawing.Size(100, 1);
this.ucSplitLine_H1.TabIndex = 8;
this.ucSplitLine_H1.TabStop = false;
//
// ucBtnsGroup2
//
this.ucBtnsGroup2.BackColor = System.Drawing.Color.White;
this.ucBtnsGroup2.DataSource = ((System.Collections.Generic.Dictionary<string, string>)(resources.GetObject("ucBtnsGroup2.DataSource")));
this.ucBtnsGroup2.IsMultiple = false;
this.ucBtnsGroup2.Location = new System.Drawing.Point(6, 14);
this.ucBtnsGroup2.MinimumSize = new System.Drawing.Size(0, 50);
this.ucBtnsGroup2.Name = "ucBtnsGroup2";
this.ucBtnsGroup2.SelectItem = ((System.Collections.Generic.List<string>)(resources.GetObject("ucBtnsGroup2.SelectItem")));
this.ucBtnsGroup2.Size = new System.Drawing.Size(355, 50);
this.ucBtnsGroup2.TabIndex = 0;
//
// ucBtnsGroup1
//
this.ucBtnsGroup1.BackColor = System.Drawing.Color.White;
this.ucBtnsGroup1.DataSource = ((System.Collections.Generic.Dictionary<string, string>)(resources.GetObject("ucBtnsGroup1.DataSource")));
this.ucBtnsGroup1.IsMultiple = false;
this.ucBtnsGroup1.Location = new System.Drawing.Point(6, 14);
this.ucBtnsGroup1.MinimumSize = new System.Drawing.Size(0, 50);
this.ucBtnsGroup1.Name = "ucBtnsGroup1";
this.ucBtnsGroup1.SelectItem = ((System.Collections.Generic.List<string>)(resources.GetObject("ucBtnsGroup1.SelectItem")));
this.ucBtnsGroup1.Size = new System.Drawing.Size(194, 50);
this.ucBtnsGroup1.TabIndex = 0;
//
// ucPagerControl21
//
this.ucPagerControl21.BackColor = System.Drawing.Color.White;
this.ucPagerControl21.DataSource = ((System.Collections.Generic.List<object>)(resources.GetObject("ucPagerControl21.DataSource")));
this.ucPagerControl21.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucPagerControl21.Location = new System.Drawing.Point(3, 17);
this.ucPagerControl21.Name = "ucPagerControl21";
this.ucPagerControl21.PageCount = 0;
this.ucPagerControl21.PageIndex = 1;
this.ucPagerControl21.PageSize = 0;
this.ucPagerControl21.Size = new System.Drawing.Size(709, 41);
this.ucPagerControl21.StartIndex = 0;
this.ucPagerControl21.TabIndex = 4;
//
// ucMenu1
//
this.ucMenu1.AutoScroll = true;
this.ucMenu1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(30)))), ((int)(((byte)(39)))));
this.ucMenu1.ChildrenItemStyles = null;
this.ucMenu1.ChildrenItemType = typeof(HZH_Controls.Controls.UCMenuChildrenItem);
this.ucMenu1.DataSource = null;
this.ucMenu1.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucMenu1.IsShowFirstItem = true;
this.ucMenu1.Location = new System.Drawing.Point(3, 17);
this.ucMenu1.MenuStyle = HZH_Controls.Controls.MenuStyle.Fill;
this.ucMenu1.Name = "ucMenu1";
this.ucMenu1.ParentItemStyles = null;
this.ucMenu1.ParentItemType = typeof(HZH_Controls.Controls.UCMenuParentItem);
this.ucMenu1.Size = new System.Drawing.Size(194, 470);
this.ucMenu1.TabIndex = 0;
//
// ucComboxGrid1
//
this.ucComboxGrid1.BackColor = System.Drawing.Color.Transparent;
......@@ -498,6 +246,16 @@
this.ucComboxGrid1.TextValue = null;
this.ucComboxGrid1.TriangleColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
//
// groupBox9
//
this.groupBox9.Controls.Add(this.ucHorizontalList1);
this.groupBox9.Location = new System.Drawing.Point(625, 380);
this.groupBox9.Name = "groupBox9";
this.groupBox9.Size = new System.Drawing.Size(485, 102);
this.groupBox9.TabIndex = 8;
this.groupBox9.TabStop = false;
this.groupBox9.Text = "横向列表";
//
// ucHorizontalList1
//
this.ucHorizontalList1.DataSource = null;
......@@ -508,6 +266,18 @@
this.ucHorizontalList1.Size = new System.Drawing.Size(473, 53);
this.ucHorizontalList1.TabIndex = 0;
//
// groupBox7
//
this.groupBox7.Controls.Add(this.ucDatePickerExt3);
this.groupBox7.Controls.Add(this.ucDatePickerExt2);
this.groupBox7.Controls.Add(this.ucDatePickerExt1);
this.groupBox7.Location = new System.Drawing.Point(232, 363);
this.groupBox7.Name = "groupBox7";
this.groupBox7.Size = new System.Drawing.Size(374, 119);
this.groupBox7.TabIndex = 7;
this.groupBox7.TabStop = false;
this.groupBox7.Text = "日历";
//
// ucDatePickerExt3
//
this.ucDatePickerExt3.BackColor = System.Drawing.Color.Transparent;
......@@ -568,6 +338,17 @@
this.ucDatePickerExt1.TimeFontSize = 20;
this.ucDatePickerExt1.TimeType = HZH_Controls.Controls.DateTimePickerType.DateTime;
//
// groupBox6
//
this.groupBox6.Controls.Add(this.ucComboBox2);
this.groupBox6.Controls.Add(this.ucComboBox1);
this.groupBox6.Location = new System.Drawing.Point(24, 419);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(187, 119);
this.groupBox6.TabIndex = 6;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "下拉列表";
//
// ucComboBox2
//
this.ucComboBox2.BackColor = System.Drawing.Color.Transparent;
......@@ -618,6 +399,16 @@
this.ucComboBox1.TextValue = null;
this.ucComboBox1.TriangleColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
//
// groupBox8
//
this.groupBox8.Controls.Add(this.ucListExt1);
this.groupBox8.Location = new System.Drawing.Point(876, 30);
this.groupBox8.Name = "groupBox8";
this.groupBox8.Size = new System.Drawing.Size(240, 324);
this.groupBox8.TabIndex = 4;
this.groupBox8.TabStop = false;
this.groupBox8.Text = "列表";
//
// ucListExt1
//
this.ucListExt1.AutoScroll = true;
......@@ -638,6 +429,16 @@
this.ucListExt1.Title2Font = new System.Drawing.Font("微软雅黑", 14F);
this.ucListExt1.TitleFont = new System.Drawing.Font("微软雅黑", 15F);
//
// groupBox5
//
this.groupBox5.Controls.Add(this.treeViewEx1);
this.groupBox5.Location = new System.Drawing.Point(625, 30);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(240, 327);
this.groupBox5.TabIndex = 4;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "树";
//
// treeViewEx1
//
this.treeViewEx1.BackColor = System.Drawing.Color.White;
......@@ -670,6 +471,21 @@
this.treeViewEx1.TipFont = new System.Drawing.Font("Arial Unicode MS", 12F);
this.treeViewEx1.TipImage = ((System.Drawing.Image)(resources.GetObject("treeViewEx1.TipImage")));
//
// groupBox4
//
this.groupBox4.Controls.Add(this.ucTextBoxEx4);
this.groupBox4.Controls.Add(this.ucTextBoxEx3);
this.groupBox4.Controls.Add(this.ucTextBoxEx2);
this.groupBox4.Controls.Add(this.ucTextBoxEx1);
this.groupBox4.Controls.Add(this.ucNumTextBox1);
this.groupBox4.Controls.Add(this.textBoxTransparent1);
this.groupBox4.Location = new System.Drawing.Point(397, 30);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(209, 327);
this.groupBox4.TabIndex = 2;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "文本框";
//
// ucTextBoxEx4
//
this.ucTextBoxEx4.BackColor = System.Drawing.Color.Transparent;
......@@ -890,6 +706,23 @@
this.textBoxTransparent1.TabIndex = 0;
this.textBoxTransparent1.Text = "这是一个透明文本框";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.ucCheckBox4);
this.groupBox3.Controls.Add(this.ucCheckBox3);
this.groupBox3.Controls.Add(this.ucCheckBox2);
this.groupBox3.Controls.Add(this.ucCheckBox1);
this.groupBox3.Controls.Add(this.ucRadioButton4);
this.groupBox3.Controls.Add(this.ucRadioButton3);
this.groupBox3.Controls.Add(this.ucRadioButton2);
this.groupBox3.Controls.Add(this.ucRadioButton1);
this.groupBox3.Location = new System.Drawing.Point(232, 30);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(149, 327);
this.groupBox3.TabIndex = 1;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "单选/复选";
//
// ucCheckBox4
//
this.ucCheckBox4.BackColor = System.Drawing.Color.Transparent;
......@@ -974,6 +807,21 @@
this.ucRadioButton1.TabIndex = 0;
this.ucRadioButton1.TextValue = "单选按钮1";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.ucDropDownBtn1);
this.groupBox2.Controls.Add(this.ucControlBase1);
this.groupBox2.Controls.Add(this.ucBtnImg1);
this.groupBox2.Controls.Add(this.ucBtnFillet1);
this.groupBox2.Controls.Add(this.ucBtnExt2);
this.groupBox2.Controls.Add(this.ucBtnExt1);
this.groupBox2.Location = new System.Drawing.Point(25, 30);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(187, 383);
this.groupBox2.TabIndex = 0;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "按钮";
//
// ucDropDownBtn1
//
this.ucDropDownBtn1.BackColor = System.Drawing.Color.White;
......@@ -1206,6 +1054,169 @@
this.ucBtnExt1.TipsColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(30)))), ((int)(((byte)(99)))));
this.ucBtnExt1.TipsText = "";
//
// button9
//
this.button9.Location = new System.Drawing.Point(963, 12);
this.button9.Name = "button9";
this.button9.Size = new System.Drawing.Size(116, 23);
this.button9.TabIndex = 0;
this.button9.Text = "更多控件";
this.button9.UseVisualStyleBackColor = true;
this.button9.Click += new System.EventHandler(this.button9_Click);
//
// groupBox10
//
this.groupBox10.Controls.Add(this.ucMenu1);
this.groupBox10.Location = new System.Drawing.Point(1162, 88);
this.groupBox10.Name = "groupBox10";
this.groupBox10.Size = new System.Drawing.Size(200, 490);
this.groupBox10.TabIndex = 3;
this.groupBox10.TabStop = false;
this.groupBox10.Text = "导航";
//
// ucMenu1
//
this.ucMenu1.AutoScroll = true;
this.ucMenu1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(20)))), ((int)(((byte)(30)))), ((int)(((byte)(39)))));
this.ucMenu1.ChildrenItemStyles = null;
this.ucMenu1.ChildrenItemType = typeof(HZH_Controls.Controls.UCMenuChildrenItem);
this.ucMenu1.DataSource = null;
this.ucMenu1.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucMenu1.IsShowFirstItem = true;
this.ucMenu1.Location = new System.Drawing.Point(3, 17);
this.ucMenu1.MenuStyle = HZH_Controls.Controls.MenuStyle.Fill;
this.ucMenu1.Name = "ucMenu1";
this.ucMenu1.ParentItemStyles = null;
this.ucMenu1.ParentItemType = typeof(HZH_Controls.Controls.UCMenuParentItem);
this.ucMenu1.Size = new System.Drawing.Size(194, 470);
this.ucMenu1.TabIndex = 0;
//
// groupBox11
//
this.groupBox11.Controls.Add(this.ucPagerControl21);
this.groupBox11.Location = new System.Drawing.Point(21, 629);
this.groupBox11.Name = "groupBox11";
this.groupBox11.Size = new System.Drawing.Size(715, 61);
this.groupBox11.TabIndex = 5;
this.groupBox11.TabStop = false;
this.groupBox11.Text = "分页控件";
//
// ucPagerControl21
//
this.ucPagerControl21.BackColor = System.Drawing.Color.White;
this.ucPagerControl21.DataSource = ((System.Collections.Generic.List<object>)(resources.GetObject("ucPagerControl21.DataSource")));
this.ucPagerControl21.Dock = System.Windows.Forms.DockStyle.Fill;
this.ucPagerControl21.Location = new System.Drawing.Point(3, 17);
this.ucPagerControl21.Name = "ucPagerControl21";
this.ucPagerControl21.PageCount = 0;
this.ucPagerControl21.PageIndex = 1;
this.ucPagerControl21.PageSize = 0;
this.ucPagerControl21.Size = new System.Drawing.Size(709, 41);
this.ucPagerControl21.StartIndex = 0;
this.ucPagerControl21.TabIndex = 4;
//
// groupBox12
//
this.groupBox12.Controls.Add(this.ucBtnsGroup1);
this.groupBox12.Location = new System.Drawing.Point(751, 629);
this.groupBox12.Name = "groupBox12";
this.groupBox12.Size = new System.Drawing.Size(221, 68);
this.groupBox12.TabIndex = 6;
this.groupBox12.TabStop = false;
this.groupBox12.Text = "单选按钮组";
//
// ucBtnsGroup1
//
this.ucBtnsGroup1.BackColor = System.Drawing.Color.White;
this.ucBtnsGroup1.DataSource = ((System.Collections.Generic.Dictionary<string, string>)(resources.GetObject("ucBtnsGroup1.DataSource")));
this.ucBtnsGroup1.IsMultiple = false;
this.ucBtnsGroup1.Location = new System.Drawing.Point(6, 14);
this.ucBtnsGroup1.MinimumSize = new System.Drawing.Size(0, 50);
this.ucBtnsGroup1.Name = "ucBtnsGroup1";
this.ucBtnsGroup1.SelectItem = ((System.Collections.Generic.List<string>)(resources.GetObject("ucBtnsGroup1.SelectItem")));
this.ucBtnsGroup1.Size = new System.Drawing.Size(194, 50);
this.ucBtnsGroup1.TabIndex = 0;
//
// groupBox13
//
this.groupBox13.Controls.Add(this.ucBtnsGroup2);
this.groupBox13.Location = new System.Drawing.Point(994, 629);
this.groupBox13.Name = "groupBox13";
this.groupBox13.Size = new System.Drawing.Size(367, 68);
this.groupBox13.TabIndex = 6;
this.groupBox13.TabStop = false;
this.groupBox13.Text = "多选按钮组";
//
// ucBtnsGroup2
//
this.ucBtnsGroup2.BackColor = System.Drawing.Color.White;
this.ucBtnsGroup2.DataSource = ((System.Collections.Generic.Dictionary<string, string>)(resources.GetObject("ucBtnsGroup2.DataSource")));
this.ucBtnsGroup2.IsMultiple = false;
this.ucBtnsGroup2.Location = new System.Drawing.Point(6, 14);
this.ucBtnsGroup2.MinimumSize = new System.Drawing.Size(0, 50);
this.ucBtnsGroup2.Name = "ucBtnsGroup2";
this.ucBtnsGroup2.SelectItem = ((System.Collections.Generic.List<string>)(resources.GetObject("ucBtnsGroup2.SelectItem")));
this.ucBtnsGroup2.Size = new System.Drawing.Size(355, 50);
this.ucBtnsGroup2.TabIndex = 0;
//
// button10
//
this.button10.Location = new System.Drawing.Point(43, 49);
this.button10.Name = "button10";
this.button10.Size = new System.Drawing.Size(89, 23);
this.button10.TabIndex = 0;
this.button10.Text = "TestListView";
this.button10.UseVisualStyleBackColor = true;
this.button10.Click += new System.EventHandler(this.button10_Click);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(32, 19);
//
// toolStripComboBox1
//
this.toolStripComboBox1.Name = "toolStripComboBox1";
this.toolStripComboBox1.Size = new System.Drawing.Size(121, 25);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(6, 6);
//
// toolStripTextBox1
//
this.toolStripTextBox1.Name = "toolStripTextBox1";
this.toolStripTextBox1.Size = new System.Drawing.Size(100, 23);
//
// ucSplitLine_V1
//
this.ucSplitLine_V1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(232)))), ((int)(((byte)(232)))));
this.ucSplitLine_V1.Location = new System.Drawing.Point(1149, 12);
this.ucSplitLine_V1.Name = "ucSplitLine_V1";
this.ucSplitLine_V1.Size = new System.Drawing.Size(1, 100);
this.ucSplitLine_V1.TabIndex = 9;
this.ucSplitLine_V1.TabStop = false;
//
// ucSplitLine_H1
//
this.ucSplitLine_H1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(232)))), ((int)(((byte)(232)))), ((int)(((byte)(232)))));
this.ucSplitLine_H1.Location = new System.Drawing.Point(1177, 22);
this.ucSplitLine_H1.Name = "ucSplitLine_H1";
this.ucSplitLine_H1.Size = new System.Drawing.Size(100, 1);
this.ucSplitLine_H1.TabIndex = 8;
this.ucSplitLine_H1.TabStop = false;
//
// button11
//
this.button11.Location = new System.Drawing.Point(161, 49);
this.button11.Name = "button11";
this.button11.Size = new System.Drawing.Size(62, 23);
this.button11.TabIndex = 0;
this.button11.Text = "仪表";
this.button11.UseVisualStyleBackColor = true;
this.button11.Click += new System.EventHandler(this.button11_Click);
//
// Form1
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
......@@ -1222,6 +1233,7 @@
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.button2);
this.Controls.Add(this.button11);
this.Controls.Add(this.button9);
this.Controls.Add(this.button8);
this.Controls.Add(this.button7);
......@@ -1241,11 +1253,11 @@
this.groupBox4.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.ucControlBase1.ResumeLayout(false);
this.groupBox10.ResumeLayout(false);
this.groupBox11.ResumeLayout(false);
this.groupBox12.ResumeLayout(false);
this.groupBox13.ResumeLayout(false);
this.ucControlBase1.ResumeLayout(false);
this.ResumeLayout(false);
}
......@@ -1318,6 +1330,7 @@
private System.Windows.Forms.ToolStripTextBox toolStripTextBox1;
private HZH_Controls.Controls.TreeViewEx treeViewEx1;
private HZH_Controls.Controls.UCListExt ucListExt1;
private System.Windows.Forms.Button button11;
}
}
......@@ -222,6 +222,11 @@ namespace Test
{
HZH_Controls.Forms.FrmTips.ShowTipsSuccess(this, sender.ToString());
}
private void button11_Click(object sender, EventArgs e)
{
new Form3().Show();
}
}
}
......@@ -193,7 +193,7 @@
this.ucRollText1.BackColor = System.Drawing.Color.White;
this.ucRollText1.Font = new System.Drawing.Font("宋体", 20F);
this.ucRollText1.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucRollText1.Location = new System.Drawing.Point(818, 190);
this.ucRollText1.Location = new System.Drawing.Point(856, 206);
this.ucRollText1.MoveSleepTime = 50;
this.ucRollText1.Name = "ucRollText1";
this.ucRollText1.RollStyle = HZH_Controls.Controls.RollStyle.BackAndForth;
......
namespace Test
{
partial class Form3
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.ucMeter11 = new HZH_Controls.Controls.UCMeter();
this.ucMeter1 = new HZH_Controls.Controls.UCMeter();
this.ucMeter2 = new HZH_Controls.Controls.UCMeter();
this.SuspendLayout();
//
// ucMeter11
//
this.ucMeter11.BoundaryLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter11.ExternalRoundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter11.FixedText = "km/h";
this.ucMeter11.InsideRoundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter11.Location = new System.Drawing.Point(12, 25);
this.ucMeter11.MaxValue = new decimal(new int[] {
180,
0,
0,
0});
this.ucMeter11.MeterDegrees = 250;
this.ucMeter11.MinValue = new decimal(new int[] {
0,
0,
0,
0});
this.ucMeter11.Name = "ucMeter11";
this.ucMeter11.PointerColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter11.ScaleColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter11.ScaleValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter11.Size = new System.Drawing.Size(250, 254);
this.ucMeter11.SplitCount = 9;
this.ucMeter11.TabIndex = 0;
this.ucMeter11.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter11.TextFont = new System.Drawing.Font("微软雅黑", 10F);
this.ucMeter11.TextLocation = HZH_Controls.Controls.MeterTextLocation.Top;
this.ucMeter11.Value = new decimal(new int[] {
80,
0,
0,
0});
//
// ucMeter1
//
this.ucMeter1.BoundaryLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter1.ExternalRoundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter1.FixedText = "水温";
this.ucMeter1.InsideRoundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter1.Location = new System.Drawing.Point(283, 25);
this.ucMeter1.MaxValue = new decimal(new int[] {
100,
0,
0,
0});
this.ucMeter1.MeterDegrees = 180;
this.ucMeter1.MinValue = new decimal(new int[] {
0,
0,
0,
0});
this.ucMeter1.Name = "ucMeter1";
this.ucMeter1.PointerColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter1.ScaleColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter1.ScaleValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter1.Size = new System.Drawing.Size(250, 254);
this.ucMeter1.SplitCount = 10;
this.ucMeter1.TabIndex = 0;
this.ucMeter1.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter1.TextFont = new System.Drawing.Font("微软雅黑", 10F);
this.ucMeter1.TextLocation = HZH_Controls.Controls.MeterTextLocation.Top;
this.ucMeter1.Value = new decimal(new int[] {
80,
0,
0,
0});
//
// ucMeter2
//
this.ucMeter2.BoundaryLineColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter2.ExternalRoundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter2.FixedText = "体重kg";
this.ucMeter2.InsideRoundColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter2.Location = new System.Drawing.Point(554, 25);
this.ucMeter2.MaxValue = new decimal(new int[] {
200,
0,
0,
0});
this.ucMeter2.MeterDegrees = 360;
this.ucMeter2.MinValue = new decimal(new int[] {
0,
0,
0,
0});
this.ucMeter2.Name = "ucMeter2";
this.ucMeter2.PointerColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter2.ScaleColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter2.ScaleValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter2.Size = new System.Drawing.Size(250, 254);
this.ucMeter2.SplitCount = 10;
this.ucMeter2.TabIndex = 0;
this.ucMeter2.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(77)))), ((int)(((byte)(59)))));
this.ucMeter2.TextFont = new System.Drawing.Font("微软雅黑", 10F);
this.ucMeter2.TextLocation = HZH_Controls.Controls.MeterTextLocation.Top;
this.ucMeter2.Value = new decimal(new int[] {
65,
0,
0,
0});
//
// Form3
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(1028, 640);
this.Controls.Add(this.ucMeter2);
this.Controls.Add(this.ucMeter1);
this.Controls.Add(this.ucMeter11);
this.Name = "Form3";
this.Text = "Form3";
this.ResumeLayout(false);
}
#endregion
private HZH_Controls.Controls.UCMeter ucMeter11;
private HZH_Controls.Controls.UCMeter ucMeter1;
private HZH_Controls.Controls.UCMeter ucMeter2;
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Test
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
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
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
......@@ -56,6 +56,12 @@
<Compile Include="Form2.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon>
</Compile>
<Compile Include="Form3.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form3.Designer.cs">
<DependentUpon>Form3.cs</DependentUpon>
</Compile>
<Compile Include="FrmOKCancel1Test.cs">
<SubType>Form</SubType>
</Compile>
......@@ -94,6 +100,9 @@
<EmbeddedResource Include="Form2.resx">
<DependentUpon>Form2.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form3.resx">
<DependentUpon>Form3.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmOKCancel1Test.resx">
<DependentUpon>FrmOKCancel1Test.cs</DependentUpon>
</EmbeddedResource>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!