home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!edcastle!castle.ed.ac.uk!jlothian
- From: jlothian@castle.ed.ac.uk (J Lothian)
- Newsgroups: comp.windows.x
- Subject: Re: Set background color.
- Message-ID: <29586@castle.ed.ac.uk>
- Date: 15 Dec 92 16:32:09 GMT
- References: <1992Dec14.113420.22072@sparc4.ncu.edu.tw>
- Sender: nntpusr@castle.ed.ac.uk
- Organization: Edinburgh University Computing Service
- Lines: 16
-
- In article <1992Dec14.113420.22072@sparc4.ncu.edu.tw>, u438813@imux120.ncu.edu.tw (Lin Wei-Ting) writes:
- |> dpy=(Display *)xv_get(canvas_paint_window(obj),XV_DISPLAY);
- |> gc=DefaultGC(dpy,DefaultScreen(dpy));
- |> XSetBackground(dpy,gc,pixvalue=(unsigned long)XGetPixel(ximage,k,j));
- |> I use the function to set a canvas background color but failed.Why?
-
- Because all this does is set the background attribute in the
- graphics context. If you want to set the background for a
- window, use XChangeWindowAttributes(). Read the manual.
-
- James
- --
-
- -------------------------------------------------------
- James Lothian | "It's life, Jim,
- james@uk.ac.ed.caad | but not as we know it"
-