I used this trick in the R5 mail template to change the color of the DiskSpace display (top left corner of the mail db in R5). Background is red if your over your quota, magenta if you are 10% near your quota, green (default notes green color) if otherwise.
The PostOpen event of the DiskUsage form has LotusScript to set a text variable by the name bgColor to "red" if user is over his disk quota, and to "magenta" if user is 10% near his quota. Default value for bgColor is "" (empty).
Note: If bgColor is set to "" then the form background color is not changed and remains what it currently is set to.
Do not forget to make the table color transparent and remove the borders so the form's background color shows thru.
I am sure there is no equivalent of this code in LotusScript or formula language.
This concept and variations of this idea can be used in lots of Notes applications to improve cosmetics (It works both in the Notes Client and from the Web).
This was first published in May 2001