Scripting Resources for DigitalMicrograph™

banner

Dave Mitchell's DigitalMicrograph™ Scripting Website

Home | Scripts | Examples | Functions | Recent Updates | Tutorials | Resources | Publications | Consulting | Projects | Contact & Bio |PyJEM| Search

 

Cascade All Open Images
Function
Cascades all open images from top left to bottom right.
Version
version:20021108. v1.0
Author
D. R. G. Mitchell
Acknowledgements
-
Comments
This functionality is included in the DisplayTools control palette.
System Requirements
Should be compatible with all recent versions of DigitalMicrograph.
Known Issues
-
Supported
Yes
Included Files
Main script file.
Source Code

// Script to show all hidden images

// D. R. G. Mitchell Nov. 2002

// version:20021108. v1.0

// adminnospam@dmscripting.com (remove the nospam to make this email address work)

imagedocument img

number shown, i,inc=0, imageoffset=30

 

// Document window of type 5 are those which are shown

shown=CountDocumentWindowsOfType(5)

 

// Loop to display all the shown images in a cascaded sequence

 

for(i=0; i<shown; ++i)

{

img=getimagedocument(i)

imagedocumentshowatposition(img,142+inc, 24+inc)

inc=inc+imageoffset

}