Diff of /docs/trunk/publican/oodialog/en-US/eventNotification.xml [r8457] .. [r8458]  Maximize  Restore

Switch to side-by-side view

--- a/docs/trunk/publican/oodialog/en-US/eventNotification.xml
+++ b/docs/trunk/publican/oodialog/en-US/eventNotification.xml
@@ -7011,8 +7011,34 @@
   </listitem>
   <listitem>
   <para>
-    The event-handling method connected to EXPANDED or EXPANDING receives three arguments: the control ID of the tree
-    view control, the tree item expanded or collapsed, and a string that indicates whether the item was expanded or
+    The event-handling method connected to the EXPANDED event receives three arguments: the control ID of the tree view
+    control, the tree item expanded or collapsed, and a string that indicates whether the item was expanded or collapsed.
+    Recall that the EXPANDED notification is sent <emphasis role="italic">after</emphasis> the item has been expanded or
+    collapsed. Example:
+
+  <programlisting>
+  <![CDATA[
+  ::method onExpanded unguarded
+    use arg id, item, what
+    say "The item with handle" item "has been" what
+
+    return 0
+
+  /*
+    Possible output:
+
+    The item with handle 0x00000000001AD3E0 has been COLLAPSED
+  */
+  ]]>
+  </programlisting>
+
+  </para>
+  </listitem>
+  <listitem>
+  <para>
+    The event-handling method connected to the EXPANDING event receives three arguments: the control ID of the tree view
+    control, the tree item expanded or collapsed, and a string that indicates whether the item was expanded or collapsed.
+    Recall that the EXPANDING notification is sent <emphasis role="italic">before</emphasis> the item has been expanded or
     collapsed. Example:
 
   <programlisting>
@@ -7022,6 +7048,12 @@
     say "Item with handle" item "is going to be" what
 
     return 0
+
+    /*
+      Possible output:
+
+      The item with handle 0x00000000001AD680 has been EXPANDED
+    */
   ]]>
   </programlisting>
 

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks