Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Grid Background colour

0 replies · 1,651 views · Started 13 December 2006

hi,

I have created a gread in a container with the help of sample example in SDK. I want to change the backgroung colour. How can i do this?

I tried changing colour in draw function,

void CAknExGridContainerAsSelection:😃raw( const TRect& aRect ) const
{
CWindowGc& gc = SystemGc();
gc.SetPenStyle( CGraphicsContext::ENullPen );
gc.SetBrushColor( KRgbBlue );
gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
gc.DrawRect( aRect );
}

But this is not working.

Please help me. Its little urgent.
Thank you.
--
Dipti