dialog modal is different beast
it is positioned based on parent window.
So uppertLeftX doesn't supposed to work (if only you position parent window first I think)
But there are stylebits.
Search on LB forum returned this:
Topic: Stylebit not working!
so
Code:WindowWidth = 0.9*DisplayWidth 'gange this number, 0.9 1.0 1.1 ...
UpperLeftX=Int((DisplayWidth-WindowWidth)/2)
print UpperLeftX
UpperLeftY=Int((DisplayHeight-WindowHeight)/2)
'nomainwin
stylebits #main, _DS_CENTER, _WS_SYSMENU, 0, 0
open "test" for dialog_modal as #main
#main "trapclose [quit]"
wait
[quit]
close #main
end
EDIT
while I search Richard just *knows* ;)