|
On first glance maxfig does exactly what I was after, however...
maxfig maximizes the figure, but dispite being the first line or so in the m-file it doesn't seem to apply it until after the figures and textboxes have been filled; the textboxes still aren't in the correct alignment.
However, if I put a breakpoint after the maxfig statement then it all works great.
Any suggestions?
Many thanks
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <99749d2c-180c-48fa-8475-289182e9e503@w21g2000yqm.googlegroups.com>...
> The official Mathworks recommendation is to use "maxfig" which is
> located on their web site.
> http://www.mathworks.com/support/solutions/en/data/1-3MY8PN/?solution=1-3MY8PN
>
> Then put this code in your outputFcn function (if you're using GUIDE):
>
> % Call special function that The Mathworks gave me to maximize the
> window and leave it in focus.
> % minfig(F,1) % minimizes the figure window for the figure with
> handle F
> % minfig(F,0) % restores figure F if F is minimized
> % maxfig(F,1) % maximizes the figure window for the figure with
> handle F
> % maxfig(F,0) % restores figure F if F is maximized s = figstate(F)
> % returns the state of figure { Maximized | Minimized | Normal }
> % Note: This works only if the window is already displayed. If not,
> it will throw a java exception.
> % The best place to put this is in the yourApp_OutputFcn(),
> % which actually gets called as the last thing before your app is
> made available to the user.
> maxfig(handles.figMainWindow, 1) % Maximizes the figure window for
> the figure with handle in the first argument.
|