Window management: Difference between revisions

Content added Content deleted
(Added Perl translation of Tcl implementation.)
Line 140: Line 140:
{{libheader|Icon Programming Library}}
{{libheader|Icon Programming Library}}
[http://www.cs.arizona.edu/icon/library/src/procs/graphics.icn graphics.icn provides graphics]
[http://www.cs.arizona.edu/icon/library/src/procs/graphics.icn graphics.icn provides graphics]

=={{header|Mathematica}}==
Mathematica can only easily access and control windows created by itself.

<lang Mathematica>nb=NotebookCreate[]; (*Create a window and store in a variable*)
nb===nb2 (*test for equality with another window object*)
SetOptions[nb,Visible->False](*Hide*)
SetOptions[nb,Visible->True](*Show*)
NotebookClose[nb] (*Close*)
SetOptions[nb,WindowMargins->{{x,Automatic},{y,Automatic}}](*Move to x,y screen position*)
SetOptions[nb,WindowSize->{100,100}](*Resize*)
</lang>


=={{header|Nimrod}}==
=={{header|Nimrod}}==