[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
setting position of fltk figure windows
From: |
John W. Eaton |
Subject: |
setting position of fltk figure windows |
Date: |
Thu, 3 Nov 2011 01:36:35 -0400 |
On 2-Nov-2011, John W. Eaton wrote:
| Using the current development sources, neither of the following
| functions are setting the position of the figure window. Can anyone
| else duplicate this behavior?
|
| function f ()
| figure ("position", [200, 400, 400, 50]);
| drawnow ();
| endfunction
|
| function g ()
| h = figure ();
| set (h, "position", [200, 400, 400, 50]);
| drawnow ();
| endfunction
|
| graphics_toolkit fltk
| f ()
| g ()
|
| However, executing the following at the command line does work:
|
| h = figure ();
| set (h, "position", [200, 400, 400, 50]);
|
| provided that the figure is drawn before the set command is executed.
| So neither of the following are working for me either:
|
| h = figure (); set (h, "position", [200, 400, 400, 50]);
|
| figure ("position", [200, 400, 400, 50]);
|
| Ah, OK, the following does work (well, apparently only sometimes; or
| maybe only for the first plot window after setting the graphics
| toolkit to fltk):
|
| function g ()
| h = figure ();
| drawnow ();
| set (h, "position", [200, 400, 400, 50]);
| endfunction
|
| But even if this way did work reliably, it makes a larger window flash
| on the screen before it is resized and moved. And in any case,
| shouldn't any of these work? And shouldn't I be able to set the size
| of the window before it is drawn?
|
| To confuse things even more, gnuplot behaves differently, of course.
Never mind. I checked in the following change to fix it for fltk:
http://hg.savannah.gnu.org/hgweb/octave/rev/718f78b01de1
I think there is still a problem with the way gnuplot is working
though.
jwe