Re: why i can't draw the graphic??
- From: James Henstridge <james daa com au>
- To: =?utf-8?b?6ZeEIOmRsw==?= <bdragon2001 hotmail com>
- Cc: gnome-devel-list gnome org
- Subject: Re: why i can't draw the graphic??
- Date: Wed, 10 Jul 2002 21:04:08 +0800
闄 鑳 wrote:
hi,james
After reading the material showed by you,I don't understand why
the first time
drawing can't be viewed?and it is obviously hidden.
The configure event,i keep it in the code.But only when i hit the
window,the
configure event will happen,and draw the graphic.It make me confused
because it
should happen when the window originally produced.
If you draw on a window before it has been mapped to the screen, then
nothing will happen. The way the X drawing model works is that when a
portion of a window gets displayed, an "expose event" gets sent back to
the application. The application responds to the expose event by
drawing what is supposed to be in that area.
Even if the initial drawing did display, it is probably not what you
want -- as soon as your window gets hidden and exposed, whatever you
drew would be gone.
James.
--
Email: james daa com au | Linux.conf.au 2003 Call for Papers out
WWW: http://www.daa.com.au/~james/ | http://conf.linux.org.au/cfp.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]