wei
2021-10-28 270b3d8539f6b4a991a9ebf3b3a9eceb436d61d5
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个zzy //4个。。没有5个的背景图wxr
            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);
        }