[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: |
Wed, 2 Nov 2011 23:45:23 -0400 |
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.
jwe
- setting position of fltk figure windows,
John W. Eaton <=