Hello Luke,
Tuesday, May 28, 2002, 10:08:01 PM, you wrote:
CL> Hi All,
CL> I am trying to create a key map for some 40 maps. I am tired of manually
CL> opening each workspace and drawing a polygon so I have decided to create a
CL> Key Map Generator to help create a key map. I have got to the point where I
CL> need to create a polygon which replicates the bounds of the working window.
CL> Does anyone know a MBX that already does this? If not can someone give me
CL> some direction in making this myself.
Read MapBasic Help:
Look at:
TableInfo( table_id , attribute )
table_id is a String representing a table name, a positive Integer table
number, or 0 (zero)
attribute is an Integer code indicating which aspect of the table to return
attribute code:
TAB_INFO_MINX, TAB_INFO_MINY, TAB_INFO_MAXX, TAB_INFO_MAXY
TableInfo(�) returns:
Float results, indicating the minimum and maximum x- and y-coordinates of all objects
in the table
or:
MapperInfo( window_id , attribute )
window_id is an Integer window identifier
attribute is an Integer code, indicating which type of information should
be returned
attribute setting MapperInfo(�) Return Value
MAPPER_INFO_MAXX The largest x-coordinate shown in the window.
MAPPER_INFO_MAXY The largest y-coordinate shown in the window.
MAPPER_INFO_MINX The smallest x-coordinate shown in the window.
MAPPER_INFO_MINY The smallest y-coordinate shown in the window.
--
Best regards,
Vladimir Lashin
microOLAP Technologies LLC
MBBuilder - Visual Development Tool for MapBasic - http://www.microolap.com/gis/mb.htm
Raster Handler for ERDAS Imagine to MapInfo - http://www.microolap.com/gis/imgrhl.htm
MapInfo Callbacks Manager ActiveX - http://www.microolap.com/gis/micm.htm
mailto:[EMAIL PROTECTED]
http://www.microolap.com/gis/ - GIS related products
---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]