Thread: adding color to TColorBox

  1. #1
    Registered User
    Join Date
    Mar 2007
    Location
    Kaunas, Lithuania
    Posts
    14

    adding color to TColorBox

    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]

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

  3. #3
    Registered User
    Join Date
    Mar 2007
    Location
    Kaunas, Lithuania
    Posts
    14
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dynamic adding of Controls
    By WDT in forum C# Programming
    Replies: 5
    Last Post: 04-22-2009, 07:59 AM
  2. help with storing the last value of a loop and adding it?
    By colmustang in forum C Programming
    Replies: 4
    Last Post: 03-08-2008, 09:31 AM
  3. Adding nodes to a linked list
    By bluescreen in forum C Programming
    Replies: 4
    Last Post: 11-09-2006, 01:59 AM
  4. SVN Import Causes Crash
    By Tonto in forum Tech Board
    Replies: 6
    Last Post: 11-01-2006, 03:44 PM
  5. Java: Sorting and Adding a Row in Table
    By alphaoide in forum Tech Board
    Replies: 4
    Last Post: 08-12-2005, 08:22 PM