[Laszlo-user] maybe bug of modaldialog

taocore taocore at laszlomail.com
Thu Aug 2 23:55:08 PDT 2007


Consider the code below:


<canvas debug="true">

   <dataset name="ccc">

      <item value="abc">abc</item>

      <item value="def">def</item>

   </dataset>


   <class name="xxx" extends="modaldialog"

          closeable="true" title="d">


     <datacombobox name="cb" itemdatapath="ccc:/item" 
selectfirst="false">

       <method event="onselected">

          classroot.ooo();

       </method>

     </datacombobox>

<!--

     <button>ok

      <method event="onclick">

         classroot.ooo();

      </method>

     </button>

-->

     <method name="ooo">

         var d = new modaldialog();

         d.setAttribute("closeable", true);

         d.open();

     </method>

   </class>


   <button>set

      <handler name="onclick">

          var x = new xxx();

          x.open();

      </handler>

   </button>

</canvas>


The modaldialog opened by onselected event can not be operated, but if 
opened by onclick event of button, it works well.

Is this a bug?


taocore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070802/d31a7899/attachment.html


More information about the Laszlo-user mailing list