home *** CD-ROM | disk | FTP | other *** search
- 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
- From: arvai@riscsm.scripps.edu (Andy Arvai)
- Newsgroups: comp.windows.open-look
- Subject: Visuals & Guide3.0
- Message-ID: <1992Aug28.203806.4907@riscsm.scripps.edu>
- Date: 28 Aug 92 20:38:06 GMT
- Organization: The Scripps Research Institute, La Jolla, California, USA
- Lines: 20
-
- I am using Guide 3.0 to create an XView program. I would like to use a
- PseudoColor visual, even if this is not the default visual. I have not
- found a clean way of doing this. I know you can do:
-
- xv_create(frame, CANVAS, XV_VISUAL_CLASS, PseudoColor, NULL)
-
- However the canvas is created in the _ui.c file, which should not be
- modified. In the _stubs.c file I can do do:
-
- xv_set(canvas, XV_VISUAL_CLASS, PseudoColor, NULL)
-
- but this will not work since the canvas has already been created with
- the default visual. I know that there is an XView command line option,
- (-visual PseudoColor), and I have kludged the code to modify argc &
- argv and pass this option using xv_init(). Does anyone know a better
- way of doing this?
-
- Andy Arvai
- The Scripps Research Institute
- arvai@scripps.edu
-