This is a release version of my XPM editor that I have kept to myself
for a long time.  This code is merely an example of how to write a
(quick hack) Motif based application using XPM.  If you happen to
compile and run it (which it may do :-) then you are using this 
at you own risk.  In other words, I make no warranties and you can
steal whatever you want from this since I don't plan to develope
this any further - just give me a little credit somewhere.  Actually 
I wrote this over two years ago and have only fixed an occasional bug
or two since then - mostly since I forgot how it works and didn't comment
it very well - it started as a demo.

I have toyed with several types of 'String to Pixmap conversions'.
Since XPM has symbolic names and they should be used for symbolic
colors likes 'background' 'foreground' 'topShadowColor' ... 
My favorite technique is with using WCL and having a 'wcCallback'
that will load the pixmap with symbolic names.  You mileage may vary.

A few example pixmaps are included.

Enjoy!


Requirements:

    XPM 3.2 (f)		I think this is a good idea
    Wcl 2.5		I think this is an ever better idea - UIL sucks
    X11R4 or 5		Need I say more.
    Motif 1.1 		(don't know if 1.2 works)

Tested on a variety of platforms.  Current using Sun OS 4.1.3
No known machine dependencies.

Imakefile supplied.

I have a problem with the Font selection stuff crashing in Wcl.
You need to patch lib/Xt/Create.c as follows:

*** Create.c.orig      Tue Jul 20 14:09:42 1993
--- Create.c    Fri Oct  1 09:26:05 1993
***************
*** 201,206 ****
--- 201,207 ----
        }
      }
      widget = (Widget) XtMalloc((unsigned)(wsize + csize));
+     bzero( widget, wsize + csize);    /* FIX Doyle */
      widget->core.self = widget;
      widget->core.parent = parent;
      widget->core.widget_class = widget_class;

--


Doyle
-------------------------------------------------------------------------
Doyle C. Davidson		  Internet:	Doyle.Davidson@ps.atl.sita.int
SITA contractor			  Sitatex:	ATLPSXS / JAOPR
3100 Cumberland Circle Suite 200  Phone:	(404) 850-5327
Atlanta, GA.30339  USA		  Fax:		(404) 850-5390
-------------------------------------------------------------------------