Objective:
Draw a rectagular window, in which I can doodle.
When I try to create a window as below,
[1] The screen remains blank.
[2] I get an error saying that "windows cannot be
under forms because they cannot be re-drawn"
I cannot figure out why.
-----------------------------------
static void MainFormInit(FormType * frmP)
{
WinHandle newWindow, originalWindow;
RectangleType newBounds;
UInt16 err;
newBounds.topLeft.x = 20;
newBounds.topLeft.y = 20;
newBounds.extent.x = 120;
newBounds.extent.y = 120;
newWindow = WinCreateWindow(&newBounds,
simpleFrame, true, true,
&err);
originalWindow = WinSetDrawWindow(newWindow);
WinDrawWindowFrame();
WinSetDrawWindow(originalWindow);
}
Thanks,
JJ
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/