Tim,

Assuming that your front window is defined, try these 3 short lines

Set Map Layer 0 Editable On
run menu command 303    'select all (it will automatically point to the
                                'cosmetic layer if it has been set editable)
                                'NOTE rmc 303 does not work from the MapBasic Window
                                'This 3 line program must be compiled and it works.
run menu command 306    'find selection

and if you do not like to see all the objects selected

run menu command 304    'unselect all

Jacques Paris

e-mail                alternate
     [EMAIL PROTECTED]   [EMAIL PROTECTED]

paris PC Consult (mainly MapInfo app.)
     www.total.net/~rparis/gisproducts.htm
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim.Nuteson
(Exchange)
Sent: June 2, 2000 1:14 PM
To: '[EMAIL PROTECTED]'
Subject: MI MB: Zoom to Cosmetic layer


Does anyone know how I might zoom to show all cosmetic objects with
MapBasic?

These methods do not work:
1.  Set Map Zoom Entire Layer 0   (zooms out to show everything, cosmetic or
not)

2.  Set Map Zoom Entire Layer Cosmetic1   (invalid view layer)

3.  Select the cosmetic objects, Add Map Layer Selection, Set Map Zoom
Entire Layer 1 (zooms OK, but wipes out the cosmetic objects)


Any workarounds / tips?

Thanks.

Tim Nuteson
Target Corporation
[EMAIL PROTECTED]


----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to