At 05:06 PM 11/22/2004, you wrote:
I am trying to draw a simple line on the screen, but get the error "Bad
Error" Does anyone know why I get this error?
RGBColorType redRGB;
IndexedColorType redIndexed;
redRGB.r = 255; redRGB.g = 0; redRGB.b = 0;
redIndexed = WinRGBToIndex(&redRGB); // ERROR = bAD wINDOW
WinSetForeColor(redIndexed);
WinDrawLine(0, 0, 159, 159);
Do you have an active form or drawing window when this code is executed?
-- Ben Combee, Technical Lead, Developer Services, PalmSource, Inc.
"Combee on Palm OS" weblog: http://palmos.combee.net/
Developer Fourm Archives: http://news.palmos.com/read/all_forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/