Ben Langhinrichs

Photograph of Ben Langhinrichs

E-mail address - Ben Langhinrichs







Recent posts

Thu 18 Feb 2021

Getting the point(s) across with Domino, O365, and Outlook365



Mon 15 Feb 2021

Exciton Boost 4.6.3 released



Mon 1 Feb 2021

REST plus RPC: storing actions as JSON or JavaScript


February, 2021
SMTWTFS
 01 02 03 04 05 06
07 08 09 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28

Search the weblog





























Genii Weblog

Rounded table corners in Notes client

Mon 10 Oct 2005, 06:22 PM



by Ben Langhinrichs
Julian posted an interesting post today called Rounded Tables in Notes.  I had seen the border image option, but I had never realized how it worked for something like rounded table borders.  Of course, once I saw it, I had to add the ability to create these to our Midas Rich Text LSX.  I create a little gif image:

Inline GIF image

and then I added it as an image resource to a test database.  After adding a bit of capability to Midas, I wrote the following script.

Sub Initialize
   Dim session As New NotesSession
   Dim db As NotesDatabase
   Dim doc As NotesDocument
   Dim rtitem As New GeniiRTItem
 
   Set doc = session.DocumentContext
   Call rtitem.ConnectBackend(doc.Handle, "Body")
 
   Set rtchunk = rtitem.DefineChunk("Everything")
   Call rtitem.Everything.AppendTable(1, 1, |
BorderStyle="Image" 
BorderImage="rounded1.gif" 
BorderThickness="5" 
CellBorder="NNNN"|, "Table created by Midas using border image")
   rtitem.Save
End Sub

I have included the look of the table created in the Notes client, but, alas, the Domino HTML renderer does not show the border image.  I'm not sure why not, since I think CSS would allow it.  Ah well, I guess I can add that to the HTML rendering engine tomorrow.

Inline GIF image

Looks pretty snazzy.  Thanks, Julian!

Copyright 2005 Genii Software Ltd.

What has been said:

No documents found