Get a look to KiXGUI manual, especially the object tree. You'll see that the desktop object have the width and height properties. They are your current desktop size. In Radimus's script, Desktop is :
$root
$form.parent

Edit : here's a sample to center your form on the screen :
$root = createobject("KiXGUI.Desktop")
$frmSample=$root.createform("frmMain","Centered Form sample")
$frmSample.height=300
$frmSample.width=400
$frmSample.Left=($frmSample.parent.width-$frmSample.width) / 2
$frmSample.top=($frmSample.parent.height-$frmSample.height) / 2

What ever the current desktop resolution, your form will always be centered

[ 21 March 2002, 14:07: Message edited by: Alex.H ]
_________________________
? getobject(Kixtart.org.Signature)