Floating Card Windows

This video will teach you all about using the new FileMaker 16 Card Window and show you how to take advantage of the fact that you can have a totally different position for the card window outside of the parent which where it belongs.

With a bit of creative FileMaker scripting you can create some really nice features for your FileMaker database.

Comments

Hey, Matt, I just opened the sample file on my Mac that has two displays. It doesn't work properly on two displays. The parent window pops up on the second display, and the floating window doesn't show at all. If I open it on my MacBook Pro with a single display, it works like the video. So, a developer should keep that in mind.

____________________
Rick Stringer
Rick Stringer Creative Services, LLC
www.rickstringer.com
Twitter: http://twitter.com/rick_stringer
Facebook: https://www.facebook.com/RickStringerCreativeServicesLLC

Good observation (about two monitors). I work with two monitors on Mac and Windows.
Pushing the windows to the left part of the monitor instead of the right does the job for me.
So, part of the script (loop section) "Show Card Windows" becomes:

New Window [ Style: Document; Name: Customers::id & "_parent"; Using layout: <Current Layout>; Top: 0; Left: - (Get
( WindowDesktopWidth ) + $shift); Close: Yes; Minimize: No; Maximize: No; Resize: No; Menu Bar: No; Dim parent window: No;
Toolbars: No ]
New Window [ Style: Card; Name: Customers::id; Using layout: <Current Layout>; Height: GetLayoutObjectAttribute ( "rect.windowsize" ;
"height" ); Width: GetLayoutObjectAttribute ( "rect.windowsize" ; "width" ); Top: ( Get ( RecordNumber ) - 1 ) * $windowHeight; Left: Get
( WindowDesktopWidth ); Close: Yes; Minimize: No; Maximize: No; Resize: No; Menu Bar: No; Dim parent window: No; Toolbars: No ]

With 'Left: - (Get ( WindowDesktopWidth ) + $shift)' being the position of the parent window and 'Left: Get ( WindowDesktopWidth )'
The above works on a PC but the Mac requires a little tweaking.

----
Lazarus Sismanis
Decision Group Inc.