Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Focus loss using keypresses in 'listbox' GUI control
Date: Mon, 12 May 2008 16:38:04 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <g09rpc$rql$1@fred.mathworks.com>
References: <g09jf4$bat$1@fred.mathworks.com> <g09n3b$ik6$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210610284 28501 172.30.248.35 (12 May 2008 16:38:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 12 May 2008 16:38:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1215962
Xref: news.mathworks.com comp.soft-sys.matlab:467942



"matt dash" <n.a@mail.com> wrote in message
<g09n3b$ik6$1@fred.mathworks.com>...
> I have a similar setup where you can scroll through
> variables in a list and they are plotted, and it works fine.
> (With no need to re-set focus). Maybe try using the image
> command instead of imshow, and specify the axes as a
> property of the image instead of using the axes command. 

Wicked -- that's totally the solution. Create an image
object using the image() function, then set its properties
accordingly. Focus does not change and the keypresses still
work.

Thanks so much!