I think color deal would be good to look at, but simple circle example is:

//draw red circle
IndexedColorType redIndex, oldColorIndex;
RGBColorType rgb;
RectangleType rect;

//set the rgb to red
rgb.r=255;
rgb.g=0;
rgb.b=0;

//find the index that matches
redIndex = WinRGBToIndex(&rgb);
oldColorIndex = WinSetForeColor(redIndex);
        
//make a square with length 30 (we will round the corners to make a circle)
rect.topLeft.x = 40;
rect.topLeft.y = 30;
rect.extent.x = 30;
rect.extent.y = 30;
                
//draw the rect with corners rounded of 15 (lenght/2) to make circle 
WinDrawRectangle(&rect, 15);
                        
//reset the fore color back to the index it had before
WinSetForeColor(oldColorIndex);

-Ezekiel Sanborn de Asis
Palm Developer Support
[EMAIL PROTECTED]


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

Reply via email to