Solved

ListView lines

Posted on 2000-03-23
3
209 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Delphi 10 Seattle Dataset Actions 5 71
PDF library for Delphi 2 89
Sending Gmail through Delphi 3 69
find a node in VST 2 47
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

19 Experts available now in Live!

Get 1:1 Help Now