Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!bu.edu!att!att!mcdchg!tellab5!balr!wrv From: wrv@balr.com (Bill Vogel) Newsgroups: comp.windows.x Subject: xview -> NeWs Message-ID: <1990Nov19.054303.26516@balr.com> Date: 19 Nov 90 05:43:03 GMT Organization: BALR Corporation Lines: 38 I am using the OpenWindows Developers Guide to create a graphical user interface, but I want to use postscript (NeWS) to do the graphics work on the main drawing canvas. How do you do it? The devguide lets you select postscript as the imaging model for the canvas, but I can't find any doc. on how to do this. I know how to open a connection to the NeWS side, but I don't know how to send down the canvas id. The repaint procedure (generated by devguide) looks like this: void repaint_graphics(pscanvas, newstoken, display, xid, rects) PScanvas pscanvas; NeWStoken newstoken; Display *display; Window xid; Xv_xrectlist *rects; { gmain_main_window_objects *ip = (gmain_main_window_objects *) xv_get(pscanvas, XV_KEY_DATA, INSTANCE); xv_set(pscanvas, PSCANVAS_CLIPRECTS, rects); pscanvas_flip(); fprintf(stderr, "gmain: repaint_graphics\n"); } I can't find any documentation on pscanvas_flip() which is really a cps macro defined in pscan_ps.h. There seem to be many useful calls here, but there's no documentation. Also, the canvas is created as a PSCANVAS object, which I also can't find any documentation on, although I've looked through the Devguide manual, the Vol 7 O'Reilly manual, the openwindows Version 2: converting.... manual, and NeWS manual. The only place I haven't looked is the OpenLook Toolkit Intrinsics manual. Any help is much appreciated! Bill Vogel