<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/131901</link>
    <title>MATLAB Central Newsreader - R2006b dialog throws error with DockControls</title>
    <description>Feed for thread: R2006b dialog throws error with DockControls</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Wed, 06 Sep 2006 07:49:02 -0400</pubDate>
      <title>R2006b dialog throws error with DockControls</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/131901#332185</link>
      <author>Dan K</author>
      <description>Don't know if anybody else has noticed this yet, but I just installed&lt;br&gt;
R2006b, and discovered that because of the way it is parsing property&lt;br&gt;
value pairs, it has a real problem with the DockControls property.&lt;br&gt;
&lt;br&gt;
Try this:&lt;br&gt;
set(0,'DefaultWindowStyle','docked')&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
test=figure('DockCointrols','off','WindowStyle','normal')&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; test=figure('DockControls','off','WindowStyle','normal')&lt;br&gt;
??? Error using ==&amp;gt; figure&lt;br&gt;
Error using ==&amp;gt; figure&lt;br&gt;
Cannot set DockControls to 'off' while WindowStyle is 'docked'&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
You can use modal too in the test line.  Now, the following works fine&lt;br&gt;
for me:&lt;br&gt;
test=figure('WindowStyle','normal',DockCointrols','off')&lt;br&gt;
&lt;br&gt;
Since I use the defaultwindowstyle, this has broken a whole lot of my&lt;br&gt;
m-files.  I'd really like a speedy fix on this one.  Anybody else?&lt;br&gt;
&lt;br&gt;
Dan K</description>
    </item>
    <item>
      <pubDate>Wed, 06 Sep 2006 10:49:41 -0400</pubDate>
      <title>Re: R2006b dialog throws error with DockControls</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/131901#332220</link>
      <author>Dan K</author>
      <description>&lt;br&gt;
Dan K wrote:&lt;br&gt;
&amp;gt; Don't know if anybody else has noticed this yet, but I just installed&lt;br&gt;
&amp;gt; R2006b, and discovered that because of the way it is parsing property&lt;br&gt;
&amp;gt; value pairs, it has a real problem with the DockControls property.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Try this:&lt;br&gt;
&amp;gt; set(0,'DefaultWindowStyle','docked')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; test=figure('DockCointrols','off','WindowStyle','normal')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; test=figure('DockControls','off','WindowStyle','normal')&lt;br&gt;
&amp;gt; ??? Error using ==&amp;gt; figure&lt;br&gt;
&amp;gt; Error using ==&amp;gt; figure&lt;br&gt;
&amp;gt; Cannot set DockControls to 'off' while WindowStyle is 'docked'&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; You can use modal too in the test line.  Now, the following works fine&lt;br&gt;
&amp;gt; for me:&lt;br&gt;
&amp;gt; test=figure('WindowStyle','normal',DockCointrols','off')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Since I use the defaultwindowstyle, this has broken a whole lot of my&lt;br&gt;
&amp;gt; m-files.  I'd really like a speedy fix on this one.  Anybody else?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Dan K&lt;br&gt;
&lt;br&gt;
Wanted to let folks know I found a workaround for this one:&lt;br&gt;
*first make a copy of dialog.m and dialog.p which are in&lt;br&gt;
$matlabroot\toolbox\matlab\uitools*&lt;br&gt;
&lt;br&gt;
edit dialog.m&lt;br&gt;
&lt;br&gt;
In dialog.m&lt;br&gt;
on line 85: find the place where the figure is created and put the line&lt;br&gt;
which says:&lt;br&gt;
'WindowStyle'      ,winstyle  , ...&lt;br&gt;
&lt;br&gt;
Before the line which says:&lt;br&gt;
'DockControls'     ,dockctrls , ...&lt;br&gt;
&lt;br&gt;
save the m file.  Make this directory your working directory (i.e. cd&lt;br&gt;
'$matlabroot\toolbox\matlab\uitools'&lt;br&gt;
&lt;br&gt;
In the command window type:  pcode dialog&lt;br&gt;
&lt;br&gt;
The dialogs should work again.&lt;br&gt;
&lt;br&gt;
HTH</description>
    </item>
  </channel>
</rss>

