[Scilab-users] How to print GUI window?
Samuel Gougeon
sgougeon at free.fr
Thu Aug 1 23:25:13 CEST 2019
Le 01/08/2019 à 23:04, VTX1801 a écrit :
> Further testing an some progress.
>
> Suggestion of GUI window not dockable.
> Looked at the properties of the figure and there is a dockable property.
> The dockable property was set to 'off'.
> Set the dockable property to 'on'.
>
> Executed print command and no Java exception error.
Great.
> figid = f("figure_id");
> disp(figid);
> status = printfigure(figid);
> disp(status);
>
> Console displays 0 for figid.
> Console displays T for status.
>
> One page is printed on the printer.
> However, the printed image is about one third of the plot figure only.
> As though the scale of the print is zoomed in.
>
> Looking for some property to set print to scale whole image to fill printed sheet.
> Is there a Scilab printer property for this purpose?
Not AFAIK, even through printsetupbox().
But you can resize the GUI before exporting it, through its handle with
f.axes_size.
Could you please try with the trivial example below and check whether
the uicontrol appears on the image (before planning to resize and print
it ;-):
plot2d()
uicontrol("style","text","string","Test","position",[10,10,100,20]);
xs2png(gcf(),"test.png")
winopen("test.png")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190801/23659bc3/attachment.htm>
More information about the users
mailing list