Screen Sizer

Downloaded 77 times
Average rating
(0 votes)

This module will generate a set of globals containing the current screen size in pixels and points. It also contains functions to position windows and panels using percentage values.

Features

Initialize(winXX)
Initializes the package.

SetFrame(left%,top%,right%,bottom%)
Defines the frame as percentages of the current screen size.

MoveFrontWindow(left%,top%,right%,bottom%)
Moves the frontmost window (graph, panel, table, ...) to the given position as percentages.

MoveCmdWindow(left%,top%,right%,bottom%)
Same as above except for the Command Window.

MakePanel(left%,top%,width,height,NameStr,[other])
Make a new panel as specified by left%, top% and extending as width and height.

MakeExtPanel(side,offset,width,height,NameStr,[other])
Create an external panel attached to the given side of a graph.

SaveWinCoords([name])
Save the coordinates of the named window (default is frontmost).

RestoreWinCoords(how, [name])
Restores the coordinates of the named window (default is frontmost) with/without shrinking/expanding or moving back into frame.

SaveAllWindows()
Saves the coordinates of all windows.

RestoreAllWindows(how)
Restores the coordinates of all windows.

Help()
Displays the Help file for ScreenSizer.

Distribution Details

  • Experiments: none
  • Procedure Files: ScreenSizer
  • XOPS: none
  • Demos: none
  • Requires Packages: NONE
  • Help Files: ScreenSizerHelp
  • Documentation: the Web pages for this project

See also a code snippet here for a similar function using a STRUCTURE.

Installation Notes

To install, first download and unzip the ZIP archive from the release version. Then, follow one of three paths:

  1. Move the ScreenSizer folder into the User Procedures folder of Igor Pro. Include the command
    #include "ScreenSizer"

    in your package or insert it in the macro window.

  2. Follow the method above. Create a shortcut/alias to the file ScreenSizer.ipf. Move the shortcut/alias into the Igor Procedures folder of Igor Pro. The module will then always be accessible to all experiments.

  3. Move the ScreenSizer folder into the Igor Procedures folder of Igor Pro. The module will then always be accessible to all experiments. (This method is the least preferred one!)

User Notes

Open the help file for details. Alternatively, after the package is installed, type ScreenSizer#Help() on the command line of any Igor experiment.

Releases

Official releasesDateSizeLinks
IGOR.6.03.x-1.12008-Jan-142.22 KB
IGOR.6.03.x-1.22008-Jan-312.39 KB
IGOR.6.03.x-1.42008-Jun-169.96 KB
IGOR.6.03.x-1.52008-Jul-079.94 KB
IGOR.6.03.x-1.62008-Jul-1011.3 KB
IGOR.6.03.x-1.72008-Jul-1011.29 KB

Back to top