Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: uisetcolor + activeX ->figure without focus, if compiled
Date: Fri, 13 Mar 2009 16:33:01 +0000 (UTC)
Organization: Rieter Automotive Management AG
Lines: 7
Message-ID: <gpe1rt$ba$1@fred.mathworks.com>
References: <gpdqsp$29p$1@fred.mathworks.com> <gpds29$l8b$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 1236961981 362 172.30.248.38 (13 Mar 2009 16:33:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 13 Mar 2009 16:33:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 562591
Xref: news.mathworks.com comp.soft-sys.matlab:524653


> You can use figure(f) to programmatically regain figure focus, or uicontrol(h) to set the focus to a specific uicontrol handle (which you should get from the initial uicontrol invocation). I believe that the latter option (uicontrol(h)) is not documented in uicontrol's help section but it is documented in the detailed doc.
> 
I put the command in my testapplication and indeed the focus switchs from
the command window back to the figure.
But I can access the figure. I can't press the button or close, minimize or maximize the figure.

Andreas