当前位置:首页 > 技术问答集
firefox

如何使弹出的窗口位于windows中央

 所属目录:Java   |   类型:技术问答   |   时间:2007-05-21
 问题:

我做一个弹出窗口,让他位于windows中央。

· 网友精彩回答:

发表者:balloonman2002

long   ll_screenh,ll_screenw  
  environment le_env  
   
  getenvironment(le_env)  
   
  ll_screenh   =   pixelstounits(le_env.screenheight,   ypixelstounits!)  
  ll_screenw   =   pixelstounits(le_env.screenwidth   ,   xpixelstounits!)  
   
  as_window.y   =   (ll_screenh   -   as_window.height)   /   2  
  as_window.x   =   (ll_screenw   -   as_window.width   )   /   2

.
© 2006-2008 All Rights Reserved