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