Assigning string to values

This is a discussion on Assigning string to values within the C++ Programming forums, part of the General Programming Boards category; Im Using Borland 6 C++ Ok i have 4 ComboBoxes with strigns "Black Brown, Red" ect and 4 Panels. What ...

  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
    lyx
    lyx is offline
    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 08: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, 10:11 AM
  3. Another overloading "<<" problem
    By alphaoide in forum C++ Programming
    Replies: 18
    Last Post: 09-30-2003, 11: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, 12:40 PM

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