Revision history [back]

click to hide/show revision 1
initial version

answered 2009-01-05 04:30:30 +0800

robertlee gravatar image robertlee

Dary, So what went wrong to stop you using overlapped windows?

Rob, I did following to allow the open event to be called: I use EchoEvent under the Events class.

<vbox>
    <bandbox id="bd">
        <bandpopup>
            <vbox>
                <hbox>
                    Search
                    <textbox />
                </hbox>
                <listbox width="200px"
                    onSelect='bd.value=self.selectedItem.label; bd.closeDropdown(); Events.echoEvent("open", combo, null);' >
                    <listhead>
                        <listheader label="Name" />
                        <listheader label="Description" />
                    </listhead>
                    <listitem>
                        <listcell label="John" />
                        <listcell label="CEO" />
                    </listitem>
                    <listitem>
                        <listcell label="Joe" />
                        <listcell label="Engineer" />
                    </listitem>
                    <listitem>
                        <listcell label="Mary" />
                        <listcell label="Supervisor" />
                    </listitem>
                </listbox>

            </vbox>
        </bandpopup>
    </bandbox>

    <hbox>
        <checkbox checked="false" onCheck="bd.autodrop = self.checked"
            label="auto drop popup when typing" />
        <checkbox checked="true"
            onCheck="bd.buttonVisible = self.checked" label="button visible" />
    </hbox>
       <button label="openTestV2" onClick="combo.open()"/>
       Combobox:
                       <combobox id="combo">
                       <comboitem label="Simple and Rich" />
                       <comboitem label="Cool!" />
                           <comboitem label="Thumbs Up!" />
                      </combobox>
</vbox>

Hope this helps.

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More