|
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
|