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