Need a list control that wraps text and increases hieght of row


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: Need a list control that wraps text and increases hieght of row

  1. #1
    Join Date
    Feb 2013
    Posts
    3

    Need a list control that wraps text and increases hieght of row

    I've spent the last couple of days researching the net for a way to make a list control wrap text and increase the row height so the entire text can be read. The "gurus" say it can't be done. I don't understand this since all controls inherit from control. Obviously, the functionality I need must be able to be added. Besidethat, I've seen what I believe to be a list control of some type that has the functionality I need.

    I started to make my own control but got smart before I wasted too much time.

    I'm open to discussion on this as well as help so I can get this project going again.

    I am working on a selection form which will allow the user to read enough of the presented data to select the record they want to work on. This is for a Commercial Driver Log program. The data is in a flat text file and the records look similar so the more information available to the user the better (within reason).

    My requirement are;
    -2 or more columns,
    -the columns must not expand horizontally,
    -text must wrap in cell and expand row vertically,
    -there must be no cursor,
    -user cannot select text,
    -click of row selects entire row (can't disable control or I loose events),
    -select has custom backcolor.

    I know that I can change backcolor in the paint event but when I set OwnerDraw in ListView it screws up my data strings and only shows the first column value enclosed in braces.
    I can get rid of the cursor using API's but the user can still select text.

    Any ideas, discussions or help will be greatly appreciated.

    One more thing. I don't know C# well enough to convert code. So if anyone has any ideas in C#,be warned, I will have to pick your brains about to the logic involved so I can code it in VB.Net.

    I'm including a picture of the control I want to emulate. As you can see, it contains 2 or 3 columns with the 3rd column wrapping the text.
    Attached Images Attached Images

Similar Threads

  1. Checkbox Controls Wraps !
    By rkbnair in forum ASP.NET
    Replies: 4
    Last Post: 06-25-2010, 06:08 PM
  2. Replies: 4
    Last Post: 12-08-2002, 12:56 PM
  3. Outlook Mail item wraps the text.
    By Srinivas in forum VB Classic
    Replies: 0
    Last Post: 05-11-2001, 05:35 PM
  4. What speed increases can I expect from C++
    By Neal Andrews in forum authorevents.morrison
    Replies: 1
    Last Post: 11-14-2000, 11:09 AM
  5. Text color in List Box control
    By Andy in forum C++
    Replies: 1
    Last Post: 08-08-2000, 03:37 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center