Brian Dunning's FileMaker Custom Functions

cf_CenterWindowTop ( height )

Center window on creation using GTRR dialgo box

  Average rating: 3.8 (43 votes) Log in to vote

Stephen Dolenski   Stephen Dolenski - Show more from this author
Ocean West Inc.
http://fmforums.com

Share on Facebook Share on Twitter

  Sample input:
cf_CenterWindowTop ( 500 )
  Sample output:
Centers window based upon your screen dimensions

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

For times when you want to center a window that is created when using GTRR. Or when you don't want the visual window dance caused by an arrange script step.

The idea is here in the create new window portion of the GTRR dialog box in the Top and Left boxes place the corresponding CF and insert your width value in the Left box and your height in the top box. The window will be created centered. This eliminates a cleanup & align script later.

This will screen center the new window if the parent is smaller in either direction.

 

Comments

Eduardo   Eduardo, Riverside CA
Aug 24, 2014
Excellent Script, works great too, same as the cf_CenterWindowleft()
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: