Control

This is a discussion on Control within the Windows Programming forums, part of the Platform Specific Boards category; I need some suggestions. What would be the closest control to a rich text box that would allow you to ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    184

    Control

    I need some suggestions. What would be the closest control to a rich text box that would allow you to make multiple, non-sequential line selections. I have a text file that displays perfect in a rich text box, but I need to be able to select specific lines, not a group of lines like a rich text box does. Any suggestions??????

    Thanks,
    Kendal

  2. #2
    Registered User
    Join Date
    Feb 2003
    Posts
    184
    One more thing. I used a listbox and it worked wonderful, except for the fact that I would also like to be able to change the font color of text within a line. Any suggestions on that??????

    Thanks,
    Kendal

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Make the listbox owner-drawn. Example of owner-drawn listbox here (bottom of page) which should give you some idea about how to proceed.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    184
    I am trying to do this in C#. Would that change my approach????

    Thanks,
    Kendal

  5. #5
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Originally posted by gvector1
    I am trying to do this in C#. Would that change my approach????

    Thanks,
    Kendal
    Yes. Your correct approach would be to ask your question in the C# board.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  6. #6
    Registered User
    Join Date
    Feb 2003
    Posts
    184
    Thanks Ken,

    You pointed me in the right direction with an owner drawn listbox. That is what I needed.

    Thanks,
    Kendal

    P.S. One more question. Is it possible to change the color of a substring of text within a line item in a listbox?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (Multiline) Edit Control Limit
    By P4R4N01D in forum Windows Programming
    Replies: 9
    Last Post: 05-17-2008, 12:56 PM
  2. line number on a rich edit control
    By rakan in forum Windows Programming
    Replies: 1
    Last Post: 02-18-2008, 07:58 AM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 08:55 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

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