nanogui: come back from VTSWITCH


Previous by date: 6 Dec 2006 23:33:58 +0000 Re: VTSWITCH vs. Timers vs. Sleep Mode, Greg Haerr
Next by date: 6 Dec 2006 23:33:58 +0000 Re: ttf font with fltk, Greg Haerr
Previous in thread: 6 Dec 2006 23:33:58 +0000 come back from VTSWITCH, roberto\.bielli\.inwind\.it
Next in thread:

Subject: Re: [nanogui] come back from VTSWITCH
From: "Greg Haerr" ####@####.####
Date: 6 Dec 2006 23:33:58 +0000
Message-Id: <06e601c7198e$fd660300$0300a8c0@RDP>

> I am running an application and where i try to switch to the busybox
console and then return to nano-X display, i don't see all my objects that i
previous drawn.

> how can i capture the event of VTSWITCH and then save all my window ?

There really isn't an easy mechanism for this.  FAR EASIER
would be to ensure that your application code catches
the EXPOSURE events that the server generates, and then
redraws everything.

A neat way to guarantee this is to NEVER have any code
draw anything other than in the EXPOSURE event
handling code.  When you need to draw something,
force an expose event using GrClearWindow(...,FALSE),
and draw it in the expose handler.

Regards,

Greg


Previous by date: 6 Dec 2006 23:33:58 +0000 Re: VTSWITCH vs. Timers vs. Sleep Mode, Greg Haerr
Next by date: 6 Dec 2006 23:33:58 +0000 Re: ttf font with fltk, Greg Haerr
Previous in thread: 6 Dec 2006 23:33:58 +0000 come back from VTSWITCH, roberto\.bielli\.inwind\.it
Next in thread:


Powered by ezmlm-browse 0.20.