whats wrong with this

BlitzMax Forums/BlitzMax GUI Programming/whats wrong with this

ScriptEditor=CreateWindow("ScriptEditor",ClientWidth(Desktop()),ClientHeight(Desktop()),645,480,Desktop(),WINDOW_RESIZABLE|WINDOW_MENU)

i want it to appear in the center of the windows DT.

ok, im stupid. i forgot the *.25

while im at it, is there a way of getting the desktop color depth?

Pointer to
DesktopExtension

Why would you need that one?
Canvas are by default desktop color depth as you can't do windowed graphics in a different depth than desktop :)

I need to pass it to a b3d external