Solved

ListView lines

Posted on 2000-03-23
3
210 Views
Last Modified: 2010-04-04
Hi guys,

Is there any way I can only draw the grid lines in a TListView when I want to?  EG.  I add a couple of items to the view without a grid line, then I add a couple more with the grid lines on.  Is that possible to do at all?

Thanks if you can help.

Stu.
0
Comment
Question by:Stuart_Johnson
3 Comments
 
LVL 1

Accepted Solution

by:
runebj earned 50 total points
ID: 2652251
Yes it's possible. You have to set the OwnerDraw property to True and handle the OnCustomDraw, OnCustomDrawItem, and OnCustomDrawSubItem events to draw the ListView. You may also want to experiment with the OnAdvancedCustomDraw, OnAdvancedCustomDrawItem, and OnAdvancedCustomDrawSubItem events.

Sorry I don't have any code to get you started.

runebj
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 2652353
Hi Stu, have you seen this site already? Take a look at TAdvListView:

http://www.tmssoftware.com/
0
 
LVL 6

Author Comment

by:Stuart_Johnson
ID: 2754010
Thanks for that, and sorry it took so long to grade your answer.

Stu.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now