Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: How to add a colored square to each line of a tListView in FireMonkey?



Permlink Replies: 2 - Last Post: Aug 2, 2015 5:36 PM Last Post By: Graham Murt
Mike Shkolnik

Posts: 19
Registered: 3/11/13
How to add a colored square to each line of a tListView in FireMonkey?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 18, 2015 11:09 PM
I had it working easily in a tListBOX by changing the ItemStyle to colorlistboxitemstyle. Unfortunately, there is no such setting for tListVIEW. So how do I get a colored square on the line like I had in the tListBOX - without loading a bitmap?
Vladimir Krapot...

Posts: 19
Registered: 8/25/14
Re: How to add a colored square to each line of a tListView in FireMonkey?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 19, 2015 2:47 AM   in response to: Mike Shkolnik in response to: Mike Shkolnik
listView is highly customizable
The technique for it you can find here (second half of video)
http://www.youtube.com/watch?v=XRj3qjUjBlc
Graham Murt

Posts: 70
Registered: 5/15/07
Re: How to add a colored square to each line of a tListView in FireMonkey?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 2, 2015 5:36 PM   in response to: Mike Shkolnik in response to: Mike Shkolnik
Mike Shkolnik wrote:
I had it working easily in a tListBOX by changing the ItemStyle to colorlistboxitemstyle. Unfortunately, there is no such setting for tListVIEW. So how do I get a colored square on the line like I had in the tListBOX - without loading a bitmap?

Check out my TksListView - it has a various methods for drawing shapes as demonstrated here...

https://twitter.com/kscomponents/status/627240721632915456

Full source and demo included.

Graham

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02