5 Replies Latest reply on Feb 28, 2016 7:32 AM by tays01s

    Window zoom

    tays01s

      I have a runtime solution windows on which I'd like to put some user controlled window zoom. I'd like to do it with something like a pop-up menu, with a custom varlist reflecting the permitted FM zoom levels linked to a script (set zoom level [XXX %] ).

       

      To do this, do I need a new field on each table that is associated with each layout on which I have the zoom control? Or, is there method of not using a field?

        • 1. Re: Window zoom
          mikebeargie

          Using the filemaker default zoom in/out is the easiest way.

           

          A trigger script would be easy, however for it to be associated with a dropdown, you *would* need a field to attach the dropdown too, and the script would be more complicated (requiring you to use a long if/else if/etc.. statement to check and match each zoom level.

           

          Much easier would be a set of +/- zoom buttons that just used the existing zoom value and zoomed accordingly.

           

          EG, create a script called "zoom" that takes a parameter of "plus" or "minus":

          If [ $p = "plus" ]

            Set Zoom Level [ Zoom In ]

          Else If [ $p = "minus" ]

            Set Zoom Level [ Zoom Out ]

          End If

          Unfortunately the set zoom level does not take a custom value. But the above will zoom in the following ranges:

           

          Reduction values: 100%, 75%, 50%, or 25%.

           

          Enlargement values: 150%, 200%, 300%, or 400%.

          • 2. Re: Window zoom
            MaxEh

            I combine what Mike mentioned with a 'default zoom' script used during layout navigation. It just checks the screen resolution and sets a default zoom level from there. You may not need it on every layout. If the user wants it bigger or smaller then they can adjust by clicking the button.

            • 3. Re: Window zoom
              Markus Schneider

              there are feature requests for having other percentages for zooming, ie here:

              zoom levels - not just 150 etc.

              • 4. Re: Window zoom
                siplus

                what Mike said, plus throw in

                 

                Adjust Window [ Resize to Fit ]

                Scroll Window [ Home ]

                 

                at the end of the script.

                • 5. Re: Window zoom
                  tays01s

                  Thanks Mike and other suggestions,

                  I added a bit to the script:

                   

                  Set Variable [ $p; Value:Get ( ScriptParameter ) ]

                  If [ $p = "plus" ]

                  Set Zoom Level [ Zoom In ]

                  Else If [ $p = "minus" ]

                  Set Zoom Level [ Zoom Out ]

                  End If

                  Adjust Window [ Resize to Fit ]