nanogui: GrUnmapWindow()
Subject:
GrUnmapWindow()
From:
Aveek Adhya ####@####.####
Date:
8 Jun 2006 13:34:03 +0100
Message-Id: <44881B41.3010807@rebaca.com>
Hi all,
I have a window with some objects (like a rectangle etc) drawn on it.
Now I want to hide the main window and after a key press I want to show
the same window again on the screen.
my prgram is like that ....
......
.........
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 ?
Thanx .....
Aveek