I've made a short test and that seems to work so far. Thanks for the hint Ben!
I almost started to try writing a custom component from a Button and a List wrapped into a UIComponent as Alex Harui suggested in a message I've found but seems that that's not necessary. Sascha From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ben Reynolds Sent: Thursday, April 16, 2009 10:34 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Making ComboBox stay open after item select? 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 flexcoders@yahoogroups.com, "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