include xpm

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
include xpm

Submitted by colonel on Tue, 10/09/2001 - 04:18. Developers
Hi, All!
I have a program which uses some xpm files displaying in buttons.
1) How can I join these files with main program and then use it?
2) How can I resolve path to these files if I installed this program and copied *.xpm to `prefix/share/progname`

ICS_support

1) You can mention the name of the pixmap as a resource value e.g.

*foo_label.labelPixmap blah.xpm

2) See the information on XmGetPixmap(), which Motif 2 uses internally to track down the pixmaps; it should have information on the path-name variable you set to point to files that the application should use.