Thread: Assigning string to values

  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    4

    Assigning string to values

    Im Using Borland 6 C++

    Ok i have 4 ComboBoxes with strigns "Black Brown, Red" ect and 4 Panels. What i want to do is when Black is selected in the Panel, i want the Panel to light up as black, and so on with the rest of the colours...
    im not to sure how to go about this

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    "panel"? You mean the combobox? If so, you need to do an owner draw box.

    And this is a windows question, it belongs in that forum.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    I think he's speaking of the Borland's VCL & RAD interface, with that, I cannot help.

  4. #4
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    never mind. I see that he's talking about something else. You need to respond to the CBN_SELCHANGE notification. Simple as that. Change the color in that notification

    edit: No. I was right the first time. he means 4 panels on the combo box. OWNER DRAW!!!!!
    Last edited by FillYourBrain; 09-24-2003 at 07:37 AM.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. assigning ints into a string
    By shintaro in forum C++ Programming
    Replies: 7
    Last Post: 11-21-2008, 12:15 AM
  2. String issues
    By The_professor in forum C++ Programming
    Replies: 7
    Last Post: 06-12-2007, 09:11 AM
  3. Another overloading "<<" problem
    By alphaoide in forum C++ Programming
    Replies: 18
    Last Post: 09-30-2003, 10:32 AM
  4. lvp string...
    By Magma in forum C++ Programming
    Replies: 4
    Last Post: 02-27-2003, 12:03 AM
  5. Again Character Count, Word Count and String Search
    By client in forum C Programming
    Replies: 2
    Last Post: 05-09-2002, 11:40 AM