home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / motif / 8787 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!think.com!sdd.hp.com!swrinde!network.ucsd.edu!loral.CTS.COM!ross
  3. From: ross@loral.cts.com (Robert Ross)
  4. Subject: Using Pixmaps
  5. Message-ID: <1993Jan21.010127.7091@loral.CTS.COM>
  6. Summary: XtConvert or XtConvertAndStore
  7. Sender: usenet@loral.CTS.COM
  8. Organization: Loral Instrumentation
  9. Distribution: usa
  10. Date: Thu, 21 Jan 93 01:01:27 GMT
  11. Lines: 23
  12.  
  13. I'm trying to get a Pixmap (not Bitmap) to be displayed as the labelPixmap
  14. on a XmPushButton.  The XmNlabelPixmap resource expects its argument to
  15. be of type Pixmap.  I need to do the Pixmap creation during runtime, because
  16. the labelPixmap may vary during the life of the application.
  17.  
  18. I've read about XtConvert and XtConvertAndStore in the manuals but I have
  19. no real examples about how to use them, especially to convert from
  20. a string (ie. "my_pixmap.xpm") to Pixmap.
  21.  
  22. If someone could send me a short code excerpt (or a real working example)
  23. that shows how to get from a string to a Pixmap, it would be greatly
  24. appreciated.
  25.  
  26. My system configuration:
  27.     Sun SparcStation 2 (color)
  28.     SunOS 4.1.2
  29.     X11R4
  30.     Motif 1.1.4
  31.  
  32. --
  33.  
  34. Bob Ross (ross@li.loral.com)         | "Mr. Plow, that's the name. That name
  35. Loral Instrumentation, San Diego, CA |  again is Mr. Plow" - Homer Simpson
  36.