home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / openloo / 4550 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.7 KB

  1. 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
  2. From: tdarugar@tartarus.ucsd.edu (Tony Darugar)
  3. Newsgroups: comp.windows.open-look
  4. Subject: Repainting canvases
  5. Message-ID: <41178@sdcc12.ucsd.edu>
  6. Date: 18 Nov 92 04:21:02 GMT
  7. References: <epwcil5@openlook.Unify.Com>
  8. Sender: news@sdcc12.ucsd.edu
  9. Organization: CSE Dept., U.C. San Diego
  10. Lines: 35
  11. Nntp-Posting-Host: tartarus.ucsd.edu
  12.  
  13. Hi,
  14.  
  15.   I'm using devguide to develop an image viewer/manipulator
  16. with xview.
  17.   I have a popup window with an X_PAINT_WINDOW canvas which
  18. displays the actual images. What I would like to do is to
  19. display new pictures by calling  this canvas's repaint procedure.
  20. I tried directly calling this procedure. My code looks like
  21. this:
  22.  
  23.         Canvas can = (Canvas) Imageman_image_menu_popup.canvas2;
  24.         Xv_Window xv_win = Imageman_image_menu_popup.image_menu_popup;
  25.         Display *display = (Display *) xv_get(xv_win, XV_DISPLAY);
  26.         Window xid = (Window) xv_get(xv_win, XV_XID);
  27.  
  28.         repaint_image_menu(can,
  29.                 xv_win,
  30.                 display,
  31.                 xid,
  32.                 (Xv_xrectlist *) NULL);
  33.  
  34. The Imageman_image_menu_popup objects was created using
  35. devguide. It's just a popup window and a canvas.
  36.  
  37. For some reason, this call doesn't display the new picture.
  38. It does part of the repaint procedure, which is assigning
  39. a new colormap to the window, but it doesn't display the
  40. picture itself.
  41. If I manually refresh the window (by choosind Refresh from 
  42. the openwin menu), everything works. The new
  43. colormap gets installed, and the picture is displayed.
  44. Also, if I resize the window in my code, everything works.
  45.  
  46. Any ideas?
  47.  
  48.