只需在窗体的OnShow事件中加入:
child.top:=(parent.clientheight-child.height) div 2;
child.left:=(parent.clientwidth-child.width) div 2;
建议你先做一个父窗体,然后设置该窗体的字体、位置...
然后所有子窗体都继承自这个父窗体(当然也可copy了)
child.top:=(parent.clientheight-child.height) div 2;
child.left:=(parent.clientwidth-child.width) div 2;
建议你先做一个父窗体,然后设置该窗体的字体、位置...
然后所有子窗体都继承自这个父窗体(当然也可copy了)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货