[Laszlo-checkins] r11772 - openlaszlo/trunk/docs/src/developers/programs

jcrowley@openlaszlo.org jcrowley at openlaszlo.org
Fri Nov 14 02:36:53 PST 2008


Author: jcrowley
Date: 2008-11-14 02:36:51 -0800 (Fri, 14 Nov 2008)
New Revision: 11772

Modified:
   openlaszlo/trunk/docs/src/developers/programs/color-$3.lzx
Log:
Change 20081113-laszlo-4 by laszlo at T43-L3XEXMW on 2008-11-13 02:16:21 EST
    in /home/laszlo/src/svn/openlaszlo/trunk-liquid
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Color example 3 gives warnings.

New Features:

Bugs Fixed: LPP-7193 - Color example 3 gives warnings.

Technical Reviewer: lou at louiorio.com
QA Reviewer: ptw
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details: Applied Tucker's change, which updates
    and improves the example in a number of ways.

Tests: Run the affected file -- it should now
    be to specification per the comment on the
    bug.



Modified: openlaszlo/trunk/docs/src/developers/programs/color-$3.lzx
===================================================================
--- openlaszlo/trunk/docs/src/developers/programs/color-$3.lzx	2008-11-14 09:00:08 UTC (rev 11771)
+++ openlaszlo/trunk/docs/src/developers/programs/color-$3.lzx	2008-11-14 10:36:51 UTC (rev 11772)
@@ -1,80 +1,80 @@
-
 <canvas width="860" debug="true">
 
-<stylesheet>
+  <stylesheet>
     #vName {
     bgcolorName : "blue";
     }
     
     #tName {
-    fgcolorName : "blue";
+    fgcolorName : "white";
     }
 
-    #vRGB {
-    bgcolorRGB : "#0000FF";
-    }
-    
-    #tRGB {
-    fgcolorRGB : "#0000FF";
-    }
-    
     #vHex {
     bgcolorHex : "#0000FF";
     }
-
+    
     #tHex {
-    fgcolorHex : "#0000FF";
+    fgcolorHex : "#FFFFFF";
     }
 
-    #vParens {
-    bgcolorParens : "rgb(0,0,255)";
+    #vRGB {
+    bgcolorRGB : "rgb(0,0,255)";
     }
     
-    #tParens {
-    fgcolorParens : "rgb(0,0,255)";
+    #tRGB {
+    fgcolorRGB : "rgb(255,255,255)";
     }
     
-</stylesheet>
+  </stylesheet>
 
-<wrappinglayout axis="x" spacing="10"/>
+  <view layout="axis: y; spacing: 10" >
+    <view layout="axis: x; spacing: 10">
 
-    <view id="vName" height="100" width="100" bgcolor="$style{'bgcolorName'}"/>
-    <text id="tName" font="verdana,sans-serif" fontsize="30" fontstyle="bold" height="40" fgcolor="$style{'fgcolorName'}">Blue1</text>
+      <view id="vName" height="50" width="200" bgcolor="$style{'bgcolorName'}"
+            oninit="Debug.debug('Debug.explainStyleBindings(%w)', this);
+                    Debug.explainStyleBindings(this)">
+        <text id="tName" fontsize="30" fgcolor="$style{'fgcolorName'}"
+              oninit="Debug.debug('Debug.explainStyleBindings(%w)', this);
+                      Debug.explainStyleBindings(this)">style name</text>
+      </view>
+      <view id="vHex" height="50" width="200" bgcolor="$style{'bgcolorHex'}"
+            oninit="Debug.debug('Debug.explainStyleBindings(%w)', this);
+                    Debug.explainStyleBindings(this)">
+        <text id="tHex" fontsize="30" fgcolor="$style{'fgcolorHex'}"
+              oninit="Debug.debug('Debug.explainStyleBindings(%w)', this);
+                      Debug.explainStyleBindings(this)">style #hex</text>
+      </view>
+      <view id="vRGB" height="50" width="200" bgcolor="$style{'bgcolorRGB'}"
+            oninit="Debug.debug('Debug.explainStyleBindings(%w)', this);
+                    Debug.explainStyleBindings(this)">
+        <text id="tRGB" fontsize="30" fgcolor="$style{'fgcolorRGB'}"
+              oninit="Debug.debug('Debug.explainStyleBindings(%w)', this);
+                      Debug.explainStyleBindings(this)">style rgb()</text>
+      </view>
+    </view>
+    <view layout="axis: x; spacing: 10">
 
