From 0de3ac9b3e2afea565dd9d028a89986a2e0a377d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 18 十一月 2021 10:07:18 +0800
Subject: [PATCH] 增加siri扩展
---
HDL_ON/UI/UI0-Stan/Controls/CompoundControls/DialogTitleMenuControl.cs | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/HDL_ON/UI/UI0-Stan/Controls/CompoundControls/DialogTitleMenuControl.cs b/HDL_ON/UI/UI0-Stan/Controls/CompoundControls/DialogTitleMenuControl.cs
old mode 100755
new mode 100644
index 1b4a3dc..f22eb92
--- a/HDL_ON/UI/UI0-Stan/Controls/CompoundControls/DialogTitleMenuControl.cs
+++ b/HDL_ON/UI/UI0-Stan/Controls/CompoundControls/DialogTitleMenuControl.cs
@@ -17,6 +17,10 @@
/// 鍒楄〃鎺т欢
/// </summary>
private VerticalListControl listView = null;
+ /// <summary>
+ /// 鍒楄〃鎺т欢鏄惁鑳芥粴鍔�
+ /// </summary>
+ private bool listViewScroll = false;
/// <summary>
/// 鏍囬(鍒濆鍖栦箣鍚庝細缃┖)
/// </summary>
@@ -41,9 +45,11 @@
/// <param name="i_title">鏍囬</param>
public DialogTitleMenuControl(int i_RowCount, string i_title)
{
- //鏈�澶ф樉绀�5涓�
- this.RowCount = i_RowCount > 5 ? 5 : i_RowCount;
+ //鏈�澶ф樉绀�5涓獄zy //4涓�傘�傛病鏈�5涓殑鑳屾櫙鍥緒xr
+ this.RowCount = i_RowCount > 4 ? 4 : i_RowCount;
+ this.listViewScroll = i_RowCount > 4;
this.StrTitle = i_title;
+ this.Height = Application.GetRealHeight(64 + 45 * this.RowCount);
}
/// <summary>
@@ -81,6 +87,7 @@
this.listView = new VerticalListControl();
listView.Y = rowTitle.Bottom;
listView.Height = this.RowCount * this.RowHeight;
+ listView.ScrollEnabled = this.listViewScroll;
this.AddChidren(listView);
}
--
Gitblit v1.8.0