943,982 Members | Top Members by Rank

Ad:
Mar 31st, 2006
0

changing the colour of an individual item in a listbox?

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Katrix36 is offline Offline
16 posts
since Jan 2006
Mar 31st, 2006
0

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

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
Reputation Points: 28
Solved Threads: 4
Posting Whiz in Training
Lord Soth is offline Offline
233 posts
since Mar 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: Pascal Programmes
Next Thread in Pascal and Delphi Forum Timeline: connection between two pc using modem





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC