Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!midway!gargoyle!igloo!ddsw1!obdient!ks25!mark From: mark@ks25.UUCP (Mark Johnson) Newsgroups: comp.windows.x Subject: DECwindows PushButton sensitivity problem Message-ID: <602@ks25.UUCP> Date: 11 Jan 91 15:54:38 GMT Reply-To: mark@ks25.UUCP (Mark Johnson) Organization: RR Donnelley & Sons CPS Development, Lisle, IL Lines: 23 We have a large application written using the DECwindows toolkit (v 4.0). The application has a large number of PushButtons many of which have accelerators. Under certain conditions it is necessary that we disable some of these PushButtons. We do this by making the PushButtons insensitive. However, we have found that pressing the accelerator key for an insensitive PushButton still causes the activate callback for that PushButton to be executed. Is this a bug or have we missed something? Is there some way to disable the accelerator? Can we then re-enable the accelerator at a later time? In certain cases we make the PushButton insensitive by means of a resource in a resource file. Can we disable the accelerator via a resource? We would prefer to be able to disable both the PushButton and its associated accelerator with a single resource, but we can deal with multiple resources if necessary. Thank you Mark decwrl!ks25!mark