Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ComboBox Text

Status
Not open for further replies.

billwatson

Instructor
Dec 18, 2002
2,312
CA
Hi

While there are several ways to set the text color of a combobox I am trying to get color control on a line by line basis.

item1 my blue car...text blue
item2 my red car ....text red

i cant seem to get a handle on it. Before I start to make my own combobox so I can do this does anyone have any idea of how I could alter the component to get this effect.
 
How's this?

Colorful enough for ya?


Warm up your ASViewer! Regards,

oldman3.gif


Don't worry, if my reply is wrong, BillWatson will clean it up for me!
 
yes that is the effect the client is looking for.
so, did you make it yourself or somehow adapt the UI component?
I can recreate that myself by adapting a dropdown menu but as i need many of these loaded dynamically from both XML and php sources I am hoping to just add some code to the component.
so if this an adaptation of the component please share the secret.
 
C'mon Bill, I would gracefully share my secret, and you'd get paid by your client?
If I did it, you certainely can!

Yes I did modify the component... And I'll give you a few clues...

Used the following to reset the labels...

my_combo.replaceItemAt(1, &quot;<font color='#9933FF'><i>Bill</i></font><b> <font color='#00FF00' face='ZeroHour'> Watson</b></font>&quot;);

But I did have to modify 2 lines in the FLabel (Global Skins) smartclip so that it would work. One is enabling htmlText (with a capital &quot;T&quot; - remember that one?) and the other has to do with color.

Now, if you can't make it work with ALL that info, well get ASViewer. Regards,

oldman3.gif


Don't worry, if my reply is wrong,
Bill Watson will clean it up for me!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top