[comp.windows.x.motif] Help wanted: how to prevent button arming

stuart@siesoft.co.uk (Stuart Hood) (07/25/90)

I would like to be able to allow or prevent the highlighting of a
push button when it is selected (or, more accurately, armed); depending
on the status of an application-defined callback.

With a XmPushButton widget I can set XmNfillOnArm to be True or False.
If it is False then when the button is armed it is filled with the
XmNarmColour. If I add a callback, XmNarmCallback, and set XmNfillOnArm
to False within this callback then when the button is armed it flashes
as it becomes highlighted and then unhighlighted.

Is there any way to prevent this flashing or am I approaching this
problem from the wrong angle?

Any help would be much appreciated, thanks in advance,

Stuart.

--
Stuart Hood 65-73 Crockhamwell Road, Woodley, Reading, Berkshire, RG5 3JP, UK
Phone: + 44-734-691994 				Email: stuart@siesoft.co.uk
-------- Happiness is a state of mind, not a state of employment ------------

nazgul@alphalpha.com (Kee Hinckley) (07/27/90)

> I would like to be able to allow or prevent the highlighting of a
> push button when it is selected (or, more accurately, armed); depending
> on the status of an application-defined callback.
If you don't want the button to be selectable then you should just
call XtSetSensitive, otherwise I don't have any ideas.

						-kee

Alphalpha Software, Inc.	|	motif-request@alphalpha.com
nazgul@alphalpha.com		|-----------------------------------
617/646-7703 (voice/fax)	|	Proline BBS: 617/641-3722

I'm not sure which upsets me more; that people are so unwilling to accept
responsibility for their own actions, or that they are so eager to regulate
everyone else's.

-------