I am placing a "banner" of text across the top of Jmol like this:
http://www.umass.edu/molvis/tests/banner.html

(Jmol's background is black; the echo has a white background with black text.)

I want the white background of the banner to extend the full width of 
Jmol. What is the best way to do this?

Currently, I am fudging this semi-satisfactorily by prepending a 
block of spaces to the text of the first line of the echo.

bannerSpaces = "          " # 10 spaces

function showBannerAcrossTop(bannerMessage, bannerMessage2)
{
        set echo banner_echo [50 100 %] # top center
        background echo white
        set echo banner_echo center
        color echo black
        font echo @echoFontSize sansserif bold
        # spaces are to widen the background area of the banner to full Jmol 
width.
        fullMessage = bannerSpaces + bannerMessage + bannerSpaces
        fullMessage = fullMessage + "|" + bannerMessage2
        echo @fullMessage
}

Thanks, -Eric



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to