将焦点设置到TPrintDialog中的“确定”按钮

问题描述

TPrintDialog打开时是否可以将焦点设置为“确定”按钮?

解决方法

List<Group> groupings = GroupingMethod(new int[] {9,6,9,3,5,1,8}); static List<Group> GroupingMethod(int[] ValueList) { int groupTotal = 0; Group newGroup = new Group(); var put = ValueList.Aggregate(new List<Group>(),(acc,x) => { List<Group> polp = acc; groupTotal = groupTotal + x; if (groupTotal < 10) { newGroup.AddInt(x); } else { polp.Add(newGroup); newGroup.Clear(); groupTotal = 0; } return polp; }); return put; } class Group { List<int> iGrouping = new List<int>(); public Group(int AddInt) { iGrouping.Add(AddInt); } public Group() { } public void AddInt(int IntToAdd) { iGrouping.Add(IntToAdd); } public void Clear() { iGrouping.Clear(); } public int CombinedGroupValue { get{return iGrouping.Sum();}} } 事件中,您可以将焦点手动设置为“确定”按钮,如下所示:

TPrintDialog::OnShow

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...