-    <view id="vRGB" height="100" width="100" bgcolor="$style{'bgcolorRGB'}"/>
-    <text id="tRGB" font="verdana,sans-serif" fontsize="30" fontstyle="bold" height="40" fgcolor="$style{'fgcolorRGB'}">Blue2</text>
+      <view id="explicitVName" height="50" width="200" bgcolor="blue">
+        <text id="explicitTName" fontsize="30" fgcolor="white">value name</text>
+      </view>
+      <view id="explicitVHex" height="50" width="200" bgcolor="#0000FF">
+        <text id="explicitTHex" fontsize="30" fgcolor="#FFFFFF">value #hex</text>
+      </view>
+      <view id="explicitVRGB" height="50" width="200" bgcolor="rgb(0,0,255)">
+        <text id="explicitTRGB" fontsize="30" fgcolor="rgb(255,255,255)">value rgb()</text>
+      </view>
+      <view id="explicitVExpression" height="50" width="200" bgcolor="255">
+        <text id="explicitTExpression" fontsize="30" fgcolor="${~0}">value expr</text>
+      </view>
+    </view>
+  </view>
+  
+  <script>
 
-    <view id="vHex" height="100" width="100" bgcolor="$style{'bgcolorHex'}"/>
-    <text id="tHex" font="verdana,sans-serif" fontsize="30" fontstyle="bold" height="40" fgcolor="$style{'fgcolorHex'}">Blue3</text>
+  </script>
 
-    <view id="vParens" height="100" width="100" bgcolor="$style{'bgcolorParens'}"/>
-    <text id="tParens" font="verdana,sans-serif" fontsize="30" fontstyle="bold" height="40" fgcolor="$style{'fgcolorParens'}">Blue4</text>
-
-    <view id="explicitVName" height="100" width="100" bgcolor="blue"/>
-    <text id="explicitTName" font="verdana,sans-serif" fontsize="30" fontstyle="bold" height="40" fgcolor="blue">Blue5</text>
-    
-    <view id="explicitVRGB" height="100" width="100" bgcolor="#0000FF"/>
-    <text id="explicitTRGB" font="verdana,sans-serif" fontsize="30" fontstyle="bold" height="40" fgcolor="#0000FF">Blue6</text>
-
-    <view id="explicitVHex" height="100" width="100" bgcolor="0x0000FF"/>
-    <text id="explicitTHex" font="verdana,sans-serif" fontsize="30" fontstyle="bold" height="40" fgcolor="0x0000FF">Blue7</text>
-
-    <view id="explicitVParens" height="100" width="100" bgcolor="rgb(0,0,255)"/>
-    <text id="explicitTParens" font="verdana,sans-serif" fontsize="30" fontstyle="bold" height="40" fgcolor="rgb(0,0,255)">Blue8</text>
-
-<script>
-Debug.write("1=styled by blue");
-Debug.write("2=styled by #0000FF");
-Debug.write("3=styled by 0x0000FF");
-Debug.write("4=styled by rgb(0,0,255)");
-Debug.write("5=explicitly named blue");
-Debug.write("6=explicitly colored #0000FF");
-Debug.write("7=explicitly colored 0x0000FF");
-Debug.write("8=explicitly colored rgb(0,0,255)");
-</script>
-
 </canvas>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2008 Laszlo Systems, Inc.  All Rights Reserved.                   *
-* Use is subject to license terms.                                            *
-* X_LZ_COPYRIGHT_END ****************************************************** -->
+     * Copyright 2008 Laszlo Systems, Inc.  All Rights Reserved.                   *
+     * Use is subject to license terms.                                            *
+     * X_LZ_COPYRIGHT_END ****************************************************** -->



More information about the Laszlo-checkins mailing list