From 270b3d8539f6b4a991a9ebf3b3a9eceb436d61d5 Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期四, 28 十月 2021 17:08:02 +0800 Subject: [PATCH] 自动化地址问题修复 --- 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 index 1b4a3dc..f22eb92 100644 --- 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