Thread Subject: R2006b dialog throws error with DockControls

Subject: R2006b dialog throws error with DockControls

From: Dan K

Date: 6 Sep, 2006 07:49:02

Message: 1 of 2

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

Subject: R2006b dialog throws error with DockControls

From: Dan K

Date: 6 Sep, 2006 10:49:41

Message: 2 of 2


Dan K wrote:
> 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

Wanted to let folks know I found a workaround for this one:
*first make a copy of dialog.m and dialog.p which are in
$matlabroot\toolbox\matlab\uitools*

edit dialog.m

In dialog.m
on line 85: find the place where the figure is created and put the line
which says:
'WindowStyle' ,winstyle , ...

Before the line which says:
'DockControls' ,dockctrls , ...

save the m file. Make this directory your working directory (i.e. cd
'$matlabroot\toolbox\matlab\uitools'

In the command window type: pcode dialog

The dialogs should work again.

HTH

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com