home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / openloo / 3642 < prev    next >
Encoding:
Internet Message Format  |  1992-08-29  |  1.2 KB

  1. Path: sparky!uunet!olivea!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!pacbell.com!network.ucsd.edu!riscsm!arvai
  2. From: arvai@riscsm.scripps.edu (Andy Arvai)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Visuals & Guide3.0
  5. Message-ID: <1992Aug28.203806.4907@riscsm.scripps.edu>
  6. Date: 28 Aug 92 20:38:06 GMT
  7. Organization: The Scripps Research Institute, La Jolla, California, USA
  8. Lines: 20
  9.  
  10. I am using Guide 3.0 to create an XView program. I would like to use a
  11. PseudoColor visual, even if this is not the default visual. I have not
  12. found a clean way of doing this. I know you can do:
  13.  
  14.     xv_create(frame, CANVAS, XV_VISUAL_CLASS, PseudoColor, NULL)
  15.  
  16. However the canvas is created in the _ui.c file, which should not be
  17. modified. In the _stubs.c file I can do do:
  18.  
  19.     xv_set(canvas, XV_VISUAL_CLASS, PseudoColor, NULL)
  20.  
  21. but this will not work since the canvas has already been created with
  22. the default visual. I know that there is an XView command line option,
  23. (-visual PseudoColor), and I have kludged the code to modify argc &
  24. argv and pass this option using xv_init(). Does anyone know a better
  25. way of doing this?
  26.  
  27. Andy Arvai 
  28. The Scripps Research Institute
  29. arvai@scripps.edu 
  30.