What AutoComponentComboBox are you looking at? 

 The Flextras component supports this functionality, out of the box.  

http://www.flextras.com/?event=ProductHome&productID=10

 We also have a sample and some documentation on how to change the styling of 
the highlight.  

Sample: 
http://www.flextras.com/AutoCompleteComboBox/Samples/CustomRenderer/#app=9dea&ccaf-selectedIndex=1
 

Write up: 
http://www.flextras.com/blog/index.cfm/2010/1/19/Changing-the-Highlight-of-our-AutoCompleteComboBox

 Basically, you're on the right approach.  The Flextras AutoCompleteComboBox 
uses a custom list data class which lets the renderer reference the typed text. 
 

--- In flexcoders@yahoogroups.com, "Mete Atamel" <meteata...@...> wrote:
>
> What I want to do is simple but I'm a little lost in terms of what to 
> overwrite, so I'm hoping someone can guide me in the right direction. Say I 
> have the following list of countries in my standard Flex ComboBox:
> 
> Cameroon
> Canada
> Cayman Islands
> 
> When the user types in "C", I want the "C" in country names to be highlighted 
> (bold) in ComboBox drop-down. If the user types "Ca", then I want "Ca" to be 
> bold in drop-down list of countries and so on. 
> 
> I found a AutoComplete ComboBox on the net that helps with adding text input 
> to ComboBox and matching it against country names in the combo-box, but I'm 
> wondering how I can achieve the highlighting of matched characters in the 
> drop-down.
> 
> I'm assuming that I need to use item renderers and somehow dynamically change 
> the item renderer taking matched text input into account. Is this true or is 
> there another easier way of achieving this?
>


Reply via email to