Something like:
package
{
import flash.events.Event;
import mx.controls.ComboBox;
public class ComboBoxNoClose extends ComboBox
{
public function ComboBoxNoClose()
{
super();
}
public override function close(trigger:Event = null):void
{
if (trigger != null)
super.close();
}
}
}
--- In [email protected], "Sascha" <sbal...@...> wrote:
>
> Does anyone know how to modify the ComboBox so that it stays open
after
> selecting an item?
>
> I need such a ComboBox for a client that opens/closes only if the user
> clicks on the 'header area' of the ComboBox or that closes only if
clicked
> outside the ComboBox.
>
> The use case for this is that the ComboBox will have custom item
renderers
> that contain (for example) a CheckBox and a Label and the user should
be
> able to make several selections without the ComboBox closing
inbetween.
>
> I've made this before by wrapping all the stuff into a Panel and
changing
> the Panels height on close so that only the header is visible but that
> method is rather suboptimal, especially for skinning.
>
> Would be great if somebody has a workaround for this!
> Thanks in advance!
>
> Sascha
>