Arrange Windows

Category: Data Display
Author:
Description: This script deals with presenting the windows (images, scripts, results) within the DM application window. It saves several parameter sets in the global tags, so that specific image arrangements can be easily selected. If the script is started with the ALT key pressed, it will present a dialog box. If not, it will run with the last settings. In the following I am going to describe the options of the dialog window from top to down. general section: * always display options: If checked, the dialog window will always be displayed regardless of the ALT key. (useful, if you don't call the script from a menu) * Use setting: Enter the name of a parameters-set. Current parameters are loaded, if the set already exists. Else it will be generated and default values are chosen. * Use setting - drop down: A list of predefined parameter-set names to easily access them. When selecting an entry, the name will be automatically used in the "Use setting" field. You can add more entries to the list by altering the source code only. Application window: * resize... : If checked, the DM application window will be rescaled to the given coordinates. * coordinates: The four fields are the coordinates for top, left, bottom and right, respectively. The coordinates are global with 0/0 being the top-left corner of your screen. Results window: * resize... : If checked, the DM application window will be rescaled to the given coordinates. * coordinates: The four fields are the coordinates for top, left, bottom and right, respectively. The coordinates are relative to the Application window with 0/0 being the top-left corner of the DM-window. * show: If checked, the result window will be displayed even if it was hidden before. Else it will only be resized, if already shown. Images: * rearrange image windows...: If checked, Image windows (also Line profiles) will be rearranged. * coordinates: The four fields are the coordinates for top, left, bottom and right, respectively. The coordinates are relative to the Application window with 0/0 being the top-left corner of the DM-window. The coordinates define the "active rectangle" for image display. The meaning changes with different options. * #Img = ?: The "?" is replaced by the number of images which have to be rearranged. The two fields define an x/y array of images. The meaning changes with different options. * "as.." drop down: Here you can select different possible settings: o as exact array [x/y]: Splits the defined active region exactly as specified in the x/y array. Additional images are then presented cascaded active region. o as split horizontal: Splits the active region along the horizontal axis. o as split vertical: Splits the active region along the vertical axis. o as cascade: Fills the active region with cascaded images, so that their title is visible. o as aligned array [x/y,top]: Fills the active region with accordingly scaled images as specified in the x/y array starting from the top. Additional images are then presented cascaded. o as aligned array [x/y,left]: Fills the active region with accordingly scaled images as specified in the x/y array starting from the left. Additional images are then presented cascaded. o as aligned array [x/y,bottom]: Fills the active region with accordingly scaled images as specified in the x/y array starting from the bottom. Additional images are then presented cascaded. o as aligned array [x/y,right]: Fills the active region with accordingly scaled images as specified in the x/y array starting from the right. Additional images are then presented cascaded. o all centred: Presents all images scaled to a window of fixed size centred on the screen * sort images: if selected, the images are sorted according to their image name. Text Windows: * The entries for work exactly as for the Images, but there are fewer options.
Comments: This script uses several auxilary functions from the "bejoscha-scripts" package and the "fScripts" package. Those functions have been included to this script to make it a stand alone script. If you, however, have those packages installed you have to remove them first. (Delete everything above the "End of auxilary functions"-comment.)
Acknowledgements: Some of the auxilary functions were done by Werner Grogger.
Script version: 3.0
DM/GMS version: 3.6.5
Script written as a function: No
Source: Show code
Download Source Code: Download
Download Zip File: Download