Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7342
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Disable Enter Key as Evaluation |
| Date | 2011-12-19 12:19 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jcna4d$e5a$1@smc.vnet.net> (permalink) |
| References | <jchhs3$ils$1@smc.vnet.net> |
On 17/12/2011 07:54, Scott Colwell wrote: > Hello, > > I am creating a standalone CDF. I have InputFields in the CDF and I > only want to use buttons to execute the evaluation of the CDF. So, I > want to disable the enter key and the shift-enter key method of > evaluating. Basically I only want the CDF controlled by the buttons. > > Is there a way to do that? > > Thanks, > > Scott > One answer is to create cells which can't be evaluated. For example, if you execute: Print[InputField[z]] You will find you can operate the InputField in the normal way, but you can't execute the cell. There is a file KeyEventTranslations.tr in one of the installation directories, which can be altered (though I have not used this in earnest). If you decide to go down that route, make sure to take a backup of the file first, because if it is like MenuSetup.tr (which I DO modify), any error simply stops Mathematica booting. David Bailey http://www.dbaileyconsultancy.co.uk
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Disable Enter Key as Evaluation Scott Colwell <srcolwell@gmail.com> - 2011-12-17 07:54 +0000 Re: Disable Enter Key as Evaluation David Bailey <dave@removedbailey.co.uk> - 2011-12-19 12:19 +0000 Re: Disable Enter Key as Evaluation David Reiss <dbreiss@gmail.com> - 2011-12-19 12:24 +0000
csiph-web