Hiding the map icon viewport in containers & agents

Tinderbox Icon

Hiding the map icon viewport in containers & agents

Hiding the map icon viewport in containers & agents

One last trick, not really related to the above but useful for tidying up a map. In the outline, notice note 'nn' is a container but in the map, its icon (bottom left) has no viewport. How's that done? It's actually quite simple - we set $TitleHeight = $Height, effectively hiding the viewport. $TitleHeight controls the vertical depth of the icon caption area.. Notice that the bottom corners of the 'nn' icon are still rounded so the sharp-eyed should still be able to spot the container-masquerading-as-note on their map. If you lose track of 'hidden' containers, just open the map as an outline and look for any item with a disclosure ('flippy') triangle to the left of the note name.

Fine, but now we've hidden the viewport in 'nn' we can't drill down as we can't double-click the viewport area. Another little trick: select 'nn' and then use shortcut [Cmd]+[Opt]+[down-arrow]. Boom! The 'nn' container opens and we see the 'oo' icon. Go back up a level and 'nn' is unchanged and still hiding its content.

The agent 'ag' illustrates the same viewport hiding trick as shown with note container 'nn'. Notice how the agent retains the rounded corners at the top of its icon (for a container the rounded corners are at the bottom of the icon). I also found with the agent that if we set $TitleHeight = $Height, then the (display) name is written a bit too close to the top margin of the icon. Happily, if instead we set $TitleHeight = $Height - 0.1, it looks fine. As that also looks good with containers, using the latter expression is a better one-size-fits-all code for viewport 'hiding'. Note that as borders are drawn inside the width/height of the icon, if you set big borders you may need to reset - for agents at least - the $TitleHeight.



Possible relevant notes (via "Similar Notes" feature):

Up: Outline vs. Map Interface
Previous: Adding / Moving Items   

A Tinderbox Reference File : Misc. User Interface Aspects : Outline vs. Map Interface : Hiding the map icon viewport in containers & agents aTbRef Site Map

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox