B-Man Posted June 3, 2002 Posted June 3, 2002 I am trying to create Zoom In and Zoom Out buttons. Is there a way to get the Zoom status of a the current layout. I am only wanting to zoom down to 75% and up to 200%. Is this something that is easy and I am missing it. Thanks for any help. Brian
danjacoby Posted June 3, 2002 Posted June 3, 2002 There doesn't appear to be a Status(CurrentZoomLevel) function, at least on v5.0. Perhaps you could have a button for each zoom level you want available (i.e. 75%, 100%, 150%, 200%). That should work until FMP adds that Status function.
kenneth2k1 Posted June 3, 2002 Posted June 3, 2002 In ScriptMaker, I saw a "Set Zoom Level" function under "Windows." I've never used it, but it seems to allow you to set zoom levels. Let me know what you find out. Thanks Ken
Kundinger Posted June 3, 2002 Posted June 3, 2002 Hi Brian, YES, you can create 'buttons' to set the zoom levels to a variety of settings. One way to do this: add 75%, 100%, and 200% buttons to your layout. These are pretty straight forward. Just be careful to put the buttons in the upper-left portion of your layout, or your users won't be able to find them. Another way: create a script that will 'toggle' to 75%, then 200%, then back to 100%. IDEA: Create two buttons "Reduce" & "Enlarge". Create two corresponding scripts that will determine the current setting, then change the zoom level 'down' to 75% or 100%, or change the zoom level 'up' to 100% or 200%. Hope this helps... Bob Kundinger
B-Man Posted June 4, 2002 Author Posted June 4, 2002 Bob, "Create two buttons "Reduce" & "Enlarge". Create two corresponding scripts that will determine the current setting, then change the zoom level 'down' to 75% or 100%, or change the zoom level 'up' to 100% or 200%." Sounds like a great Idea but how do I determine what my current Zoom setting is. That's my problem. I want to be able to use just a Zoom Up and Zoom Down button. Multiple zoom buttons are out of the question, I'm running out of screen realestate. Thanks for your help, Brian
Kundinger Posted June 4, 2002 Posted June 4, 2002 Hi Brian, To use "Reduce" and "Enlarge" buttons, you will need to create scripts for each. You will also need a 'global' field in your current file that will hold the current setting. If you are using a "Prefs" file, you will need a field to hold the 'users' zoom pref. To make it easier for you to understand. And, so I don't have to write out a lengthy description, I will send you a small sample file "Zoom.fp5". It was created in FMP 5.5. It will open in a 'locked' mode. To open the file in an 'unlocked' mode, you will need to close the file. Reopen the file with the 'Option' key (Mac) or 'Shift' key (WIN). When prompted, enter "A" as the password. Click the buttons... View the 'Define Fields'... View the 'ScriptMaker' scripts... View the 'Access Privileges'... You will see how I did this. Enjoy!!! Bob Kundinger
B-Man Posted June 5, 2002 Author Posted June 5, 2002 Bob, Thanks for the help. This is going to work great. I was trying to make it to complicated. It would still be nice if FMP would create a ZoomStatus. Thanks for the Help!! Brian
Recommended Posts
This topic is 8211 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now