Hi Bob,
create a map window, select it then in the mapbasic window type
set window frontwindow() height 1.41*windowinfo(frontwindow(),4)
this will hold the current window width and adjust the height to be the
correct dimension. Note 1.41 is my approximation of the sqr of 2 but you
can use any factor you want.
Alternatively if you want to keep the height and adjust the width use:
set window frontwindow() width windowinfo(frontwindow(),5)/1.41
if you want the window to be an exact size you can use:
set window frontwindow() width 30 units "mm" height 50 units "mm"
Just adjust the values and units to suit.
I have developed a tool that enables the user to add a frame (map window) to
a layout and then set the scale to what ever is required (the user can
change the scale at any time). This is back to front to what you describe
but is more useful if you are printing maps from layouts rather than from
map windows as it enables the user to design a page and have the program
adjust the size of the map window. Let me know if it would be of any use
and I will fire you through a copy (it changes everything to metric so if
you use inches it could be a pain).
Cheers
Martin
==================================
Martin Roundill
GIS Manager
Waitakere City Council
Private Bag 93109
Henderson
Waitakere City
New Zealand
-----Original Message-----
From: Bob Hudson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 16 January 2001 14:53
To: [EMAIL PROTECTED]
Subject: MI-L Default window size?
I'm about to create a heap of maps in MI 5.5, which will be reproduced on A4
pages. To maximise the size of each map on the page, I want to set the
window to the same proportions as an A4 page. At present, I just drag the
window to what looks roughly like the right size. Is there any way to create
a window that will always be in the same, nominated proportions?
Bob Hudson
Archaeology Department,
University of Sydney.
-----------------------------------
Home pages: Archaeology at Bagan, Myanmar & Buddhist Art and Archaeology:
<http://www.archaeology.usyd.edu.au/~hudson/bobhpage>
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.
_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.