Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon06.news.prodigy.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!d34g2000cwd.googlegroups.com!not-for-mail
From: "Dan K" <dkominsky@primephotonics.com>
Newsgroups: comp.soft-sys.matlab
Subject: R2006b dialog throws error with DockControls
Date: 6 Sep 2006 07:49:02 -0700
Organization: http://groups.google.com
Lines: 26
Message-ID: <1157554142.827948.87950@d34g2000cwd.googlegroups.com>
NNTP-Posting-Host: 206.158.106.243
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1157554148 28836 127.0.0.1 (6 Sep 2006 14:49:08 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 6 Sep 2006 14:49:08 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6,gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.0 SRV1
Complaints-To: groups-abuse@google.com
Injection-Info: d34g2000cwd.googlegroups.com; posting-host=206.158.106.243;
Xref: news.mathworks.com comp.soft-sys.matlab:368348



Don't know if anybody else has noticed this yet, but I just installed
R2006b, and discovered that because of the way it is parsing property
value pairs, it has a real problem with the DockControls property.

Try this:
set(0,'DefaultWindowStyle','docked')


test=figure('DockCointrols','off','WindowStyle','normal')

>> test=figure('DockControls','off','WindowStyle','normal')
??? Error using ==> figure
Error using ==> figure
Cannot set DockControls to 'off' while WindowStyle is 'docked'



You can use modal too in the test line.  Now, the following works fine
for me:
test=figure('WindowStyle','normal',DockCointrols','off')

Since I use the defaultwindowstyle, this has broken a whole lot of my
m-files.  I'd really like a speedy fix on this one.  Anybody else?

Dan K