Board index » cppbuilder » ListView1 Headers

ListView1 Headers


2004-11-29 04:20:11 AM
cppbuilder113
Hi group, hello..
How can I edit the Column Headers of ListView1 ?
Thanks
 
 

Re:ListView1 Headers

"M.A." < XXXX@XXXXX.COM >wrote in message
Quote
How can I edit the Column Headers of ListView1 ?
Edit in what way exactly? Please be more specific.
Gambit
 

Re:ListView1 Headers

I would like to paint the headers
I wuold like to change the size and color of the font.
I would like to change the size of the headers
Thank you & Best regards..
"Remy Lebeau (TeamB)" < XXXX@XXXXX.COM >wrote in message
Quote

"M.A." < XXXX@XXXXX.COM >wrote in message
news:41aa3304$ XXXX@XXXXX.COM ...

>How can I edit the Column Headers of ListView1 ?

Edit in what way exactly? Please be more specific.


Gambit


 

{smallsort}

Re:ListView1 Headers

Try event OnCustomDrawItem
void __fastcall ListView1CustomDrawItem(TListView *LV, TListItem *Item){
if (Item!=NULL && Item->Selected){
LV->Canvas->Font->Color = clWhite;
LV->Canvas->Brush->Color = clBlue;
....
}
}
"M.A." < XXXX@XXXXX.COM >píše v diskusním příspěvku
Quote
Hi group, hello..

How can I edit the Column Headers of ListView1 ?

Thanks


 

Re:ListView1 Headers

Thank you
M. A.
"Peter" < XXXX@XXXXX.COM >wrote in message
Quote
Try event OnCustomDrawItem

void __fastcall ListView1CustomDrawItem(TListView *LV, TListItem *Item){
if (Item!=NULL && Item->Selected){
LV->Canvas->Font->Color = clWhite;
LV->Canvas->Brush->Color = clBlue;
....
}
}


"M.A." < XXXX@XXXXX.COM >píše v diskusním příspěvku
news:41aa3304$ XXXX@XXXXX.COM ...
>Hi group, hello..
>
>How can I edit the Column Headers of ListView1 ?
>
>Thanks
>
>


 

Re:ListView1 Headers

but M.A. wants to 'custom draw' the headers, not just items!
masi urbano
"Peter" < XXXX@XXXXX.COM >ha scritto nel messaggio
Quote
Try event OnCustomDrawItem

void __fastcall ListView1CustomDrawItem(TListView *LV, TListItem *Item){
if (Item!=NULL && Item->Selected){
LV->Canvas->Font->Color = clWhite;
LV->Canvas->Brush->Color = clBlue;
....
}
}


"M.A." < XXXX@XXXXX.COM >píše v diskusním příspěvku
news:41aa3304$ XXXX@XXXXX.COM ...
>Hi group, hello..
>
>How can I edit the Column Headers of ListView1 ?
>
>Thanks
>
>