> From: Sasha Avanesov
> Is there anything wrong with the following code?
>
> ////////////
> Err error;
> RectangleType windowBounds;
> WinHandle window_hdl;
>
> windowBounds.topLeft.x = 70;
> windowBounds.topLeft.y = 40;
> windowBounds.extent.x = 60;
> windowBounds.extent.y = 16;
> window_hdl = WinCreateWindow(&windowBounds, boldRoundFrame, true, true,
> &error);
> ////////////
>
> the code compiles, but i never see the window appear on the screen;
> i can see in the debugger that the "modal" flag is never set to true...
>

You should take a look at the docs:

"... newly created windows are disabled and invisible.  You must
specifically enable the window before the window can accept input.  You can
do so with WinSetActiveWindow."


-- 
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