nanogui: GrUnmapWindow()
Subject:
Re: GrUnmapWindow()
From:
"Aaron J. Grier" ####@####.####
Date:
8 Jun 2006 18:52:23 +0100
Message-Id: <20060608175218.GC18581@mordor.unix.fryenet>
On Thu, Jun 08, 2006 at 06:12:41PM +0530, Aveek Adhya wrote:
> GrMapWindow(wid); // to make the window visible
> gc = GrNewGC(); // create a new GC
> GrFillRect(wid,gc,100,30,60,50); // draw a rectangle on the main window
> getchar(); // wait for a key press
> GrUnmapWindow(wid); // unmap the window
> getchar(); // wait for a key press
> GrMapWindow(wid); // make the window visible again
> .......
>
> Although the "GrUnmapWindow(wid)" can hide the window, calling
> "GrMapWindow(wid)" can't make the window visible again.
> Any idea where I am doing the mistake ? ..... or it is not at all
> possible with these APIs ?
when GrMapWindow(wid) is called, wid will be sent an expose event; it is
then up to a handler to redraw the exposed area.
are you running a window manager of any sort?
--
Aaron J. Grier | Frye Electronics, Tigard, OR | ####@####.####