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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com