home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!news.service.uci.edu!network.ucsd.edu!sdcc12!tartarus!tdarugar
- From: tdarugar@tartarus.ucsd.edu (Tony Darugar)
- Newsgroups: comp.windows.open-look
- Subject: Repainting canvases
- Message-ID: <41178@sdcc12.ucsd.edu>
- Date: 18 Nov 92 04:21:02 GMT
- References: <epwcil5@openlook.Unify.Com>
- Sender: news@sdcc12.ucsd.edu
- Organization: CSE Dept., U.C. San Diego
- Lines: 35
- Nntp-Posting-Host: tartarus.ucsd.edu
-
- Hi,
-
- I'm using devguide to develop an image viewer/manipulator
- with xview.
- I have a popup window with an X_PAINT_WINDOW canvas which
- displays the actual images. What I would like to do is to
- display new pictures by calling this canvas's repaint procedure.
- I tried directly calling this procedure. My code looks like
- this:
-
- Canvas can = (Canvas) Imageman_image_menu_popup.canvas2;
- Xv_Window xv_win = Imageman_image_menu_popup.image_menu_popup;
- Display *display = (Display *) xv_get(xv_win, XV_DISPLAY);
- Window xid = (Window) xv_get(xv_win, XV_XID);
-
- repaint_image_menu(can,
- xv_win,
- display,
- xid,
- (Xv_xrectlist *) NULL);
-
- The Imageman_image_menu_popup objects was created using
- devguide. It's just a popup window and a canvas.
-
- For some reason, this call doesn't display the new picture.
- It does part of the repaint procedure, which is assigning
- a new colormap to the window, but it doesn't display the
- picture itself.
- If I manually refresh the window (by choosind Refresh from
- the openwin menu), everything works. The new
- colormap gets installed, and the picture is displayed.
- Also, if I resize the window in my code, everything works.
-
- Any ideas?
-
-