Use the Named Views function in the tool manager. This will allow you to set default views that you can go back to.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 1:51 PM To: [EMAIL PROTECTED] Subject: RE: MI-L Adding a "Previous View" button to Pro Has anyone ever built a tool that lets you go back three or four views? Sometimes I zoom in to work on a detail and accidently zoom in again or move the layout or just do something silly. It'd be much easier than closing everything and relaunching the workspace. Troy "Ryan Morgan, Aerials Express" <[EMAIL PROTECTED]> on 01/21/2003 13:44:48 To: <[EMAIL PROTECTED]>, "MapInfo-L" <[EMAIL PROTECTED]> cc: Subject: RE: MI-L Adding a "Previous View" button to Pro I just added the miracle button in version 7.0 no problem. Thanks for the post, I'll be clicking on that one quite a bit! Ryan Morgan Aerials Express www.AerialsExpress.com -----Original Message----- From: Warren Vick, Europa Technologies Ltd. [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 21, 2003 1:09 PM To: MapInfo-L Subject: MI-L Adding a "Previous View" button to Pro I'm often asked at demos what all the extra buttons on my MapInfo Pro installation are. Some are third party products, other home-grown. However, the one that probably gets the most attention as being useful is my Previous View button which does the same as the Map > Previous View menu item. I've had this on my Pro's for many versions and it's implemented in a very simple way. After yet another suggestion to share this information, I'd thought I'd post it to the list. It's far from rocket science but many -L'ers may find it useful. The following works at least for versions 4.5 to 6.5, but I have not checked 7.0 as I don't have it. What are the chances someone will tell me that the feature is in 7.0 now anyway! To add a Previous View button to the standard "Main" toolbar, you need to make an addition to the MAPINFOW.MNU file in your MapInfo installation folder. Use Notepad or another text editor to do this (you may need to change the file type to All Files or *.mnu to find the file). If you're not confident with editing text files, MAKE A COPY OF MAPINFOW.MNU FIRST, as if you make a mistake and break it, it's not my fault. MapInfoW.MNU just contains MapBasic script to create the menus and buttonpads. You can edit these to cut out or add (built-in) functionality. Towards the bottom of the file, you will see the line: Create ButtonPad "Main" ID 1 As This is the start of the buttonpad definition which includes the Zoom In and Out buttons. A few lines down, you will see the lines which specifically add the Zoom In and Out buttons. After the "HelpMsg" line for the Zoom Out button, add the following block: Pushbutton Icon 181 Calling 806 HelpMsg "Go back to the previous view of a map or layout.\nPrevious View" Then, save the file. When you next open MapInfo, you will magically see an "arrowed double magnifier" icon, next to Zoom Out, which will enable/disable correctly depending on your window focus. Previous View will take you back one view step, pressing again will restore - i.e. it will flip-flop. Hope this is useful to some. Regards, Warren Vick Europa Technologies Ltd. http://www.europa-tech.com --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5054 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5055 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5056
