nanogui: Mapping, Unmapping, and Repainting Windows
Subject:
Mapping, Unmapping, and Repainting Windows
From:
Gil Glass ####@####.####
Date:
13 Feb 2006 16:30:34 +0000
Message-Id: <OFAF81D2ED.759B5630-ON85257114.0059F9D8-85257114.005AAE5B@acterna.com>
Hello,
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:
// 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