Parent document is top of "Motif FAQ (Part 5 of 9)"
Previous document is "139) TOPIC: TOGGLEBUTTON WIDGET"
Next document is "141) Can I customize XmToggleButton to use my own indicator graphic"

140) What widgets give the look of push buttons, but behavior of

toggle buttons?

Answer:  Use the XmToggleButton widget, setting XmNindicatorOn to False and
XmNshadowThickness to 2.

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

Also set XmNfillOnSelect to True. Otherwise, the background color of the
button will not stay in the "armed" state.

thanks to Glenn McMillen, mcmillen@meadow.mdso.vf.ge.com

In Motif 1.2 (and later), if you specify a XmNselectColor and set
XmNindicatorOn to False, then you need to set XmNfillOnSelect to True.
XmNfillOnSelect is not necessary if you are not setting a XmNselectColor.

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

Parent document is top of "Motif FAQ (Part 5 of 9)"
Previous document is "139) TOPIC: TOGGLEBUTTON WIDGET"
Next document is "141) Can I customize XmToggleButton to use my own indicator graphic"