PDA

View Full Version : Disable focus for combobox


epopov
03-15-2004, 09:39 AM
Hi,
how to make combobox not focusable?
I tried to set attribute 'focusable' for it but I had an ability to switch to combobox by TAB button.
Is there any other way?

antun
03-18-2004, 03:58 PM
Does setting the enabled attribute of combobox to false help?

-Antun

krunchy
06-26-2007, 01:21 PM
Bump...

In 3.3.3, combobox is focusable even if focusable=false

I even added

<method event="oninit">
<![CDATA[
this.interior.setAttribute("focusable",false);
this.bkgnd.setAttribute("focusable",false);
]]>
</method>

and that did nothing

anyone?

senshi
06-30-2007, 11:39 AM
Try to disable the focusable-attribute on the "text" of your "<combobox>":


<canvas debug="true" >

<handler name="onfocus" reference="LzFocus" >
Debug.write( "focus for:", LzFocus.getFocus() );
</handler>

<combobox id="cmb" >
<handler name="oninit" >
this.interior.cbtext.setAttribute( "focusable", false );
</handler>
</combobox>

</canvas>