yes, lots of spaces will do it.
On Sun, Nov 8, 2009 at 12:12 PM, Eric Martz <[email protected]>wrote:
> 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
>
--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
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