Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Apply callback to children
Date: Thu, 8 Jan 2009 18:39:02 +0000 (UTC)
Organization: The MathWorks Inc
Lines: 9
Message-ID: <gk5h86$202$1@fred.mathworks.com>
References: <gk3a05$9u7$1@fred.mathworks.com> <gk3bkm$oql$1@fred.mathworks.com> <gk5gle$l6j$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1231439942 2050 172.30.248.38 (8 Jan 2009 18:39:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 8 Jan 2009 18:39:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869871
Xref: news.mathworks.com comp.soft-sys.matlab:510486


"Erik" <Idont@wantSpam.co> wrote in message <gk5gle$l6j$1@fred.mathworks.com>...
> I can apply them to all the buttons but there are many buttons and I was hoping that I wouldnt have to do that.

Erik,

You should set the WindowKeyPressFcn property of the figure. This gets called even if other components in your figure have focus.


jiro