attachlist_imageview
The attachlist_imageview creator function is a non-class function that creates a new CImageView object attached to an image window on the Mira desktop. The script can then collect data from the image and change its contents. This function requires the user to select the target window from a list of all image windows on the desktop. This function does not use an existing CImageView object. Also see the equivalent class method CImageView:AttachFromList.
The related attach_imageview function and CImageView:Attach method attach to the top-most image window.
CImageView_obj = attachlist_imageview() |
On
success, a new CImageView object CImageView_obj is returned.
On
failure, nil is
returned. This usually means no image window is shown on the Mira
desktop.
This function collects all Image View windows on the Mira desktop for selecting the target window. If more than one Image View window is open, they are listed by name for selection. The selected window is returned as a new CImageView object. Note that the list includes the number of images in the image set owned by the window.
Assume that several image windows are displayed on the Mira desktop along with other windows. The following script attaches one of the image windows to the script:
|
-- select the target image window |
|
-- if not successful, exit the script |
|
-- print the title of the attached window |
Mira Pro x64 Script User's Guide, v.8.77 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.