January 10, 200422 yr 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
January 10, 200422 yr Thanks for that link Lee. The most remarkable part about it was that Ugo was asking a question rather than answering one! 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
January 11, 200422 yr 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
January 13, 200422 yr Author 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
Create an account or sign in to comment