It turned out to be the cornerDiam parameter to the WinXXXRectangle API's that was the problem.
I figured I could use roundFrame as the value to get rounded corners, but it turns out that a value of 5 (there isn't an SDK symbol for that one) is the correct value. As soon as I changed to 5, everything worked. I guess the API figured the roundFrame radius was too large for the output to fit in a 50x36 rectangle? Mark Peters > From: Peter Epstein <[EMAIL PROTECTED]> > Newsgroups: palm-dev-forum > Date: Mon, 18 Mar 2002 16:02:00 -0800 > To: "'Palm Developer Forum'" <[EMAIL PROTECTED]> > Subject: RE: What prevents draw APIs from working? > > > Well, a few things comes to mind: > > 1) WinDrawChars uses the textColor rather than the foreColor. Have you > called WinSetForeColor? Perhaps the foreColor is the same as the backColor? > > 2) What is rP? If the extent is zero or negative in either x or y, then it > may not draw. > > 3) Verify your clipping bounds. This would affect both text and rectangles, > but best to be sure. Call WinGetClip and use the debugger to verify that the > resulting rectangle covers the region you're drawing on. > -- > Peter Epstein > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
