Jump to content
  • entries
  • comments
  • views

FM13 Best Of: Slide Controls as Refresh Enclosures

Sign in to follow this  
John Sindelar


FileMaker 13 Slide Controls + Refresh Object = Faster Layouts

For starters, don’t forget about the new script step “Refresh Object”– I did.

I had some icons whose “hide” status was based on the visibility calc :

GetLayoutObjectAttribute ( “Home” ; “isFrontPanel” )

FileMaker 13 Slide Control used as a refresh enclosure on a layout.

Using a single panel as a refresh enclosure.

Now, isFront doesn’t just evaluate as slide panels move around so I’d added a Refresh Window script step to get them to behave. However, the new script step “Refresh Object” applies the refresh to any objects enclosed in a refreshed object as well. So now I’ve gathered the icons in a one-panel FileMaker 13 slide control and applied the refresh to that object. Probably less weight than refreshing the whole window, though I don’t know how much.

(For more on how “refresh window” can be a performance killer–especially if you’re flushing the cache–see Daniel Wood’s classic “Ditch those flush caches“.)

Another benefit of this is that any “hide” attributes common to all icons can now be applied to the slide panel just once, instead of expressed once for each icon. Similarly, sliding can be applied to the enclosure in many cases, vs what’s inside it.

Oreste Schiavone has been doing these kinds of enclosure for years using tabs–we showed off his ideas around this in Year In Review at DevCon 2010–but tabs have the minor disadvantage of having a tab leaf (the name of the tab) to manage. Slide controls can have have additional panels that users can’t get to outside of layout mode (if you disable swipe and navigation dots) and some folks may find those hidden panels a useful place for instructions or developer-notes about the contents of the slide control.

The post FM13 Best Of: Slide Controls as Refresh Enclosures appeared first on SeedCode.


Sign in to follow this  


Recommended Comments

There are no comments to display.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.