RE: [flexcoders] Line inbetween comboItems

2007-03-23 Thread Alex Harui
Maybe some sort of custom itemRenderer.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanjaypmg
Sent: Friday, March 23, 2007 2:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Line inbetween comboItems

 

Hi All,

I have a combo box in my application and there a lots of items all are 
related to 4-5 categories.. Wht I wanted to do here I want a 
seperator sort of line once a category Items are finished 

I have tried it but didnt get success.

Pls suggest, How can i do the same?

Thanks in Advance,
Sanjay Sharma

 



RE: [flexcoders] Line inbetween comboItems

2007-03-23 Thread Trevor.Peace
No custom renderer necessary...  Just swap your ComboBox for a MenuBar,
and bind it to an array like this one:

 

 

[Bindable]

public var compList : Array = [{label: separating menu options,
children: 

[

{label: ya gotta, type: normal, value:
1},

{label: keep em, type: normal, value:
2},

{type: separator},

{label: separated, type: normal, value:
3}

]},

];

 

 

 

Peace out...



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Friday, March 23, 2007 10:59 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Line inbetween comboItems

 

Maybe some sort of custom itemRenderer.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanjaypmg
Sent: Friday, March 23, 2007 2:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Line inbetween comboItems

 

Hi All,

I have a combo box in my application and there a lots of items all are 
related to 4-5 categories.. Wht I wanted to do here I want a 
seperator sort of line once a category Items are finished 

I have tried it but didnt get success.

Pls suggest, How can i do the same?

Thanks in Advance,
Sanjay Sharma