Have you tried playing around with PopUpButton?
 
it might be what you're looking for,
-sam

 
On 10/17/06, Michael Labriola <[EMAIL PROTECTED]> wrote:


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], "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