dbTalk Databases Forums  

Scripting Windows in Relational dbs

comp.databases.filemaker comp.databases.filemaker


Discuss Scripting Windows in Relational dbs in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Albert
 
Posts: n/a

Default Scripting Windows in Relational dbs - 06-19-2005 , 10:26 PM






Hi --

I've been trying to figure out how the Windows options work in scripting
various buttons in my relational database. In particular, the
documentation about "zooming" windows seems cryptic.

When you choose the "zoom window" option in a script, whixh "zoom" is it
emulating? Is this like scripting a "sort" function where FMP remembers
the last actual implementation ofthe command and builds that action into
the script? The behavior of scripts I'fve tried doesn;t seem to follwo
this route.

I;m in FMP 6

In short, If I am in File 1 and want a button to open File 2 into Layout
B, which commands do I need to enter into my script? Or, what window
gymnastics do I need to perform before making the script?

I don't see any way to specify the layout into which a file opens. What
am I missing?

a.

Reply With Quote
  #2  
Old   
Christoph L. Kaufmann
 
Posts: n/a

Default Re: Scripting Windows in Relational dbs - 06-20-2005 , 12:16 AM






Albert <asteg (AT) mindspring (DOT) com> wrote:

[FMP 6]
Quote:
When you choose the "zoom window" option in a script, whixh "zoom" is it
emulating?
The windows will expand as much as necessary to show every item on your
layout.

Quote:
In short, If I am in File 1 and want a button to open File 2 into Layout
B, which commands do I need to enter into my script?
You write a script in file 2 like:
Go To Browse mode
Go to layout X
Zoom window (or whatever)

Create a button on a layout in file 1 and use it to launch the script in
file 2.

--
http://clk.ch


Reply With Quote
  #3  
Old   
Matt Wills
 
Posts: n/a

Default Re: Scripting Windows in Relational dbs - 06-20-2005 , 05:46 AM



I am assuming that, by "choose zoom window option in a script," you mean
to use the Set Zoom Level script step, in which you set an option
specifying the zoom.

You are not emulating anything. You are zooming the active window to a
specific percentage, or, in the case of Zoom In/Out, moving to the next
preset level (also available by clicking the zoom controls at the bottom
left of the window).

In FM6, you script the controls of a particular window into that file.
For instance, in your scenario,

In File2, create a script

Go To Layout [YourLayout]
Set Zoom Level [Your Choice]

In File1, define a button to execute the external script you just created
in File2.

I believe you'll find that if you close the File2 window, it will revert
to a default 100% zoom (at least, that's what happens on my Mac), which is
why you need to script all of the necessary controls to be executed every
time the window is opened. It won't just stay that way as, for instance, a
sort or find is restored.

Matt

On 6/19/2005, Albert wrote:

Quote:
Hi --

I've been trying to figure out how the Windows options work in scripting
various buttons in my relational database. In particular, the
documentation about "zooming" windows seems cryptic.

When you choose the "zoom window" option in a script, whixh "zoom" is it
emulating? Is this like scripting a "sort" function where FMP remembers
the last actual implementation ofthe command and builds that action into
the script? The behavior of scripts I'fve tried doesn;t seem to follwo
this route.

I;m in FMP 6

In short, If I am in File 1 and want a button to open File 2 into Layout
B, which commands do I need to enter into my script? Or, what window
gymnastics do I need to perform before making the script?

I don't see any way to specify the layout into which a file opens. What
am I missing?

a.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.