# Drawn Button widget

The Drawn Button widget differs from Push Button in that its face is not drawn automatically but must be drawn by the application. It may be used to provide a button which has a changing appearance.

The drawn button is an example of a Label and hence shares the same resource panel.

For more information, please consult XmDrawnButton(3X) in the OSF/Motif Programmer's Reference.

HINTS

If you want a picture on a button, particularly if the picture is static in nature, it is usually easier to use a normal Push Button and use a pixmap for the image. You could generate the image by using the WorkShop Visual Pixmap Editor. Drawing the picture on a Drawn Button requires writing C code.

See also:

- Push Button widget
- Label resource panel
- Pixmap Editor
- About WorkShop Visual