ScreenSizer IGOR.6.03.x-1.1

in
Downloaded 17 times
Official release from Subversion tag: IGOR-6-03--1-1
Download: ScreenSizer-IGOR.6.03.x-1.1.zip
Size: 2.22 KB
md5_file hash: b44ab9c99d35f2c3bd670446ef9f1cf0
First released: January 14, 2008 - 18:18
Last updated: January 14, 2008 - 19:00

Overview

This is the first official release of the project.

Features

Initialize(winXX)
Initializes the package. On WinXX systems, with winXX=0, the frame is kept at its current size, whereas with winXX=1, the frame is sized to fill the entire screen. On MacOS systems, this parameter has no function (but must be present in the call). The function Initialize(0) is also called at the start of all routines below.

SetFrame(left%,top%,right%,bottom%)
Defines the frame (content region on MacOS, client area on WinXX) as percentages of the current screen size. Initialize values are (0, 0, 100, 100). Safer values to allow for MacOS and WinXX menu bars as well as some nice border would be (2, 10, 98, 98).

MoveFrontWindow(left%,top%,right%,bottom%)
Moves the frontmost window (graph, panel, table, ...) to the given position as percentages of the current content region (MacOS) or client area (WinXX).

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

MakePanel(left%,top%,width,height,NameStr,[other])
Make a new panel starting at the content region or client area location specified by left%, top% and extending as width and height (in PIXELS!). Note, negative values of left% or top% will locate the origin of the panel at the right or bottom, respectively. The NameStr is the name of the panel, and [other] is an optional string to append to a NewPanel call.

Examples

Initialize (Full Frame on WinXX)

ScreenSizer#Initialize(1)

Define a Nice Working Frame

ScreenSizer#SetFrame(2,10,98,98)

Make a Panel
This puts a panel "My New Panel" that is 120 x 240 pixels with its left,top origin at the 50%,50% location. The panel is killable without a dialog box.

ScreenSizer#SetFrame(0,0,100,100)
ScreenSizer#MakePanel(50,50,120,240,"My New Panel",other="/K=1")

This puts the same panel.

ScreenSizer#SetFrame(50,50,100,100)
ScreenSizer#MakePanel(0,0,120,240,"My New Panel",other="/K=1")

This puts the panel flush right on the current content region or client area.

ScreenSizer#SetFrame(2,10,98,98)
ScreenSizer#MakePanel(-100,0,120,240,"My New Panel",other="/K=1")

Back to top