Sun Java System Messenger Express 6 2005Q4 Customization Guide

Modifying the Message Tool Bar

This section describes how to modify the Sun Java System Messenger Express message tool bar shown in Modifying the Message Tool Bar.

Figure 3–9 Sun Java System Messenger Express Message Tool Bar

Message Tool bar

You can modify the following in the Sun Java System Messenger Express message tool bar:

To Modify the Message Tool Bar

To modify the message tool bar, edit the appropriate files as follows:

Functionally, getToolbar() in msg_fs.html assembles the code and assigns the functions to the graphics by calling toolbar() in main.js, which takes care of items such as colors and text-only versions.

The getToolbar() function in msg_fs.html also calls folderSelection() in main.js to generate the drop-down folder list.

The functions assigned by getToolbar() in msg_fs.html to handle the tools are:

Example—Message Tool Bar Modifications

The example shown in Example—Message Tool Bar Modifications moves “New Message” to the right and abbreviates the text from “Previous” to “Prev.”

Figure 3–10 Example Message Tool Bar Modifications

In this figure the "Compose" tool is moved to the right and "Previous"
 is  abbreviated to "Prev."

Example—Message Tool Bar Modifications shows the necessary changes to be made in file msg_fs.html.


Example 3–9 Altering Message Tool Bar Layout (msg_fs.html)


function getToolbar() {
var s
...
main.WMtoolbar(
 null,null,’imx/spacer.gif’,5,1,false,
 i18n[’close’], ’parent.gotofolder()’, 
’imx/cancel.gif" alt="’ 
+i18n[’msg close’], 24, 24, true,
null,null,’imx/spacer.gif’,5,1,false,

i18n[’compose’], ’main.compose(”new”)’, 
’imx/compose.gif" alt="’ + i18n[’msg compose’], 24, 24, true) +
               
 <td\><img src="imx/spacer.gif" width="1" height="1"\></td\>\\n’ +
....


            

Example—Message Tool Bar Modifications shows the necessary changes to be made in file en/i18n.js.


Example 3–10 Altering Message Tool Bar Text ( en/i18n.js)


// Tool Bars
....
i18n[’previous’] = ’
               Prev