Jump to content

Scriptable ZOOMs


This topic is 6581 days old. Please don't post here. Open a new topic instead.

Recommended Posts

In my drawing software I can define a specific district of the drawing sheet and zoom to it in a way that makes that part of the document fill the screen.

In Microsoft Excel I can define a range of cells then return to that part of the document by clicking a macro (script) button.

In filemaker I can set the zoom level of a layout with a script, but :

Is there a way I can script a specific quadrant of a layout to zoom and fill the screen with just that quadrant?

Thanks.

Jarvis

Link to comment
Share on other sites

Thanks for that link Lee. The most remarkable part about it was that Ugo was asking a question rather than answering one! smile.gif

Jarvis, you could also consider a workaround by duplicating your original layout 4 times and then cropping out 3/4 of each one so that you are left with one quadrant. Then direct your script to the layout of the quadrant that you need. Not pretty, but may get you there.

I really hope that FM 7 will improve on the control of windows, menus, dialog boxes, floating toolbars, and other "right brain" stuff.

Good Luck,

Dan

Link to comment
Share on other sites

Here's another alternative. Create 4 "invisible" fields. Make them 1x1 pixle, no border, transparent. Don't allow entry. Put one in each corner that you want to zoom to (lower right, upper right, upper left, and lower left), and create a script that selects that field. The screen will jump to that part of the layout.

Dan

Link to comment
Share on other sites

Dan,

Your idea sounded really good, so I tried it.

I created four fields: CORNER 1 :::CORNER 2:::CORNER 3:::CORNER 4

then placed them far enough apart that they required scrolling to view.

I then produced the following scripts:

SCRIPT 1

GO TO FIELD (Corner 1)

SET ZOOM to 400%

SCRIPT 2

GO TO FIELD (Corner 2)

SET ZOOM to 400%

When I run the first script I ended up at CORNER 1

When I run the second script I ended up at CORNER 1 again.

Do you have any ideas about what I'm doing wrong?

I've attached a sample file in case you have time to look at it.

Thanks,

Jarvis

Link to comment
Share on other sites

This topic is 6581 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.