Sun Java System Messenger Express 6 2005Q4 Customization Guide

Example—Main Function Tabs Modifications

The example shown in Example—Main Function Tabs Modifications moves the Options tab to the right, and changes the text of its tab label to “Preferences.”

Figure 3–2 Example Main Function Tabs Modifications

In this figure the Options tab has been  moved to the right end
of the toolbar, and the text of the tab "Label" has been  changed to "Preferences."

Example—Main Function Tabs Modifications shows the necessary changes to be made in file main.js (layout).


Example 3–1 Altering Function Tabs Layout ( main.js)


function toolFrame() {
.....
’
               <td width=30%\>’ + nbsp + ’</td\>\\n+
tab(i18n[’options’], state == ’Options’, ’selectOptions()’) +
....
}


            

Example—Main Function Tabs Modifications shows the necessary changes to be made in file en/i18n.js (tab labels).


Example 3–2 Altering Function Tabs Labels (en/i18n.js)


// Tabs
i18n[’folders’] = ’Folders’
i18n[’message’] = ’Message’
i18n[’pab’] = ’Addresses’
i18n[’options’] = ’
               Preferences