home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / 15824 < prev    next >
Encoding:
Text File  |  1992-08-29  |  2.1 KB  |  50 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!eagle!huang
  3. From: huang@eagle (Zheng Huang)
  4. Subject: Disp RGB graph by Xlib function
  5. X-Newsreader: Tin 1.1 PL4
  6. Message-ID: <BtppDs.8HF@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: Sangamon State University
  9. Date: Fri, 28 Aug 1992 21:08:14 GMT
  10. Lines: 38
  11.  
  12. I want to display the RGB graph in a window, but I don't known how to do it by
  13. using Xlib functions. 
  14. I got the graph displayed in the window by graphic subroutine functions(winopen
  15. writeRGB). But the problem is the window ID returned & reconized by graphic 
  16. subroutine function is different with the window ID(for same window) by Xlib
  17. function. How can I catch the the standard window ID which can be reconized
  18. by window manager and Xlib functions by using Xlib functions or graphic 
  19. subroutine functions.
  20.  
  21. ===========================example =====================================
  22. long  winid;
  23. ..
  24. winid = winopen(); /* if this is the first window opened, winid will be 1 */
  25. this window 'winid' will be the current window. so all the graphic subroutine
  26. function like 'RGBmode', 'gconfig', 'writeRGB' will work on this window. But
  27. the same window created above maybe reconized as window ID=0x380000d(which I 
  28. got from 'xwininfo' command), Xlib function only reconized '0x380000d' as the
  29. window id for that window, not '1'. How can I get the window id '0x380000d' by
  30. Xlib function or graphic subroutine function which is created by winopen,
  31. swinopen. 
  32. ========================================================================
  33.  
  34. I would appreciate it if any of you could tell me how to make this work.
  35. My environment is Silicon Graphic, IRIX system V R4.01.
  36.  
  37. Thanks.
  38.  
  39. Huang.
  40.  
  41. --
  42.  
  43. *****************************************************************
  44.     Name:   John Z. Huang                   
  45.     Email:  huang@eagle.sangamon.edu
  46.     Phone:  (W)217-524-1984,  (H)217-529-2860
  47.     Fax:    (217)524-2101
  48.     Mail:   406 E. Monroe, Station #222, Springfield, ILL 62701
  49. *****************************************************************
  50.