opensubscriber
   Find in this group all groups
 
Unknown more information…

j : jmol-users@lists.sourceforge.net 9 November 2009 • 2:12AM -0500

[Jmol-users] Echo background full width?
by Eric Martz

REPLY TO AUTHOR
 
REPLY TO GROUP






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
Jmol-users@list...
https://lists.sourceforge.net/lists/listinfo/jmol-users

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.