Author: ben
Date: 2007-12-17 19:01:58 -0800 (Mon, 17 Dec 2007)
New Revision: 7581

Modified:
   openlaszlo/trunk/docs/src/developers/tutorials/laszlo_basics.dbk
Log:
Change 20071217-ben-l by [EMAIL PROTECTED] on 2007-12-17 13:23:38 PST
    in /Users/ben/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Set canvas color for the first live example in Laszlo Basics

New Features:

Bugs Fixed: LPP-5221 (partial) canvas bgcolor does not work in live examples in 
the dguide

Technical Reviewer: iorio (pending) 

Documentation:
To make a live example have a canvas color, specify the bgcolor in the 
programlisting's
parameter tag: 
   <parameter role="canvas">height: 100, width: 500, bgcolor: 
'green'</parameter>


Tests:
Notice that the first example in 
http://localhost:8080/trunk/docs/developers/tutorials/laszlo_basics.html
has a green background; the rest are white. 

Also note that other canvas on that page and on other pages in the dev
guide continue to have white backgrounds. 



Modified: openlaszlo/trunk/docs/src/developers/tutorials/laszlo_basics.dbk
===================================================================
--- openlaszlo/trunk/docs/src/developers/tutorials/laszlo_basics.dbk    
2007-12-18 02:58:58 UTC (rev 7580)
+++ openlaszlo/trunk/docs/src/developers/tutorials/laszlo_basics.dbk    
2007-12-18 03:01:58 UTC (rev 7581)
@@ -44,6 +44,7 @@
    <title>Empty Canvas</title>
    <programlisting language="lzx">
    <textobject><textdata 
fileref="programs/laszlo_basics-$1.lzx"/></textobject> 
+     <parameter role="canvas">height: 100, width: 500, bgcolor: 
'green'</parameter>
    </programlisting>
 </example>
 
@@ -55,8 +56,6 @@
 &lt;/canvas&gt;
 </programlisting><?lzx-edit programs/laszlo_basics-$1.lzx></example?>
 
-
-
 <para>For this simple example we have set the background color to green, just 
to show that it's there.  If you don't set a background color for the
 canvas, it will be rendered white.  (Throughout the rest of this tutorial no 
background color will be specified for the canvas.) Now let's
 put a window on a white canvas. 
@@ -65,7 +64,8 @@
 <example role="live-example">
    <title>Simple_window</title>
    <programlisting language="lzx">
-   <textobject><textdata 
fileref="programs/laszlo_basics-$2.lzx"/></textobject> 
+   <textobject><textdata fileref="programs/laszlo_basics-$2.lzx"/></textobject>
+     <parameter role="canvas">height: 100, width: 500</parameter>
    </programlisting>
 </example>
 


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to