SuperNTF In-Depth: Notes Custom Color Setting Tool
Category Show-n-Tell Thursday SnTT Lotus Notes SuperNTF OpenNTF
One of the great things about working on a project like SuperNTF is the opportunity it affords to do things "right", taking the best ideas I can find (many of them yours, thank you) and putting them into practice. In some cases, such as Julian Robichaux's OpenLog, very little changes in the implementation. In other cases, great features have been conceived out of seemingly humble origins. This is a story of one such case. Even though this particular feature isn't what you might call "essential" to the functioning of SuperNTF, I still think its cool and I didn't see a reason not to put it into the template.
Showing that it pays to stay on top of the Domino Blogosphere, I found inpiration for this particular gem on the Datatribe Softwerks Blog back in March. The gist of the post was pointing out how these custom color selections are stored on the user's system. As Mark Barton says:
It turns out they're stored in your Notes ini as the following - CustomColor1=FDF5EE, CustomColor2=F0D9C2 etc.
How cool is that? It means you can have your corporate colors rolled out via your ini file
...the Red and Blue are reversed. Why I don't know. So if you want red it needs to be FFFF00 rather 00FFFF
Anyone who has ever tried to use the custom color features of Notes when developing a database has probably felt pretty frustrated with how clunky and unintuitive it is to define *multiple* custom colors. One of my biggest headaches was trying to add a second custom color only to have my first one overwritten instead. Nevermind adding the allotted 16 colors. I only recently figured out how to use the tab key to change the focus in the dialog box to prevent this, but I doubt that is how it was intended to be used.
Click Read More to learn about a tool I created around Mark's insight that helps streamline the use of custom colors...
One of the great things about working on a project like SuperNTF is the opportunity it affords to do things "right", taking the best ideas I can find (many of them yours, thank you) and putting them into practice. In some cases, such as Julian Robichaux's OpenLog, very little changes in the implementation. In other cases, great features have been conceived out of seemingly humble origins. This is a story of one such case. Even though this particular feature isn't what you might call "essential" to the functioning of SuperNTF, I still think its cool and I didn't see a reason not to put it into the template.
Showing that it pays to stay on top of the Domino Blogosphere, I found inpiration for this particular gem on the Datatribe Softwerks Blog back in March. The gist of the post was pointing out how these custom color selections are stored on the user's system. As Mark Barton says:
Ever created your own custom colors in notes? Then lost them between sessions?
It turns out they're stored in your Notes ini as the following - CustomColor1=FDF5EE, CustomColor2=F0D9C2 etc.
How cool is that? It means you can have your corporate colors rolled out via your ini file
...the Red and Blue are reversed. Why I don't know. So if you want red it needs to be FFFF00 rather 00FFFF
Anyone who has ever tried to use the custom color features of Notes when developing a database has probably felt pretty frustrated with how clunky and unintuitive it is to define *multiple* custom colors. One of my biggest headaches was trying to add a second custom color only to have my first one overwritten instead. Nevermind adding the allotted 16 colors. I only recently figured out how to use the tab key to change the focus in the dialog box to prevent this, but I doubt that is how it was intended to be used.
Click Read More to learn about a tool I created around Mark's insight that helps streamline the use of custom colors...
So taking a cue from Mark Barton's contribution on the Datatribe Softwerks site, I whipped up a custom color settings form that would allow users to specify up to 16 color values on a Notes document, and then allow these choices to be written back to the user's Notes.ini file (with the appropriate conversions). There is even an "import" feature such that you can pull in your existing settings and save them in a new color settings document. These custom color settings documents then allows users to save, and share, complex color selections, and easily switch between them. This will really help a developer switching back and forth between projects, or a team of developers trying to ensure everyone's using the same colors for a given project.
The color selections even show up at the view level!
"So where do I get the code?" I hear you ask. This tool and much more Show-n-Tell-Thursday-worthy cool stuff is all part of my SuperNTF project on OpenNTF. The initial release (0.9.4) did have an incomplete and buggy version of this tool, but the version that works is in SuperNTF 0.9.5 and above. As of this writing I have not posted that release yet, but will do so by tomorrow. If you can't wait, send me a note and I'll send you the parts you need for this feature. As always, I welcome and encourage feedback, good or bad, so don't hold back your criticism and/or suggestions. The easiest way to do that is to submit a bug report or feature request on the OpenNTF project page for SuperNTF.


- 


Comments
Posted by Charles Robinson At 10:41:06 PM On 07/05/2007 | - Website - |
{ Link }
Posted by Tim Tripcony At 10:11:57 PM On 06/28/2007 | - Website - |
If you REALLY want to do kick ass color work, it's...
{ Link }
If you're going to include a generalized palette control, go there.
Posted by Nathan T. Freeman At 08:50:54 PM On 06/29/2007 | - Website - |
Working to get the release out soon
Posted by Kevin Pettitt At 10:24:49 PM On 06/28/2007 | - Website - |