Parent document is top of "Motif FAQ (Part 5 of 9)"
Previous document is "140) What widgets give the look of push buttons, but behavior of"
Next document is "142) TOPIC: ICON WIDGET and PIXMAPS"

141) Can I customize XmToggleButton to use my own indicator graphic

(e.g., a check mark)?

[Last modified: Nov 96]

Answer:  There is no direct resource for the graphic.  One way to work around
this is to disable the indicator (XmNindicatorOn False) and then install
selected/unselected pixmaps containing both your graphic and your text
(XmNselectPixmap and XmNselectPixmap).  Also disable the button shadows
(XmNshadowThickness 0) if you don't want those.

Ken Lee, http://www.rahul.net/kenton/

Parent document is top of "Motif FAQ (Part 5 of 9)"
Previous document is "140) What widgets give the look of push buttons, but behavior of"
Next document is "142) TOPIC: ICON WIDGET and PIXMAPS"