adding color to TColorBox

This is a discussion on adding color to TColorBox within the C++ Programming forums, part of the General Programming Boards category; Hi how would be able to add items and colors to colorbox, using Borland C++ builder 6.0. info is stored ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,338
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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, 08:31 AM
  3. Adding nodes to a linked list
    By bluescreen in forum C Programming
    Replies: 4
    Last Post: 11-09-2006, 12:59 AM
  4. SVN Import Causes Crash
    By Tonto in forum Tech Board
    Replies: 6
    Last Post: 11-01-2006, 02: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21