Board index » delphi » A multi-colored listbox
Daryl L. Knowles
![]() Delphi Developer |
Wed, 28 Oct 1998 03:00:00 GMT
A multi-colored listboxQuoteschlemmer wrote: everything), but once you use ownerdrawn once, you'll get hooked. |
Daryl L. Knowles
![]() Delphi Developer |
Wed, 28 Oct 1998 03:00:00 GMT
A multi-colored listboxQuoteschlemmer wrote: everything), but once you use ownerdrawn once, you'll get hooked. |
schlemm
![]() Delphi Developer |
Thu, 29 Oct 1998 03:00:00 GMT
Re:A multi-colored listboxI'm creating an application that involves a fairly extensive list (up to 1000 Ideally, I would like the user to be able to scroll through the list and select I have heard of OwnerDraw listboxes... is this the way to do it? Thanks in advance... Ashley Bennett (reply to newsgroup or by email, or both :) |
gerry
![]() Delphi Developer |
Thu, 29 Oct 1998 03:00:00 GMT
Re:A multi-colored listboxOn 12 May 1996 01:58:12 GMT, schlem@home (schlemmer) wrote: Quote>I'm creating an application that involves a fairly extensive list (up to 1000 Two things, every listbox entry can have an associated object. You can Second, use the list box canvas.font.color and canvas.textout rather gerry |
Matthew McDermot
![]() Delphi Developer |
Sun, 01 Nov 1998 03:00:00 GMT
Re:A multi-colored listboxQuotegerry.g wrote: Have you tried setting MultiSelect to true and ExtendedSelect to False. There is also a PickList freeware component that puts an X in the left Cheers, Matthew -- ================================================================== |
- Anonymous
![]() Delphi Developer |
Mon, 02 Nov 1998 03:00:00 GMT
Re:A multi-colored listboxI'm sorry to sound like such an idiot, but how can I learn more about Any suggestions?? -bk Quoteschlem@home (schlemmer) wrote: |
John Nuric
![]() Delphi Developer |
Mon, 02 Nov 1998 03:00:00 GMT
Re:A multi-colored listboxOwner-draw is simple to implement if all you want to do is {procedure to draw one text item in the list} {procedure to set the colour according to the state of a This sets colors according to whether Internal is true or procedure SetItemColors ( Canvas: TCanvas; Hope this helps. BTW, with 1000 items in a list, your users may thank you if -- John Nurick e-mail: j.nur...@dial.pipex.com |
Bob Richards
![]() Delphi Developer |
Tue, 03 Nov 1998 03:00:00 GMT
Re:A multi-colored listboxIn article <4ne5dj$...@homer.alpha.net>, an173...@anon.penet.fi says... Quote
|
Daryl L. Knowle
![]() Delphi Developer |
Thu, 05 Nov 1998 03:00:00 GMT
Re:A multi-colored listboxIn article <4ne5dj$...@homer.alpha.net>, an173...@anon.penet.fi says... Quote
passed is the 0 based visible "row" index, not the index to the items array. This is a "gotcha" that got me on my first attempt and isn't covered very well in the documentation. |