Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
HZH_Controls
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1202db0c
由
kwwwvagaa
编写于
2020-07-02 10:33:34 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
滚动条支持listbox
1 个父辈
098cffbf
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
385 行增加
和
136 行删除
HZH_Controls/HZH_Controls/Controls/ScrollBar/ScrollbarComponent.cs
HZH_Controls/Test/FrmMain.cs
HZH_Controls/Test/Test.csproj
HZH_Controls/Test/UC/UCTestNewBar.Designer.cs
HZH_Controls/Test/UC/UCTestNewBar.cs
HZH_Controls/Test/UC/UCTestNewBar.resx
HZH_Controls/Test/UC/UCTestScrollbar.Designer.cs
HZH_Controls/HZH_Controls/Controls/ScrollBar/ScrollbarComponent.cs
查看文件 @
1202db0
...
...
@@ -50,10 +50,11 @@ namespace HZH_Controls.Controls
}
else
if
(
extendee
is
RichTextBox
)
{
// RichTextBox control = (RichTextBox)extendee;
return
true
;
}
else
if
(
extendee
is
ListBox
)
{
return
true
;
}
return
false
;
}
...
...
@@ -72,14 +73,6 @@ namespace HZH_Controls.Controls
if
(!
blnUserCustomScrollbar
)
return
;
control_SizeChanged
(
control
,
null
);
control
.
VisibleChanged
+=
control_VisibleChanged
;
control
.
SizeChanged
+=
control_SizeChanged
;
control
.
LocationChanged
+=
control_LocationChanged
;
control
.
Disposed
+=
control_Disposed
;
control
.
MouseWheel
+=
Control_MouseWheel
;
if
(
control
is
TreeView
)
{
TreeView
tv
=
(
TreeView
)
control
;
...
...
@@ -95,7 +88,38 @@ namespace HZH_Controls.Controls
txt
.
TextChanged
+=
txt_TextChanged
;
txt
.
KeyDown
+=
txt_KeyDown
;
}
else
if
(
control
is
RichTextBox
)
{
RichTextBox
txt
=
(
RichTextBox
)
control
;
//txt.MouseWheel += txt_MouseWheel;
txt
.
TextChanged
+=
txt_TextChanged
;
txt
.
KeyDown
+=
txt_KeyDown
;
}
else
if
(
control
is
ListBox
)
{
ListBox
lb
=
(
ListBox
)
control
;
lb
.
DataSourceChanged
+=
Lb_DataSourceChanged
;
lb
.
SelectedIndexChanged
+=
Lb_SelectedIndexChanged
;
}
control
.
VisibleChanged
+=
control_VisibleChanged
;
control
.
SizeChanged
+=
control_SizeChanged
;
control
.
LocationChanged
+=
control_LocationChanged
;
control
.
Disposed
+=
control_Disposed
;
control
.
MouseWheel
+=
Control_MouseWheel
;
control_SizeChanged
(
control
,
null
);
}
private
void
Lb_SelectedIndexChanged
(
object
sender
,
EventArgs
e
)
{
Control
c
=
sender
as
Control
;
SetVMaxNum
(
c
);
}
private
void
Lb_DataSourceChanged
(
object
sender
,
EventArgs
e
)
{
Control
c
=
sender
as
Control
;
control_SizeChanged
(
c
,
null
);
}
private
void
Control_MouseWheel
(
object
sender
,
MouseEventArgs
e
)
...
...
@@ -208,6 +232,14 @@ namespace HZH_Controls.Controls
}
else
{
if
(
blnHasHScrollbar
)
{
m_lstVCache
[
control
].
Height
=
control
.
Height
-
m_lstVCache
[
control
].
Width
;
}
else
{
m_lstVCache
[
control
].
Height
=
control
.
Height
;
}
SetVMaxNum
(
control
);
}
}
...
...
@@ -248,6 +280,14 @@ namespace HZH_Controls.Controls
}
else
{
if
(
blnHasHScrollbar
)
{
m_lstHCache
[
control
].
Width
=
control
.
Width
-
m_lstHCache
[
control
].
Height
;
}
else
{
m_lstHCache
[
control
].
Width
=
control
.
Width
;
}
SetHMaxNum
(
control
);
}
}
...
...
@@ -272,7 +312,7 @@ namespace HZH_Controls.Controls
return
;
var
intoV
=
ControlHelper
.
GetVScrollBarInfo
(
control
.
Handle
);
UCVScrollbar
barV
=
m_lstVCache
[
control
];
if
(
control
is
ScrollableControl
)
if
(
control
is
ScrollableControl
)
{
barV
.
Maximum
=
intoV
.
ScrollMax
;
barV
.
Visible
=
intoV
.
ScrollMax
>
0
&&
intoV
.
nMax
>
0
&&
intoV
.
nPage
>
0
;
...
...
@@ -315,6 +355,25 @@ namespace HZH_Controls.Controls
barV
.
Value
=
intoV
.
nPos
;
barV
.
BringToFront
();
}
else
if
(
control
is
ListBox
)
{
var
lb
=
control
as
ListBox
;
if
(
intoV
.
ScrollMax
<=
1
)
{
var
v
=
lb
.
ItemHeight
*
lb
.
Items
.
Count
-
lb
.
Height
;
if
(
v
>
0
)
barV
.
Maximum
=
v
;
else
barV
.
Maximum
=
intoV
.
ScrollMax
*
lb
.
ItemHeight
;
}
else
{
barV
.
Maximum
=
intoV
.
ScrollMax
*
lb
.
ItemHeight
;
}
barV
.
Visible
=
intoV
.
ScrollMax
>
0
&&
intoV
.
nMax
>
0
&&
intoV
.
nPage
>
0
;
barV
.
Value
=
intoV
.
nPos
*
lb
.
ItemHeight
;
barV
.
BringToFront
();
}
}
private
void
SetHMaxNum
(
Control
control
)
{
...
...
@@ -342,7 +401,7 @@ namespace HZH_Controls.Controls
//barH.Maximum = GetTreeNodeMaxX(control as TreeView);
//barH.Value = (control as TreeView).AutoScrollOffset.X;
}
else
if
(
control
is
TextBox
Base
)
else
if
(
control
is
TextBox
)
{
TextBox
txt
=
(
TextBox
)
control
;
barH
.
Maximum
=
intoH
.
ScrollMax
;
...
...
@@ -368,6 +427,14 @@ namespace HZH_Controls.Controls
barH
.
Value
=
intoH
.
nPos
;
barH
.
BringToFront
();
}
else
if
(
control
is
ListBox
)
{
var
lb
=
control
as
ListBox
;
barH
.
Maximum
=
intoH
.
ScrollMax
*
lb
.
ItemHeight
;
barH
.
Visible
=
intoH
.
ScrollMax
>
0
&&
intoH
.
nMax
>
0
&&
intoH
.
nPage
>
0
;
barH
.
Value
=
intoH
.
nPos
*
lb
.
ItemHeight
;
barH
.
BringToFront
();
}
}
/// <summary>
/// Resets the v scroll location.
...
...
@@ -415,6 +482,7 @@ namespace HZH_Controls.Controls
{
m_lstVCache
[
control
].
Height
=
control
.
Height
;
}
SetVMaxNum
(
control
);
}
if
(
m_lstHCache
.
ContainsKey
(
control
))
...
...
@@ -428,6 +496,7 @@ namespace HZH_Controls.Controls
//{
m_lstHCache
[
control
].
Width
=
control
.
Width
;
//}
SetHMaxNum
(
control
);
}
}
}
...
...
@@ -450,7 +519,10 @@ namespace HZH_Controls.Controls
{
m_lstHCache
[
control
].
Visible
=
control
.
Visible
;
}
if
(
control
.
Visible
)
{
control_SizeChanged
(
control
,
null
);
}
}
private
const
int
HSCROLL
=
0x100000
;
...
...
@@ -482,7 +554,11 @@ namespace HZH_Controls.Controls
}
else
if
(
c
is
RichTextBox
)
{
ControlHelper
.
SetVScrollValue
(
c
.
Handle
,
bar
.
Value
);
ControlHelper
.
SetVScrollValue
(
c
.
Handle
,
bar
.
Value
);
}
else
if
(
c
is
ListBox
)
{
ControlHelper
.
SetVScrollValue
(
c
.
Handle
,
bar
.
Value
/
((
c
as
ListBox
).
ItemHeight
));
}
}
}
...
...
@@ -513,6 +589,10 @@ namespace HZH_Controls.Controls
{
ControlHelper
.
SetHScrollValue
(
c
.
Handle
,
bar
.
Value
);
}
else
if
(
c
is
ListBox
)
{
ControlHelper
.
SetHScrollValue
(
c
.
Handle
,
bar
.
Value
);
}
}
}
...
...
@@ -527,124 +607,21 @@ namespace HZH_Controls.Controls
control_SizeChanged
(
sender
as
Control
,
null
);
}
// void tv_AfterSelect(object sender, TreeViewEventArgs e)
// {
// TreeView tv = (TreeView)sender;
// if (m_lstVCache.ContainsKey(tv))
// {
// m_lstVCache[tv].Value = tv.Nodes.Count > 0 ? Math.Abs(tv.Nodes[0].Bounds.Top) : 0;
// }
// }
///// <summary>
///// Sets the TreeView scroll location.
///// </summary>
///// <param name="tv">The tv.</param>
///// <param name="tns">The TNS.</param>
///// <param name="intY">The int y.</param>
///// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
//private bool SetTreeViewVScrollLocation(TreeView tv, TreeNodeCollection tns, int intY)
//{
// for (int i = 0; i < tns.Count; i++)
// {
// if (intY >= tns[i].Bounds.Top - tv.Nodes[0].Bounds.Top - 3 && intY <= tns[i].Bounds.Bottom - tv.Nodes[0].Bounds.Top + 3)
// {
// tns[i].EnsureVisible();
// return true;
// }
// else if (tns[i].IsExpanded && tns[i].Nodes.Count > 0)
// {
// bool bln = SetTreeViewVScrollLocation(tv, tns[i].Nodes, intY);
// if (bln)
// return true;
// }
// }
// return false;
//}
#
endregion
#
region
TextBox
处理
English
:
TextBox
Processing
void
txt_TextChanged
(
object
sender
,
EventArgs
e
)
{
TextBox
txt
=
sender
as
TextBox
;
Control
txt
=
sender
as
Control
;
control_SizeChanged
(
txt
,
null
);
//if (m_lstVCache.ContainsKey(txt))
//{
// using (var g = txt.CreateGraphics())
// {
// var size = g.MeasureString(txt.Text.Substring(0, txt.SelectionStart), txt.Font);
// m_lstVCache[txt].Value = (int)size.Height;
// }
//}
}
//private void SetTextBoxVScrollLocation(TextBox txt, int intY)
//{
// using (var g = txt.CreateGraphics())
// {
// for (int i = 0; i < txt.Lines.Length; i++)
// {
// string str = string.Join("\n", txt.Lines.Take(i + 1));
// var size = g.MeasureString(str, txt.Font);
// if (size.Height >= intY)
// {
// txt.SelectionStart = str.Length;
// txt.ScrollToCaret();
// return;
// }
// }
// }
//}
void
txt_KeyDown
(
object
sender
,
KeyEventArgs
e
)
{
TextBox
txt
=
sender
as
TextBox
;
Control
txt
=
sender
as
Control
;
control_SizeChanged
(
txt
,
null
);
//if (e.KeyCode == Keys.Up || e.KeyCode == Keys.Down)
//{
// TextBox txt = (TextBox)sender;
// if (m_lstVCache.ContainsKey(txt))
// {
// using (var g = txt.CreateGraphics())
// {
// var size = g.MeasureString(txt.Text.Substring(0, txt.SelectionStart), txt.Font);
// m_lstVCache[txt].Value = (int)size.Height;
// }
// }
//}
}
//void txt_MouseWheel(object sender, MouseEventArgs e)
//{
// TextBox txt = (TextBox)sender;
// if (m_lstVCache.ContainsKey(txt))
// {
// using (var g = txt.CreateGraphics())
// {
// StringBuilder str = new StringBuilder();
// for (int i = 0; i < System.Windows.Forms.SystemInformation.MouseWheelScrollLines; i++)
// {
// str.AppendLine("A");
// }
// var height = (int)g.MeasureString(str.ToString(), txt.Font).Height;
// if (e.Delta < 0)
// {
// if (height + m_lstVCache[txt].Value > m_lstVCache[txt].Maximum)
// m_lstVCache[txt].Value = m_lstVCache[txt].Maximum;
// else
// m_lstVCache[txt].Value += height;
// }
// else
// {
// if (m_lstVCache[txt].Value - height < 0)
// m_lstVCache[txt].Value = 0;
// else
// m_lstVCache[txt].Value -= height;
// }
// }
// }
//}
#
endregion
}
}
HZH_Controls/Test/FrmMain.cs
查看文件 @
1202db0
...
...
@@ -38,6 +38,7 @@ namespace Test
this
.
tvMenu
.
Nodes
.
Add
(
tnForm
);
TreeNode
tnControl
=
new
TreeNode
(
" 控件"
);
tnControl
.
Nodes
.
Add
(
"滚动条1"
);
tnControl
.
Nodes
.
Add
(
"表单控件"
);
tnControl
.
Nodes
.
Add
(
"按钮"
);
tnControl
.
Nodes
.
Add
(
"选项卡"
);
...
...
@@ -195,6 +196,9 @@ namespace Test
#
endregion
#
region
控件
English
:
control
case
"滚动条1"
:
AddControl
(
new
UC
.
UCTestNewBar
());
break
;
case
"表单控件"
:
AddControl
(
new
UC
.
UCTestForms
());
break
;
...
...
HZH_Controls/Test/Test.csproj
查看文件 @
1202db0
...
...
@@ -248,9 +248,7 @@
<Compile Include="UC\UCTestLiveCharts\Cartesian\DataPagination\DataPaginationExample.Designer.cs">
<DependentUpon>DataPaginationExample.cs</DependentUpon>
</Compile>
<Compile Include="UC\UCTestLiveCharts\Cartesian\DateTime\DateTimeExample.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="UC\UCTestLiveCharts\Cartesian\DateTime\DateTimeExample.cs" />
<Compile Include="UC\UCTestLiveCharts\Cartesian\DateTime\DateTimeExample.Designer.cs">
<DependentUpon>DateTimeExample.cs</DependentUpon>
</Compile>
...
...
@@ -502,6 +500,12 @@
<Compile Include="UC\UCTestNavigationMenuOfficeItem.Designer.cs">
<DependentUpon>UCTestNavigationMenuOfficeItem.cs</DependentUpon>
</Compile>
<Compile Include="UC\UCTestNewBar.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="UC\UCTestNewBar.Designer.cs">
<DependentUpon>UCTestNewBar.cs</DependentUpon>
</Compile>
<Compile Include="UC\UCTestPage.cs">
<SubType>UserControl</SubType>
</Compile>
...
...
@@ -884,6 +888,9 @@
<EmbeddedResource Include="UC\UCTestNavigationMenuOfficeItem.resx">
<DependentUpon>UCTestNavigationMenuOfficeItem.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UC\UCTestNewBar.resx">
<DependentUpon>UCTestNewBar.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="UC\UCTestPage.resx">
<DependentUpon>UCTestPage.cs</DependentUpon>
</EmbeddedResource>
...
...
HZH_Controls/Test/UC/UCTestNewBar.Designer.cs
0 → 100644
查看文件 @
1202db0
namespace
Test.UC
{
partial
class
UCTestNewBar
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private
System
.
ComponentModel
.
IContainer
components
=
null
;
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
protected
override
void
Dispose
(
bool
disposing
)
{
if
(
disposing
&&
(
components
!=
null
))
{
components
.
Dispose
();
}
base
.
Dispose
(
disposing
);
}
#
region
组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要修改
/// 使用代码编辑器修改此方法的内容。
/// </summary>
private
void
InitializeComponent
()
{
this
.
components
=
new
System
.
ComponentModel
.
Container
();
this
.
listBox1
=
new
System
.
Windows
.
Forms
.
ListBox
();
this
.
scrollbarComponent1
=
new
HZH_Controls
.
Controls
.
ScrollbarComponent
(
this
.
components
);
this
.
SuspendLayout
();
//
// listBox1
//
this
.
listBox1
.
FormattingEnabled
=
true
;
this
.
listBox1
.
ItemHeight
=
12
;
this
.
listBox1
.
Items
.
AddRange
(
new
object
[]
{
"1"
,
"2"
,
"3"
,
"4"
,
"5"
,
"6"
,
"6"
,
"2"
,
"23"
,
"23"
,
"23"
,
"2323"
,
"32"
,
"32"
,
"32"
,
"3"
,
"23"
,
"2"
,
"3"
,
"32"
,
"32"
,
"23"
,
"23"
,
"2"
,
"23"
,
"23"
,
"23"
,
"23"
,
"23"
,
"23"
,
"2"
,
"3"
,
"2"
,
"23"
,
"1"
,
"3"
,
"2"
,
"r"
,
"rtf"
,
"f"
,
"2"
,
"f"
});
this
.
listBox1
.
Location
=
new
System
.
Drawing
.
Point
(
45
,
26
);
this
.
listBox1
.
Name
=
"listBox1"
;
this
.
listBox1
.
Size
=
new
System
.
Drawing
.
Size
(
222
,
280
);
this
.
listBox1
.
TabIndex
=
0
;
this
.
scrollbarComponent1
.
SetUserCustomScrollbar
(
this
.
listBox1
,
true
);
//
// UCTestNewBar
//
this
.
AutoScaleDimensions
=
new
System
.
Drawing
.
SizeF
(
6F
,
12F
);
this
.
AutoScaleMode
=
System
.
Windows
.
Forms
.
AutoScaleMode
.
Font
;
this
.
Controls
.
Add
(
this
.
listBox1
);
this
.
Name
=
"UCTestNewBar"
;
this
.
Size
=
new
System
.
Drawing
.
Size
(
941
,
601
);
this
.
ResumeLayout
(
false
);
}
#
endregion
private
System
.
Windows
.
Forms
.
ListBox
listBox1
;
private
HZH_Controls
.
Controls
.
ScrollbarComponent
scrollbarComponent1
;
}
}
HZH_Controls/Test/UC/UCTestNewBar.cs
0 → 100644
查看文件 @
1202db0
using
System
;
using
System.Collections.Generic
;
using
System.ComponentModel
;
using
System.Drawing
;
using
System.Data
;
using
System.Linq
;
using
System.Text
;
using
System.Windows.Forms
;
namespace
Test.UC
{
public
partial
class
UCTestNewBar
:
UserControl
{
public
UCTestNewBar
()
{
InitializeComponent
();
}
private
void
label20_Click
(
object
sender
,
EventArgs
e
)
{
this
.
ActiveControl
=
(
Control
)
sender
;
}
private
void
label2_Click
(
object
sender
,
EventArgs
e
)
{
this
.
ActiveControl
=
(
Control
)
sender
;
}
private
void
label1_Click
(
object
sender
,
EventArgs
e
)
{
}
}
}
HZH_Controls/Test/UC/UCTestNewBar.resx
0 → 100644
查看文件 @
1202db0
<?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>
<metadata name="scrollbarComponent1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
\ No newline at end of file
HZH_Controls/Test/UC/UCTestScrollbar.Designer.cs
查看文件 @
1202db0
...
...
@@ -323,7 +323,7 @@
this
.
uchScrollbar6
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
uchScrollbar6
.
RectWidth
=
1
;
this
.
uchScrollbar6
.
Size
=
new
System
.
Drawing
.
Size
(
375
,
22
);
this
.
uchScrollbar6
.
SmallChange
=
1
;
this
.
uchScrollbar6
.
SmallChange
=
5
;
this
.
uchScrollbar6
.
TabIndex
=
5
;
this
.
uchScrollbar6
.
ThumbColor
=
System
.
Drawing
.
Color
.
White
;
this
.
uchScrollbar6
.
Value
=
0
;
...
...
@@ -346,7 +346,7 @@
this
.
uchScrollbar4
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
uchScrollbar4
.
RectWidth
=
1
;
this
.
uchScrollbar4
.
Size
=
new
System
.
Drawing
.
Size
(
375
,
22
);
this
.
uchScrollbar4
.
SmallChange
=
1
;
this
.
uchScrollbar4
.
SmallChange
=
5
;
this
.
uchScrollbar4
.
TabIndex
=
5
;
this
.
uchScrollbar4
.
ThumbColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
150
)))),
((
int
)(((
byte
)(
136
)))));
this
.
uchScrollbar4
.
Value
=
0
;
...
...
@@ -369,7 +369,7 @@
this
.
uchScrollbar5
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
uchScrollbar5
.
RectWidth
=
1
;
this
.
uchScrollbar5
.
Size
=
new
System
.
Drawing
.
Size
(
375
,
18
);
this
.
uchScrollbar5
.
SmallChange
=
1
;
this
.
uchScrollbar5
.
SmallChange
=
5
;
this
.
uchScrollbar5
.
TabIndex
=
5
;
this
.
uchScrollbar5
.
ThumbColor
=
System
.
Drawing
.
Color
.
White
;
this
.
uchScrollbar5
.
Value
=
0
;
...
...
@@ -392,7 +392,7 @@
this
.
uchScrollbar3
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
uchScrollbar3
.
RectWidth
=
1
;
this
.
uchScrollbar3
.
Size
=
new
System
.
Drawing
.
Size
(
375
,
18
);
this
.
uchScrollbar3
.
SmallChange
=
1
;
this
.
uchScrollbar3
.
SmallChange
=
5
;
this
.
uchScrollbar3
.
TabIndex
=
5
;
this
.
uchScrollbar3
.
ThumbColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
150
)))),
((
int
)(((
byte
)(
136
)))));
this
.
uchScrollbar3
.
Value
=
0
;
...
...
@@ -415,7 +415,7 @@
this
.
uchScrollbar2
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
uchScrollbar2
.
RectWidth
=
1
;
this
.
uchScrollbar2
.
Size
=
new
System
.
Drawing
.
Size
(
375
,
22
);
this
.
uchScrollbar2
.
SmallChange
=
1
;
this
.
uchScrollbar2
.
SmallChange
=
5
;
this
.
uchScrollbar2
.
TabIndex
=
5
;
this
.
uchScrollbar2
.
ThumbColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
58
)))));
this
.
uchScrollbar2
.
Value
=
0
;
...
...
@@ -438,7 +438,7 @@
this
.
uchScrollbar1
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
uchScrollbar1
.
RectWidth
=
1
;
this
.
uchScrollbar1
.
Size
=
new
System
.
Drawing
.
Size
(
375
,
18
);
this
.
uchScrollbar1
.
SmallChange
=
1
;
this
.
uchScrollbar1
.
SmallChange
=
5
;
this
.
uchScrollbar1
.
TabIndex
=
5
;
this
.
uchScrollbar1
.
ThumbColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
58
)))));
this
.
uchScrollbar1
.
Value
=
0
;
...
...
@@ -461,7 +461,7 @@
this
.
ucvScrollbar6
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucvScrollbar6
.
RectWidth
=
1
;
this
.
ucvScrollbar6
.
Size
=
new
System
.
Drawing
.
Size
(
23
,
343
);
this
.
ucvScrollbar6
.
SmallChange
=
1
;
this
.
ucvScrollbar6
.
SmallChange
=
5
;
this
.
ucvScrollbar6
.
TabIndex
=
4
;
this
.
ucvScrollbar6
.
ThumbColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucvScrollbar6
.
Value
=
0
;
...
...
@@ -484,7 +484,7 @@
this
.
ucvScrollbar5
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucvScrollbar5
.
RectWidth
=
1
;
this
.
ucvScrollbar5
.
Size
=
new
System
.
Drawing
.
Size
(
18
,
343
);
this
.
ucvScrollbar5
.
SmallChange
=
1
;
this
.
ucvScrollbar5
.
SmallChange
=
5
;
this
.
ucvScrollbar5
.
TabIndex
=
4
;
this
.
ucvScrollbar5
.
ThumbColor
=
System
.
Drawing
.
Color
.
White
;
this
.
ucvScrollbar5
.
Value
=
0
;
...
...
@@ -507,7 +507,7 @@
this
.
ucvScrollbar4
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucvScrollbar4
.
RectWidth
=
1
;
this
.
ucvScrollbar4
.
Size
=
new
System
.
Drawing
.
Size
(
23
,
343
);
this
.
ucvScrollbar4
.
SmallChange
=
1
;
this
.
ucvScrollbar4
.
SmallChange
=
5
;
this
.
ucvScrollbar4
.
TabIndex
=
4
;
this
.
ucvScrollbar4
.
ThumbColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
150
)))),
((
int
)(((
byte
)(
136
)))));
this
.
ucvScrollbar4
.
Value
=
0
;
...
...
@@ -530,7 +530,7 @@
this
.
ucvScrollbar3
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucvScrollbar3
.
RectWidth
=
1
;
this
.
ucvScrollbar3
.
Size
=
new
System
.
Drawing
.
Size
(
18
,
343
);
this
.
ucvScrollbar3
.
SmallChange
=
1
;
this
.
ucvScrollbar3
.
SmallChange
=
5
;
this
.
ucvScrollbar3
.
TabIndex
=
4
;
this
.
ucvScrollbar3
.
ThumbColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
0
)))),
((
int
)(((
byte
)(
150
)))),
((
int
)(((
byte
)(
136
)))));
this
.
ucvScrollbar3
.
Value
=
0
;
...
...
@@ -553,7 +553,7 @@
this
.
ucvScrollbar2
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucvScrollbar2
.
RectWidth
=
1
;
this
.
ucvScrollbar2
.
Size
=
new
System
.
Drawing
.
Size
(
24
,
343
);
this
.
ucvScrollbar2
.
SmallChange
=
1
;
this
.
ucvScrollbar2
.
SmallChange
=
5
;
this
.
ucvScrollbar2
.
TabIndex
=
4
;
this
.
ucvScrollbar2
.
ThumbColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
58
)))));
this
.
ucvScrollbar2
.
Value
=
0
;
...
...
@@ -576,7 +576,7 @@
this
.
ucvScrollbar1
.
RectColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))),
((
int
)(((
byte
)(
220
)))));
this
.
ucvScrollbar1
.
RectWidth
=
1
;
this
.
ucvScrollbar1
.
Size
=
new
System
.
Drawing
.
Size
(
18
,
343
);
this
.
ucvScrollbar1
.
SmallChange
=
1
;
this
.
ucvScrollbar1
.
SmallChange
=
5
;
this
.
ucvScrollbar1
.
TabIndex
=
4
;
this
.
ucvScrollbar1
.
ThumbColor
=
System
.
Drawing
.
Color
.
FromArgb
(((
int
)(((
byte
)(
255
)))),
((
int
)(((
byte
)(
77
)))),
((
int
)(((
byte
)(
58
)))));
this
.
ucvScrollbar1
.
Value
=
0
;
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论