home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / openloo / 4943 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  960 b 

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!biosci!parc!ivan.uucp!coombs
  2. From: coombs@ivan.uucp
  3. Newsgroups: comp.windows.open-look
  4. Subject: OL RectButton labelImage byte ordering
  5. Message-ID: <1993Jan1.000817.15630@parc.xerox.com>
  6. Date: 1 Jan 93 00:08:17 GMT
  7. Sender: news@parc.xerox.com
  8. Reply-To: coombs@ivan.uucp ()
  9. Organization: IRIS - Brown University
  10. Lines: 17
  11.  
  12. I created bitmaps with the 'bitmap' program.  I then used XCreateImage
  13. to generate the image for XtNlabelImage on rect buttons.  But the image
  14. was wrong.  After an extended chase, I found that setting the images'
  15. byte_order and bimap_bit_order to LSBFirst solved the problem.
  16.  
  17. Setting the orders with ImageByteOrder and BitmapBitOrder did not solve
  18. the problem.
  19.  
  20. I ran all pieces on the same machine: 'bitmap', CC, and my
  21. application.
  22.  
  23. I tried 'iconedit', which generated the same output as 'bitmap'.
  24.  
  25. I am not comfortable with hard coding the ordering.  Is there a better
  26. solution?
  27.  
  28. Thanks.  --Jim
  29.