### 2022-05-09更新
------ #### MyDbV4 V3.0.2205.0901 - *.[改进]RyForm类的Show函数针对窗体最小化或不在屏幕内的情况做出优化。 - *.[改进]OpenFile函数在打开文件夹时,会调用默认资源管理器打开,而不再限定为系统。 #### ryControls V3.0.2205.0901 - *.[改进]GMForm窗体在最大化时不可移动窗体。 - *.[改进]改进ObjectListview列表中的按钮显示效果。
This commit is contained in:
parent
cf9b35d77e
commit
f7c882194c
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,2 +1,2 @@
|
|||
[Money_Op]
|
||||
hwnd=3742496
|
||||
hwnd=4207474
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<root>
|
||||
<list id="LastUpdateTime" Value="2022/2/28 10:14:55" />
|
||||
<list id="LastUpdateTime" Value="2022/5/8 9:12:56" />
|
||||
<list id="UpdateAfterTime" Value="0" />
|
||||
</root>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -1,4 +1,15 @@
|
|||
### 2022-05-07更新
|
||||
### 2022-05-09更新
|
||||
------
|
||||
#### MyDbV4 V3.0.2205.0901
|
||||
- *.[改进]RyForm类的Show函数针对窗体最小化或不在屏幕内的情况做出优化。
|
||||
- *.[改进]OpenFile函数在打开文件夹时,会调用默认资源管理器打开,而不再限定为系统。
|
||||
|
||||
#### ryControls V3.0.2205.0901
|
||||
|
||||
- *.[改进]GMForm窗体在最大化时不可移动窗体。
|
||||
- *.[改进]改进ObjectListview列表中的按钮显示效果。
|
||||
|
||||
### 2022-05-07更新
|
||||
------
|
||||
#### MyDbV4 V3.0.2205.0701
|
||||
- *.[新增]新增多个注册表操作相关函数。
|
||||
|
|
1
Source/Itrycn_Project2/FrmStart.Designer.cs
generated
1
Source/Itrycn_Project2/FrmStart.Designer.cs
generated
|
@ -215,6 +215,7 @@
|
|||
this.Controls.Add(this.chromeTabControl1);
|
||||
this.Location = new System.Drawing.Point(0, 0);
|
||||
this.Name = "FrmStart";
|
||||
this.Resizable = false;
|
||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
|
||||
this.Text = "FrmStart";
|
||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FrmStart_FormClosing);
|
||||
|
|
|
@ -661,9 +661,17 @@ namespace ryCommon
|
|||
/// <returns></returns>
|
||||
public static int OpenFile(string FilePath)
|
||||
{
|
||||
return RunFile(FilePath, "");
|
||||
}
|
||||
[DllImport("Kernel32", CharSet = CharSet.Unicode)]
|
||||
if (System.IO.Directory.Exists(FilePath))
|
||||
{
|
||||
System.Diagnostics.Process.Start(FilePath);
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return RunFile(FilePath, "");
|
||||
}
|
||||
}
|
||||
[DllImport("Kernel32", CharSet = CharSet.Unicode)]
|
||||
private static extern Int32 GetShortPathName(String path, StringBuilder shortPath, Int32 shortPathLength);
|
||||
/// <summary>
|
||||
/// 打开文件夹并定位文件
|
||||
|
|
|
@ -32,5 +32,5 @@ using System;
|
|||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("3.0.2205.0701")]
|
||||
[assembly: AssemblyFileVersion("3.0.2205.0701")]
|
||||
[assembly: AssemblyVersion("3.0.2205.0901")]
|
||||
[assembly: AssemblyFileVersion("3.0.2205.0901")]
|
|
@ -152,6 +152,23 @@ namespace ryCommon
|
|||
public static void Show(Form frm)
|
||||
{
|
||||
bool topmost = frm.TopMost;
|
||||
if(frm.WindowState!= FormWindowState.Normal)
|
||||
{
|
||||
frm.WindowState= FormWindowState.Normal;
|
||||
}
|
||||
var screen = Screen.PrimaryScreen.WorkingArea;
|
||||
if (!screen.Contains(frm.Location))
|
||||
{
|
||||
frm.Location = new Point((screen.Width-frm.Width)/2, (screen.Height - frm.Height) / 2);
|
||||
}
|
||||
else if (!screen.Contains(new Point(frm.Left,frm.Top+100)))
|
||||
{
|
||||
frm.Location = new Point((screen.Width - frm.Width) / 2, (screen.Height - frm.Height) / 2);
|
||||
}
|
||||
else if (!screen.Contains(new Point(frm.Left+100, frm.Top)))
|
||||
{
|
||||
frm.Location = new Point((screen.Width - frm.Width) / 2, (screen.Height - frm.Height) / 2);
|
||||
}
|
||||
frm.BringToFront();
|
||||
frm.TopMost = true;
|
||||
frm.TopMost = topmost;
|
||||
|
|
|
@ -1360,6 +1360,7 @@ namespace MGdu.WinFormUI
|
|||
alreadyHandled = WmNcCalcSize(ref m);
|
||||
break;
|
||||
case (int)Win32.WinAPI.WindowMessages.WM_NCHITTEST:
|
||||
if(base.WindowState!= FormWindowState.Maximized)
|
||||
alreadyHandled = WmNcHitTest(ref m);
|
||||
break;
|
||||
|
||||
|
@ -1599,7 +1600,9 @@ namespace MGdu.WinFormUI
|
|||
{
|
||||
base.OnMouseMove(e);
|
||||
if (ControlBox)
|
||||
{
|
||||
controlBoxManager.MouseOperation(e.Location, MouseOperationType.Move);
|
||||
}
|
||||
if (IsMdiContainer && _mdiBarController != null)
|
||||
_mdiBarController.MouseOperation(e.Location, MouseOperationType.Move);
|
||||
}
|
||||
|
|
|
@ -96,11 +96,16 @@ namespace BrightIdeasSoftware.Rendering
|
|||
RoundStyle style,
|
||||
int roundWidth, bool drawBorder)
|
||||
{
|
||||
RenderBackgroundInternal(g, rect, baseColor, borderColor, innerBorderColor, style, roundWidth, 0.35f, drawBorder, false, LinearGradientMode.Vertical);
|
||||
var rect2 = rect;
|
||||
rect2.X += 2;
|
||||
rect2.Y += 2;
|
||||
rect2.Width -= 6;
|
||||
rect2.Height -=16;
|
||||
RenderBackgroundInternal(g, rect2, baseColor, borderColor, innerBorderColor, style, roundWidth, 0.35f, drawBorder, false, LinearGradientMode.Vertical);
|
||||
StringFormat sf = new StringFormat();
|
||||
sf.Alignment = StringAlignment.Center;
|
||||
sf.LineAlignment = StringAlignment.Center;
|
||||
g.DrawString(Text, new Font("宋体", 10), new SolidBrush(ForeColor), rect, sf);
|
||||
g.DrawString(Text, new Font("宋体", 9), new SolidBrush(ForeColor), rect2, sf);
|
||||
}
|
||||
private static void RenderBackgroundInternal(
|
||||
Graphics g,
|
||||
|
|
|
@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
|
||||
// 方法是按如下所示使用“*”: :
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("3.0.2204.1201")]
|
||||
[assembly: AssemblyFileVersion("3.0.2204.1201")]
|
||||
[assembly: AssemblyVersion("3.0.2205.0901")]
|
||||
[assembly: AssemblyFileVersion("3.0.2205.0901")]
|
Loading…
Reference in New Issue
Block a user