| | |
| | | /// </summary>
|
| | | private VerticalListControl listView = null;
|
| | | /// <summary>
|
| | | /// 列表控件是否能滚动 |
| | | /// </summary>
|
| | | private bool listViewScroll = false;
|
| | | /// <summary>
|
| | | /// 标题(初始化之后会置空)
|
| | | /// </summary>
|
| | | private string StrTitle = null;
|
| | |
| | | /// <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>
|
| | |
| | | this.listView = new VerticalListControl();
|
| | | listView.Y = rowTitle.Bottom;
|
| | | listView.Height = this.RowCount * this.RowHeight;
|
| | | listView.ScrollEnabled = this.listViewScroll;
|
| | | this.AddChidren(listView);
|
| | |
|
| | | }
|