急!!!!!!!!!!!!!!!!!!!
因为面对不同尺寸的显示器,每次都要重新调整窗体并重新编译,太麻烦了!!!所以请问各位大兄:DELPHI里是否有某个函数能够让窗口FORM自动调整到屏幕中央,或者哪个高手已经实现了让小弟学一学。

解决方案 »

  1.   

    form的position属性里设置成poscreencenter不行吗?
      

  2.   

    Form1.Position := poMainFormCenter
      

  3.   

    将form的Position属性设置为poScreenCenter;
      

  4.   

    设计时就可以指定form1.Position:=poScreenCenter;
      

  5.   

    form1.left:=(screen.width-form1.width) div 2;
    form1.top:=(screen.height-form1.height) div 2;
      

  6.   

    在form1的position属性中选择poScreenCenter.每次启动就自动居中了
      

  7.   

    form1.Position:=poScreenCenter;代码实现或者设计时指定属性都可以
      

  8.   

    form的position属性里设置成poscreencenter不行吗?