Hi Ilker, Quote from the MapX Help:
'---------------------------------------------------------------------------- Layer.Bounds property (Layer object) Purpose This returns a Rectangle object representing the geographic extents (i.e. the minimum bounding rectangle) of all objects in the layer; does not apply to user draw layers. Remarks This property is useful if you want to zoom the map out far enough to show all objects in one layer. Example in VB Private Sub ViewEntireLayer(ViewLayer As MapXLib.Layer) ' Set the boundaries of the map view to be the boundaries ' of the given layer Map1.Bounds = ViewLayer.Bounds End Sub '---------------------------------------------------------------------- Hope This Helps Mircea Baila MobiFon, Romania E-mail: [EMAIL PROTECTED] Web: www.connex.ro -----Original Message----- From: ilker [mailto:[EMAIL PROTECTED]] Sent: 04 April, 2002 10:48 AM To: MapInfo Int. Subject: MI-L Fit To Screen? how can I implement like autocad Fit To Screen or Zoom Extend functions in MapX? **************************************************************** The content of this communication is classified as Mobifon SA Romania Confidential and Proprietary Information.The content of this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by responding to this communication then delete it from your system. We appreciate your assistance in preserving the confidentiality of our correspondence. Thank you. Prezentul mesaj constituie o Informatie confidentiala si este proprietatea exclusiva a MobiFon S.A.. Mesajul se adreseaza numai persoanei fizice sau juridice mentionata ca destinatara, precum si altor persoane autorizate sa-l primeasca. In cazul in care nu sunteti destinatarul vizat, va aducem la cunostinta ca dezvaluirea, copierea, distribuirea sau initierea unor actiuni pe baza prezentei informatii sunt strict interzise si atrag raspunderea civila si penala. Daca ati primit acest mesaj dintr-o eroare, va rugam sa ne anuntati imediat, ca raspuns la mesajul de fata, si sa-l stergeti apoi din sistemul dvs. Apreciem si va multumim pentru sprijinul acordat in pastrarea confidentialitatii corespondentei noastre.
