« I remember when it was just a twinkle in my eye | Main| Tie a yellow ribbon around the old db server... »

Trumping my co-presenter


Chris Blatnick discusses using table borders to mimic OS-style field controls in Notes.  This is actually an old technique that I remember someone documenting on the BP forum back in the v3 days.  Very cool stuff, and it's nice to see Chris come up with the same solution.

I was going to reply that I was disappointed that IBM didn't simply give us a border control on fields, but then it occured to me that you DO get border controls on text paragraphs, so if you're already separating your fields with paragraph controls, you can skip all the table cell generation and just use the text border controls instead.

This has an added bonus: it's a spectacular way to separate individual fields at PIXEL LEVEL.  Click to check it out.
A picture named M2 Here's an example of what the result is.  There's a couple of nice advantages to the table cell controls.

1) I don't need individual rows for the field controls.  Just individual paragraphs.

2) I can use the border OUTSIDE controls to adjust spacing above and below the fields IN PIXELS!!!   Using tables you have to set up individual tables or separator rows.

3) I can use the border INSIDE controls to adjust spacing to the left and right inside the "virtual field border" IN PIXELS.  You can do this with the table controls, but it's a bigger pain.

At the bottom, you can see a native time/date control with the field's borders set to none.  We get the click-control inside the border, which is just fine with me.  I right-aligned it 'cause I think that looks cool.  


Things get interesting when you use this technique for a rich text control.  The RT field inherits the border controls automatically.  This might sound bad, but I'm not sure it is.  It's a really interesting effect when you, say, just set the bottom border.  Every paragraph gets an underline for the paragraph itself, which I bet could be really useful in some "dynamic table" purpose in a form.

I tried to use the rounded corner image technique for this, but "this property cannot be applied to a paragraph."  *sigh*  I doubt this is remedied in Notes 8, but I'll check tonight.

Comments

1 - @1 Chris,

I am curious to here what you mean when the image property does not work? It seems to work for me.

2 - I notice you did a shading effect with a background image as well on your screenshot. Very nice. Actually, the ability to control the background color is another reason the table solution is better. I should have made a note of that.

3 - @Richard...the image selection on the text paragraph controls give you the error message, "This property cannot be applied to a paragraph" when you select it. That is one reason why the table solution might be a better one (at least if you want to use an image). I'll admit that the text paragraph borders do make it easier though.

4 - Man...that is almost a perfect solution. It sucks that the image property doesn't work, since that can give a nice effect { Link } Thanks, Nathan...I admit defeat on this one!

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