nanogui: Mapping, Unmapping, and Repainting Windows


Previous by date: 14 Feb 2006 04:57:56 +0000 Re: Transparent window with Nano-X, Greg Haerr
Next by date: 14 Feb 2006 04:57:56 +0000 Re: Mapping, Unmapping, and Repainting Windows, Gil Glass
Previous in thread: 14 Feb 2006 04:57:56 +0000 Mapping, Unmapping, and Repainting Windows, Gil Glass
Next in thread: 14 Feb 2006 04:57:56 +0000 Re: Mapping, Unmapping, and Repainting Windows, Gil Glass

Subject: Re: [nanogui] Mapping, Unmapping, and Repainting Windows
From: "Greg Haerr" ####@####.####
Date: 14 Feb 2006 04:57:56 +0000
Message-Id: <039a01c63123$36458560$6401a8c0@winXP>

: Correct me if I'm wrong, but if I have a window (the root window), whose 
: window ID is "parent", that is currently displaying and takes up the 
: entire display, and I then perform the following operations:

Call your parent window "parent", because the root window
is something else (it's always id 1, and always mapped).  I 
presume you're not talking about the real root window.

In the code below, you never mapped your parent window in the
first place, and then mapped it again.  Nano-X keeps
a map count which could get confused if your map/unmap
calls don't match up.

Regards,

Greg


: 
: // Create and open a new window.
: windowID = GrNewWindow(parent, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 0, 
: GR_COLOR_WHITE, GR_COLOR_WHITE);
: 
: // Map (show) the window.
: GrMapWindow(windowID);
: 
: <draw some stuff>
: 
:  // Remove this window.
: GrUnmapWindow(windowID);
: GrDestroyWindow(windowID);
: 
: // Redraw the parent window.
: GrMapWindow(parent);
: 
: I should get my original, root window back, should I not?  Well I'm not. 
: Any idea of what I'm doing wrong?  I'm using Nano-X version 0.91.
: 
: Cheers,
: Gil Glass
: Telecom Field Services
: JDSU
: Germantown, MD, USA
: +1-240-404-2551

Previous by date: 14 Feb 2006 04:57:56 +0000 Re: Transparent window with Nano-X, Greg Haerr
Next by date: 14 Feb 2006 04:57:56 +0000 Re: Mapping, Unmapping, and Repainting Windows, Gil Glass
Previous in thread: 14 Feb 2006 04:57:56 +0000 Mapping, Unmapping, and Repainting Windows, Gil Glass
Next in thread: 14 Feb 2006 04:57:56 +0000 Re: Mapping, Unmapping, and Repainting Windows, Gil Glass


Powered by ezmlm-browse 0.20.