Here is a WOR that will do the trick !Workspace !Version 650 !Charset WindowsLatin1
dim w as float dim h as float dim x as float dim y as float set paper units "in" h=3.5 w=3.5 set window 1011 max x=windowinfo(1011,4)-w y=windowinfo(1011,5)-h set window 1003 position (x,y) width w height h print "W = "+str$(w)+" h = "+str$(h) set window 1011 restore undim x undim y undim h undim w Notice that within MI, the only ting that counts is the position in paper units in this case not in pixels. The print is only required to make sure that the message window will appear for verifying the position. Jacques Paris e-mail [EMAIL PROTECTED] MapBasic-MapInfo support http://www.paris-pc-gis.com -----Original Message----- From: Christophe Brabant [mailto:[EMAIL PROTECTED] Sent: 26-Nov-04 07:44 To: MapInfo Help Subject: MI-L resizing Message Window Hi I want to set position and size of the Message Window, different than the defaults. (Set Window .......) And I want ta place this window into the bottom right corner of the screen too. How should I calculate the position x and y, depending of the size of the screen and the video resolution used ? (it should work with 21 or 17 inches screens, and with 1024x768 and 1600x1400 etc...) Thank you - Christophe --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14248