* UITitlePanel: 增加Padding设置 #IBB1UF

This commit is contained in:
Sunny 2024-12-14 20:11:13 +08:00
parent 2c70e734c4
commit c0c3298fd1
3 changed files with 8 additions and 3 deletions

View File

@ -33,6 +33,7 @@
// UITitlePanel // UITitlePanel
// //
Name = "UITitlePanel"; Name = "UITitlePanel";
Padding = new System.Windows.Forms.Padding(1, 35, 1, 1);
VisibleChanged += UITitlePanel_VisibleChanged; VisibleChanged += UITitlePanel_VisibleChanged;
ResumeLayout(false); ResumeLayout(false);
} }

View File

@ -27,6 +27,7 @@
* 2023-05-12: V3.3.6 DrawString函数 * 2023-05-12: V3.3.6 DrawString函数
* 2023-07-12: V3.4.0 Padding设置 * 2023-07-12: V3.4.0 Padding设置
* 2023-08-07: V3.4.1 OnCollapsed事件 * 2023-08-07: V3.4.1 OnCollapsed事件
* 2024-12-14: V3.8.0 Padding设置 #IBB1UF
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -53,6 +54,7 @@ namespace Sunny.UI
{ {
_titleHeight = Math.Max(19, value); _titleHeight = Math.Max(19, value);
CalcSystemBoxPos(); CalcSystemBoxPos();
Padding = new Padding(1, _titleHeight, 1, 1);
Invalidate(); Invalidate();
} }
} }
@ -67,6 +69,8 @@ namespace Sunny.UI
titleColor = UIStyles.Blue.PanelTitleColor; titleColor = UIStyles.Blue.PanelTitleColor;
titleForeColor = UIStyles.Blue.PanelTitleForeColor; titleForeColor = UIStyles.Blue.PanelTitleForeColor;
Padding = new Padding(1, 35, 1, 1);
} }
/// <summary> /// <summary>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<root> <root>
<!-- <!--
Microsoft ResX Schema Microsoft ResX Schema
Version 2.0 Version 2.0
@ -18,7 +18,7 @@
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, 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="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="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value> <value>[base64 mime encoded serialized .NET Framework object]</value>
</data> </data>
@ -48,7 +48,7 @@
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding. : and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64 mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter : System.Runtime.Serialization.Formatters.Soap.SoapFormatter