[Laszlo-checkins] r12359 - in openlaszlo/trunk/docs/src/developers: . programs

lou@openlaszlo.org lou at openlaszlo.org
Thu Jan 8 05:03:25 PST 2009


Author: lou
Date: 2009-01-08 05:02:55 -0800 (Thu, 08 Jan 2009)
New Revision: 12359

Added:
   openlaszlo/trunk/docs/src/developers/programs/viewresource.lzx
Modified:
   openlaszlo/trunk/docs/src/developers/media-resources.dbk
Log:
Change 20090108-lou-W by lou at loumac.local on 2009-01-08 08:46:18 AST
    in /Users/lou/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Chapter 18. Media Resources: add note and example of setting a resource on a view with a subview

Bugs Fixed: LPP-4371

Technical Reviewer: max
QA Reviewer: (pending)
Doc Reviewer: (pending)

Details: You cannot set a resource on a view with subviews: add
note and code example

Tests: visual verify



Modified: openlaszlo/trunk/docs/src/developers/media-resources.dbk
===================================================================
--- openlaszlo/trunk/docs/src/developers/media-resources.dbk	2009-01-08 12:51:30 UTC (rev 12358)
+++ openlaszlo/trunk/docs/src/developers/media-resources.dbk	2009-01-08 13:02:55 UTC (rev 12359)
@@ -210,14 +210,24 @@
     <para>Or they may be declared externally as first-class objects
     themselves:</para>
     <example role="live-example">
-      <title>Declaring a resource</title>
+      <title>Importing a resource</title>
       <programlisting language="lzx">
         <textobject>
           <textdata fileref="programs/media-resources-$2.lzx" />
         </textobject>
       </programlisting>
     </example>
-   
+    <note><para>You cannot set a resource on a view with subviews. The following
+    code will result in an error:</para>
+    </note>
+    <example role="live-example">
+      <title>Setting a resource on a view with subviews</title>
+      <programlisting language="lzx">
+        <textobject>
+          <textdata fileref="programs/viewresource.lzx" />
+        </textobject>
+      </programlisting>
+    </example>
     <section>
       <title>Resources are not views</title>
       <para>Note that a 

Added: openlaszlo/trunk/docs/src/developers/programs/viewresource.lzx


Property changes on: openlaszlo/trunk/docs/src/developers/programs/viewresource.lzx
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native



More information about the Laszlo-checkins mailing list