home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / windows / openloo / 3428 next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.3 KB

  1. Xref: sparky comp.windows.open-look:3428 alt.toolkits.xview:760
  2. Newsgroups: comp.windows.open-look,alt.toolkits.xview
  3. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!news.mr.med.ge.com!mazin
  4. From: mazin@mr.med.ge.com (Barry Mazin 4-6073 MRCE)
  5. Subject: Inverting an xview button
  6. Message-ID: <1992Aug12.132348.11754@mr.med.ge.com>
  7. Followup-To: comp.windows.open-look,alt.toolkits.xview,poster
  8. Sender: news@mr.med.ge.com
  9. Nntp-Posting-Host: nintendo
  10. Organization: GE Medical Systems, Magnetic Resonance
  11. Date: Wed, 12 Aug 92 13:23:48 GMT
  12. Lines: 19
  13.  
  14. Has anybody been able to invert the image of a panel_item in xview?  I used to 
  15. be able to invert button items in Sunview.   So far, I have been
  16. unsuccessful in trying to port this piece to xview.
  17.  
  18. I inverted a button item in sunviews by:
  19.     1) getting the image 
  20.     2) running a pr_rop operation on the bits in the image.  
  21. Equivalent code in XView does not work.  The image returned from a xv_get on 
  22. the panel_item is NULL.  Any suggestions or answers?
  23.  
  24.  
  25. /**** Sunview Method ***/
  26. #define MARK_BUTTON(button) \
  27. {\
  28.    struct pixrect *pr;\
  29.    pr = (struct pixrect *) panel_get(button, PANEL_LABEL_IMAGE);\
  30.    pr_replrop(pr, 0,0,pr->pr_width, pr-> pr_height, PIX_NOT(PIX_DST),pr, 0,0);\
  31.    panel_paint (button, PANEL_NO_CLEAR);\
  32. }
  33.