+ // Set reasonable values for position and size if defaults have
+ // been requested
+ //
+ // MB TODO: something better than these arbitrary values ?
+ //
+ if ( width == -1 ) width = 400;
+ if ( height = -1 ) height = 400;
+
+ int displayW, displayH;
+ wxDisplaySize( &displayW, &displayH );
+
+ if ( x == -1 )
+ {
+ x = (displayW - width) / 2;
+ if (x < 10) x = 10;
+ }
+ if ( y == -1 )
+ {
+ y = (displayH - height) / 2;
+ if (y < 10) y = 10;
+ }
+