Design Options For New FileMaker Window Activation

From Dwayne Wright PMP, PMI-ACP, CSM
Certified FileMaker Developer

WEB: www.dwaynewright.com
EMAIL: info@dwaynewright.com
TWITTER: dwaynewright
YOUTUBE: FileMakerThoughts

 

When the New Window command is executed via a script step or button action, you can exert precise control over the new window. This includes the options of where it will appear on the screen, its size and the title of the window itself. This is done via a specify button that brings up the Window Options dialog box.


As you may notice, the title of the window can be typed in or use a calculated result via the Specify button. One interesting option here is to use a CASE function to read the name of the base table used on the layout the new window is on (using a Get function) and then name the window accordingly. If you don’t name the new new window, it will have the name of the previous window, plus an incremental number. I should also note that there isn’t any unique limitation for window names. So you can have two or more windows called Clients and this might be confusing for some users.

The measurement options of a computer screen are defined in pixels. A pixel is generally considered the smallest element of measurement of a picture on a computer screen. A pixel is named from combining the word picture (pix) and element (el), at least that is what wikipedia says (grin).

The first two measurement options pretty much explain themselves because they are for setting the Height and Width of the new window. In many cases, I simply type in 50 within both options. This is because in my script, I follow the Set Window script step with an Adjust Window [resize to fit] command. So the window will adjust to the height and width borders I’ve defined for that layout. Again, with the ability to use a calculation to set these areas, your options are practically endless.


The position options, for the New Window script step, are defined from the top / left of the screen (on a Macintosh computer) or the application window (on a Windows based machine). This is one of the few areas that a FileMaker developer has to take into account when developing a solution that is used in a mixed platform environment.

BTW ... I should also mention that the setting of the window placement and size do not have to be specified. If this is the case, FileMaker will adopt as much of the setting of the original window it can when creating the new window. This makes it akin to what happens when you use the New Window menu command.

=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.

© 2008 - Dwayne Wright - dwaynewright.com

The material on this document is offered AS IS. There is NO REPRESENTATION OR WARRANTY, expressed or implied, nor does any other contributor to this document. WARRANTIES OF MERCHANT ABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY DISCLAIMED. Consequential and incidental damages are expressly excluded. FileMaker Pro is the registered trademark of FileMaker Inc.