| View previous topic :: View next topic |
| Author |
Message |
Adam Guest
|
Posted: Fri Apr 14, 2006 1:03 am Post subject: item font and color of listbox |
|
|
How to make items of a listbox has different fonts and colors? thanks |
|
| Back to top |
|
 |
JD Guest
|
Posted: Fri Apr 14, 2006 3:03 am Post subject: Re: item font and color of listbox |
|
|
"Adam" <support (AT) borlandBBS (DOT) cn> wrote:
| Quote: |
How to make items of a listbox has different fonts and colors?
|
You need to add an OnDrawItem event and if the fonts are
different sizes, you'll also need an OnMeasureItem event as
well.
~ JD |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Fri Apr 14, 2006 3:03 am Post subject: Re: item font and color of listbox |
|
|
"Adam" <support (AT) borlandBBS (DOT) cn> wrote in message
news:443eeaf7 (AT) newsgroups (DOT) borland.com...
| Quote: | How to make items of a listbox has different fonts and colors?
|
You need to set the ListBox's Style to lbOwnerDrawFixed or
lbOwnerDrawVariable, and then use the OnDrawItem event to draw the item text
onto the ListBox's Canvas yourself.
Gambit |
|
| Back to top |
|
 |
|