changing the colour of an individual item in a listbox?

Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jan 2006
Posts: 16
Reputation: Katrix36 is an unknown quantity at this point 
Solved Threads: 0
Katrix36 Katrix36 is offline Offline
Newbie Poster

changing the colour of an individual item in a listbox?

 
0
  #1
Mar 31st, 2006
Hi all,

I have a listbox that displays a list records from a file. The records contain details about a film - title, certificate, genre, whether or not its rented out or in.

At the moment, when a film is set to - rented out, that individual film is put into a seperate listbox from the rest of the films. instead of moving the film to a different listbox, is there a way of changing the colour of the film title?
So if the film is in the shop then the title of the film is in blue, if the film is out on rent, then the title of the film is red.

Could someone please help me out.

Katrix36
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 233
Reputation: Lord Soth is an unknown quantity at this point 
Solved Threads: 4
Lord Soth's Avatar
Lord Soth Lord Soth is offline Offline
Posting Whiz in Training

Re: changing the colour of an individual item in a listbox?

 
0
  #2
Mar 31st, 2006
Hi,

You can use a TChecklistbox to show out videos by a check; you can use TListview to assign different icons near items or you can set normal TListbox to ownerdraw and render the text for each element by yourself as you like.

Loren Soth
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Pascal and Delphi Forum


Views: 4975 | Replies: 1
Thread Tools Search this Thread



Tag cloud for Pascal and Delphi
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC