forked from petrowsky/fmpfunctions
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwindow.offscreen.fmfn
More file actions
30 lines (28 loc) · 923 Bytes
/
window.offscreen.fmfn
File metadata and controls
30 lines (28 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* =====================================================
* window.offscreen( property )
*
* RETURNS: (int) Value of where window should appear.
* DEPENDENCIES: developer()
* NOTES: none
* =====================================================
*/
Let ( [
var.onscreen = developer and $$DEVELOPER;
var.offset = 100;
var.property = Left ( property ; 1 ) // Account for use of single letters or full word by using Left()
];
Case (
var.property = "t" ; If ( var.onscreen ; Get ( WindowTop ) + var.offset ; Get ( WindowDesktopHeight ) );
var.property = "l" ; If ( var.onscreen ; Get ( WindowLeft ) + var.offset ; Get ( WindowDesktopWidth ) );
0
)
)
/*
Special note about $$DEVELOPER.
This value is used solution wide to control
when scripts operate in a developer mode
This allows you to see windows and other
developer specific operations or screens.
This value can be set at startup.
*/