octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: figure positioning problem


From: Michael Goffioul
Subject: Re: figure positioning problem
Date: Sat, 19 Nov 2011 22:34:01 +0000

On Sat, Nov 19, 2011 at 8:55 PM, Ben Abbott <address@hidden> wrote:
>> My guess is that the FLTK backend associate the position property with
>> the internal size (excluding title bar and window border) of the main
>> container in the figure window, but that container also includes the
>> status bar.
>>
>> Michael.
>
> Any thoughts as to why the result from a script is different than from the 
> command line?

Maybe because in a script, the figure is not created immediately. It's
only created on the next drawnow, which happens at the next octave
prompt. This also means that the figure won't be displayed, and it
won't get any resize event (in any windowing system, a window receives
a resize event just before being shown the first time). However, that
initial resize event is what will adjust the position property to the
actual window size. So until the figure is displayed, the position
property value may not be correct.

Michael.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]