Ben Langhinrichs

Photograph of Ben Langhinrichs

IBM Champion logo

E-mail address - Ben Langhinrichs







Recent posts

Wed 14 Nov 2018

Short agents



Tue 2 Oct 2018

No cookies for you



Fri 28 Sep 2018

We need more than baby steps


December, 2018
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 29
30 31

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:



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.



Looks pretty snazzy.  Thanks, Julian!

Copyright © 2005 Genii Software Ltd.

What has been said:

No documents found