--- "Matt Disher (TiBook)" <[EMAIL PROTECTED]> wrote: > > Upon closer inspection of the docs, I figured out > you _still_ have to define a custom pattern and set that. > > Even though the headers and docs initially lead you to > believe that setting it to a defined patter[n] will work > it does not. >
I wonder what version of the docs you are using. In my copy, the docs for WinSetPatternType() say: "This function sets the pattern field of the drawing state to newPattern and sets the patternData field to NULL. To set patternData to a custom pattern use WinSetPattern." And your code was: > > MemSet(&rgb, sizeof(RGBColorType), 0); > > RctSetRectangle(&rect, 50, 50, 50, 50); > > WinSetPatternType (grayPattern); > > black = WinRGBToIndex(&rgb); > > WinSetForeColor(black); > > WinSetDrawMode(winPaint); > > WinDrawRectangleFrame(simpleFrame, &rect); > > WinFillRectangle(&rect, 0); which never calls WinSetPattern(). __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
