Thank you Mike, that helps, and saves a lot of time trying to force the combobox to do something that was not made to do.

 

Michael

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Labriola
Sent: Monday, October 16, 2006 3:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Multiline ComboBox

 


Michael,

Problem is that ComboBase uses a textInput control to display the
currently selected item. The TextInput is limited to displaying a
single line of text.

You could certianly change this, but, it seems as though it will
require extending ComboBox, not just making an itemRenderer.

--Mike

--- In [EMAIL PROTECTED]ups.com, "Michael" <[EMAIL PROTECTED].> wrote:
>
> Does anyone know how I can get my combobox to display 2 lines as
opposed to
> only one line. I can display 2 lines in the dropdown area, but not
in the
> main combobox display.
>
>
>
> Here is what I have so far:
>
>
>
> public function initRenderer():void
>
> {
>
> var myRenderer:ClassFactory = new ClassFactory(mx.controls.Text);
>
> myRenderer.properties = {maxHeight:60};
>
> this.cb.itemRenderer = myRenderer;
>
> }
>
>
>
> <mx:ComboBox id="cb" fontSize="18" maxWidth="{this.width}"
>
> dataProvider="{cbData}"
>
> labelField="{cbLabelField}"
>
> selectedIndex="{getSelectedIndex()}"
>
> change="comboBoxChange(cb.selectedItem)"/>
>
>
>
> Thanks in advance,
>
>
>
> Michael
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to