home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!eagle!huang
- From: huang@eagle (Zheng Huang)
- Subject: Disp RGB graph by Xlib function
- X-Newsreader: Tin 1.1 PL4
- Message-ID: <BtppDs.8HF@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: Sangamon State University
- Date: Fri, 28 Aug 1992 21:08:14 GMT
- Lines: 38
-
- I want to display the RGB graph in a window, but I don't known how to do it by
- using Xlib functions.
- I got the graph displayed in the window by graphic subroutine functions(winopen
- writeRGB). But the problem is the window ID returned & reconized by graphic
- subroutine function is different with the window ID(for same window) by Xlib
- function. How can I catch the the standard window ID which can be reconized
- by window manager and Xlib functions by using Xlib functions or graphic
- subroutine functions.
-
- ===========================example =====================================
- long winid;
- ..
- winid = winopen(); /* if this is the first window opened, winid will be 1 */
- this window 'winid' will be the current window. so all the graphic subroutine
- function like 'RGBmode', 'gconfig', 'writeRGB' will work on this window. But
- the same window created above maybe reconized as window ID=0x380000d(which I
- got from 'xwininfo' command), Xlib function only reconized '0x380000d' as the
- window id for that window, not '1'. How can I get the window id '0x380000d' by
- Xlib function or graphic subroutine function which is created by winopen,
- swinopen.
- ========================================================================
-
- I would appreciate it if any of you could tell me how to make this work.
- My environment is Silicon Graphic, IRIX system V R4.01.
-
- Thanks.
-
- Huang.
-
- --
-
- *****************************************************************
- Name: John Z. Huang
- Email: huang@eagle.sangamon.edu
- Phone: (W)217-524-1984, (H)217-529-2860
- Fax: (217)524-2101
- Mail: 406 E. Monroe, Station #222, Springfield, ILL 62701
- *****************************************************************
-