On 2006-12-28, Anoop <[EMAIL PROTECTED]> wrote:
> Hi all,
>        Am trying to set the background color of the main form. Please go 
> through the following code segment
>
> RGBColorType newRgbP1,newRgbP2;
> //My background bitmap is grey
> newRgbP1.r=95;
> newRgbP1.g=95;
> newRgbP1.b=95;
> //WinPushDrawState();
> WinSetBackColorRGB(&newRgbP1,NULL);
>
> After running this peace of code the a grey block is noticed at the 
> bottom right corner of the window..I need the full window to be 
> displayed in grey. Please guide me.
>

Have a look at the SDK include file .../Core/UI/UIColor.h and at the
description of the UIColorSetTableEntry function in the API document.
Hint: you want to modify the UIFormFill color.

HTH

Ton van Overbeek

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to