For MultiView 1.8 I plan to include Multi-Image support.
I was waiting to figure out what to do about my current TIFF Datatype. The Datatype itself works with standard Datatypes Viewers, Picture Viewers & Paint Programs. But MultiView OpenDTO causes a problem in how it gets a Datatype. That method is not compatible with TIFF.
So the solution is to solve both requirements - open TiFF images & provide Multi-Image support. When MultiView starts the first thing it will do is "Check_Multi_Image". It will get the Datatype from file in the normal manner then test it. It will test for icons & Pictures. It will query the Datatype Class such as Picture, Sound, Text, etc.. If class is "Picture" it will find the Base name. It is looking for TIFF, MNG, or JNG. If found or if it finds an icon file it returns TRUE for Multi-Image support.
If Multi-Image is FALSE then MultiView will load the Datatype as it usually does. If, however, it is TRUE then it will load the Datatype differently to support multiple images. For example for Icons or TIFF maybe the TAB button toggles Next Image. We use the same window if the image is the same size but we use Erase Rectangle before drawing the next image. If the images are different sizes simply close the window & open a new one for the 2nd image.
Multi-Image support involves WhichPicture & GetNumPictures. TIFF, MNG & JNG (when I finish them) will all support these two methods. Other Multi-Image Formats can be added later when they become available. ICO Datatype, INFO Datatype & ICNS Datatype already support these methods for Multi-Images.