Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!stl!argon.siesoft.co.uk!stuart From: stuart@siesoft.co.uk (Stuart Hood) Newsgroups: comp.windows.x.motif Subject: Help wanted: how to prevent button arming Summary: How do I prevent a push button from highlighting Keywords: Help, XmPushButton, Arming Message-ID: <1990Jul25.134515.13644@siesoft.co.uk> Date: 25 Jul 90 13:45:15 GMT Sender: usenet@siesoft.co.uk (NNTP Poster) Distribution: comp Organization: Siemens System Developement Group, Reading, UK Lines: 21 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 ------------