Grid header backcolor not changing  
Author Message
Dwntrdr





PostPosted: Visual FoxPro General, Grid header backcolor not changing Top

I searched here, and found nothing... if it was a bug, I'm sure someone else would have found it by now...

Migrating from fox 7 to fox 9, ran into this problem.

This code...

with thisform.grid1
for i = 1 to .columnCount
.columns(i).header1.backColor = nHColor
if i >= 2
.columns(i).width = nWidth
endif
endfor
endwith

no longer works... I even tried a sample form where I used the properties to set the backcolor and forecolor of the column.header... this had no effect...

Am I missing something Or is this an undocumented feature



Visual FoxPro1  
 
 
Dwntrdr





PostPosted: Visual FoxPro General, Grid header backcolor not changing Top

Well...

It appears that the form poperty Object.Themes is part of the problem... If I set this to false, my colors are applied, but I lose the XP look of the controls...

Is there a way to set the back/forecolor properties and have them applied without losing the XP look controls

TIA

Rob.


 
 
CetinBasoz





PostPosted: Visual FoxPro General, Grid header backcolor not changing Top

Check themes property. If you want colors turn it off.
 
 
Dwntrdr





PostPosted: Visual FoxPro General, Grid header backcolor not changing Top

Uhm... yea... I guess you didn't see the second post...

 
 
Dan Freeman





PostPosted: Visual FoxPro General, Grid header backcolor not changing Top

Is there a way to set the back/forecolor properties and have them applied without losing the XP look controls

No. You can choose one or the other.

Having your own colors in a themed control runs counter to the entire themes approach.