« Progressive Disclosure technique | Main| American Idle »

Progressive Disclosure Instructions


Okay, here's the gory details.  Brought to you by today's special guest: Simon Cowell.


First we start with the content table, setting the border to use a simple GIF image that has our rounded corners.  Note that we also have outside borders set to give us a little buffer space on the left and right.  This is how we make sure we get fluid rendering without a horizontal scroll bar.
HowToRoundBorders2.png

Then we set the thickness of that border to 8 on the top and bottom, because our rounded corner image is 16 pixels tall.  But we only need 1 pixel on the left and right, because all we want is the black edge.
HowToRoundBorders1.png

Next, we set the cell background to use a gradient GIF and size to fit.  This is what allows the smooth transition in the background of the borders from top to bottom.  Technically, we could also just use the built-in gradient with the correct RGB values.
HowToRoundBorders3.png

The legend layer is actually in the paragraph above the content table.  All the parameters are AUTO and the Z-index is 1.
HowToLayerSizing.png

Select the layer anchor, and bring up the text paragraph settings.  Right align the paragraph.  It will look like crap when you first do this.
HowToLayerAnchorAlign.png

Note: there's no particular reason to right-align this.  I just like using the right side of the screen because it's usually underused in Notes applications.  It also helps with large-screen fluid designs when you actually have content and controls over there to the right.

Then switch to the border controls, and put an outside right border that's fairly large.  We're using 400px in this case to scoot the legend back over.
HowToLayerAnchorBorder.png

Inside that layer, we have a single-cell table to contain the field.  The table has a simple border and a background color that's a bit lighter than the content table.
HowToLegendTableColor.png

Then we just use the standard approach for programmatic row switching.
HowToContentTableRows.png

and...
HowToContentTableName.png


The final result looks like this:
HowToResult.png

It probably sounds like a lot more work than it actually is.  Do it once, and then it's pretty much copy/paste from there.

Another idea that I'm going to try out is using this approach for a search box.  The search field itself can actually go in the legend box, and then that can wrap up an embedded view that shows the results.  I'm thinking that would look absolutely fantastic.

Comments

1 - Excellent as always! I figured you were using the outside border controls to do this. That's what it's all about! Emoticon

You're right...using that technique for search would look fabulous! I have nothing else to add...this is just great.

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Search 

Disclaimer 

Welcome to Escape Velocity!

Opinions expressed here by Nathan T. Freeman are not necessarily those of his employer. However, there's a decent chance they are, so check with them if you really want to know.

But really... do you need that kind of validation? Are the opinions expressed here in doubt?

MiscLinks