FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour combobox with different colored items
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
combobox with different colored items
Posted: Fri Sep 03, 2010 11:44 AM
I need a combobox with different colored items.
At the moment I use bitmaps to show the color. But depending on the font this could become bad looking.
Has someone an idea.

Best regards,
Otto


Code (fw): Select all Collapse
  oCbxFixBuchung := TComboBox():ReDefine(2050, { | u | If( PCount()==0, cItemFixBuchung, cItemFixBuchung:= u ) }, aCOMBO,,,;
            {||  ( nOption := cbxSaBu(oCbxFixBuchung:nAt) ,.T.)},{|Self|(  nOption := cbxSaBu(oCbxFixBuchung:nAt) )},,,, .F.,,  { (Setup():Daten() + "bmpsNet\booking"+"1.bmp"), (Setup():Daten() + "bmpsNet\booking"+"2.bmp"), (Setup():Daten() + "bmpsNet\booking"+"3.bmp"), (Setup():Daten() + "bmpsNet\booking"+"4.bmp"), (Setup():Daten() + "bmpsNet\booking"+"5.bmp"), (Setup():Daten() + "bmpsNet\booking"+"10.bmp"), (Setup():Daten() + "bmpsNet\booking"+"12.bmp"), (Setup():Daten() + "bmpsNet\booking"+"13.bmp"), (Setup():Daten() + "bmpsNet\booking"+"14.bmp"), (Setup():Daten() + "bmpsNet\booking"+"15.bmp"), (Setup():Daten() + "bmpsNet\booking"+"16.bmp"), (Setup():Daten() + "bmpsNet\booking"+"17.bmp"), (Setup():Daten() + "bmpsNet\booking"+"18.bmp"), (Setup():Daten() + "bmpsNet\booking"+"19.bmp"), ( Setup():Daten() + "bmpsNet\booking"+"20.bmp")  },,,, )
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: combobox with different colored items
Posted: Fri Sep 03, 2010 02:09 PM

Otto,

I would be concerned about using colors like this. Many people have colorblindness and they will not see what you see.

There is a website where you can run a simulation of different types of colorblindness. You just upload your graphic and the site converts it. Try it.

http://aspnetresources.com/tools/colorBlindness

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion