home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / motif / 5145 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  975 b 

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!news.claremont.edu!ucivax!gateway
  2. From: akeren@laguna.ICS.UCI.EDU (Alan Keren)
  3. Subject: using gif files in motif
  4. Message-ID: <9207221041.aa23130@Paris.ics.uci.edu>
  5. Newsgroups: comp.windows.x.motif
  6. Lines: 19
  7. Date: 22 Jul 92 17:41:31 GMT
  8.  
  9.  
  10. I am trying to load a gif picture and then draw a grid on it using
  11. XDrawline().  The aim is to let a user select a location on a picture.
  12. Drawing a grid pattern in a drawing widget was fairly easy to do.
  13. Also there are the example programs pict.c and xgifload.c from OSF that
  14. will load and display gif files.  My problem has been in trying to draw
  15. the grid lines on top of the picture.  Also once the grid lines are drawn
  16. I need to be able to detect button clicks.
  17.  
  18. Is there a "standard" method for doing this?
  19.  
  20. The computer setup I am working with includes:
  21.    SCO unix on DEC 433
  22.    Motif 1.0
  23.    cc compiler
  24.  
  25. Any kind of help with this is greatly appreciated.
  26.  
  27.                         -Alan Keren
  28.