|
From: | Dmitri A. Sergatskov |
Subject: | Re: FLTK refresh required |
Date: | Wed, 31 Jul 2013 19:52:13 -0500 |
Ok. This is working for me on Mac OSX. I'm hopeful it will also work on Linux (I fixed several problems). This changest sometimes misses a refresh/update for the menubar or toolbar. If anyone can offer hints (or a fix), I'd appreciate it.
To test the changeset, please enter the five commands below successively and verify the behavior described.
(1) `figure ()', produces a blank (gray) figure window with a menubar at the top and a toolbar at the bottom. The size of the canvas area matches the "defaultfigureposition" (560 x 420).
(2) `plot (rand (3))', produces a plot. Again, the plot canvas should match the "defaultfigureposition" (560 x 420). However, on Ubuntu/VBOX, I get (560 x380), and am not sure why. If the menubar and/or toolbar do not refresh, click on the plot and they should become visible.
(3) `print foo.png', this resizes the plot, produces the "foo.png" and then returns the figure to its original size. Check that the "foo.png" is correct in size (1200x900 pixels).
(4) `set (gcf (), "menubar", "none")', should remove the menubar and decrease the size of the window. Since the top of the plot canvas is anchored by the figure's "position" property, this will drop the top of the window by the hight of the menubar. The toolbar refresh properly, but can be recovered by clicking on the bottom of the window.
(5) `set (gcf (), "menubar", "figure")', should restore the menubar.
Ben
Screenshot_from_2013-07-31_19:34:57.png
Description: PNG image
[Prev in Thread] | Current Thread | [Next in Thread] |