To handle the specific raster layer problem - I believe it is MapInfo trying to be helpful and making a guess on suitable zoom settings based on image size and DPI - try this -
If you add the rasterlayers in your own code then use Set MAp Window n Layer x zoom as soon as you add them - set autoredraw off before adding the layers to cut down on the amount of flicker. If the users are able to open the window or add a layer themselves, set up a window changed handler and look for the new window/layer there. Use CommandInfo(CMD_INFO_WIN) to see which window changed. You'll need to have an array of open window IDs and another of layers to track individual layers but you could just loop all the open layers, find out which are raster and apply your zoom settings as appropriate. HTH Paul Crisp Syntegra Innovation Place Delta Bank Road Newcastle NE11 9DJ Tel 0191 461 4522 Fax 0191 460 1987 -----Original Message----- From: Mats Elfstr�m [mailto:[EMAIL PROTECTED] Sent: 15 January 2004 09:37 To: Peter Horsb�ll M�ller <PEM Cc: Eagle, David A; [EMAIL PROTECTED] Subject: MI-L Ang. RE: MI-L Altering Map Window Preferences using MapBasic Hear, hear! Anybody who would care to decode mapinfow.prf, and provide an external interface to edit it, would render the MapInfo User community a great service. Why? Because MapInfo Pro Viewer uses this file as well, but cannot change it. MapInfo Corp has discontinued the localized versions of the viewer, so installing it here in Sweden gives me all wrong default values. Not to speak of all search paths which are office dependent. The workaround is to carefully do all settings in MI Pro, then copy the prf-file to the Viewer workstations. This is of course an outright PIA, and gives no room for temporary changes of paths or printers. H�lsning/ Best regards Mats.E ________________________ FB Engineering AB S�dra F�rstadsgatan 26 211 43 Malm� Tel: 040-665 64 80 Mobil: 0705-27 60 27 Fax: 040-665 69 90 e-post: [EMAIL PROTECTED] http://www.fbe.se Peter Horsb�ll M�ller <[EMAIL PROTECTED]> 2004-01-15 10:19 Till "Eagle, David A" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Kopia �rende RE: MI-L Altering Map Window Preferences using MapBasic Hi Davis, A happe New Year to you, too. The answer is: No ! You cannot access the preferences from within MapBasic. These settings are all saved in the MapInfow.prf file, so if you want to change this value you'll have to decode this file, and that's not easy... Peter Horsb�ll M�ller GIS Developer Geographical Information & IT COWI A/S Odensevej 95 DK-5260 Odense S Denmark Tel +45 6311 4900 Direct +45 6311 4908 Mob +45 5156 1045 Fax +45 6311 4949 E-mail [EMAIL PROTECTED] http://www.cowi.dk *****CHANGE OF ADDRESS - COWI's offices in Odense are now under the same roof***** On December 8th. 2003, Geographical Information & IT moved from Rugaardsvej 55, 5000 Odense C to Odensevej 95, 5260 Odense S. Please note our new telephone, direct and telefax numbers. > -----Original Message----- > From: Eagle, David A [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 15, 2004 9:46 AM > To: '[EMAIL PROTECTED]' > Subject: MI-L Altering Map Window Preferences using MapBasic > > > > Hello Listers... > > > > This is my first message post since the start of the New Year, so > > Happy New Year to you all! > > > > Can anyone point me in the right direction? I'm using > MapInfo 7.5 and > > coding an application in MapBasic 7.5 and I want to > programmatically > > access the Map Window Preferences and alter a setting. To > be specific > > I want to get to: > > > > Options>Preferences>Map Window > > > > ...and then uncheck the option "Automatic Raster Zoom Handling". > > > > Can this be done, and if so how? > > > > Thanks in advance. > > > > Best Regards, David > > > > > This email and any attached files are confidential and > copyright protected. If you are not the addressee, any > dissemination of this communication is strictly prohibited. > Unless otherwise expressly agreed in writing, nothing stated > in this communication shall be legally binding. > > > > --------------------------------------------------------------------- > List hosting provided by Directions Magazine | > www.directionsmag.com | To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > Message number: 9899 > > > --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9900 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 9901 ******************************************************************** This email may contain information which is privileged or confidential. If you are not the intended recipient of this email, please notify the sender immediately and delete it without reading, copying, storing, forwarding or disclosing its contents to any other person Thank you Check us out at http://www.syntegra.com ********************************************************************
