Hi how would be able to add items and colors to colorbox, using Borland C++ builder 6.0. info is stored in int *ps.
ps[0] - count of colors
ps[1]-ps[ps[0]] - codes of colors
in Color box would bet so see this info:
[Color] [number] [color code]
Hi how would be able to add items and colors to colorbox, using Borland C++ builder 6.0. info is stored in int *ps.
ps[0] - count of colors
ps[1]-ps[ps[0]] - codes of colors
in Color box would bet so see this info:
[Color] [number] [color code]
ps[1+ps[0]++] = aNewColour;
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
not quite that I'am asking. in ComboBox TComboBox->Item->Add("AnsiString"); is to enter new line in combobox, how can I do the same in TColorBox also showing color that I want. TColorBox->Items->Add("AnsiString"); adds only item, I need color also.