This isn't anything amazing but I haven't seen an equivalent here packaged for easy reuse.
Scrollio is a simple VB6 UserControl with no dependencies that provides a scrollable view of any StdPicture. In addition to scrollbars it allows zooming, either to fit its window or to a specified zoom factor.
When the ZoomFit property is True Scrollio will rescale to match any resizing done by the container's (Form's) logic.
VB6's LoadPicture() has some image file type limitations, so if you need to be able to load PNG or TIFF images you could use the GDI+ Flat API or the convenient WIA 2.0 wrapper library.
![Name: sshot.png
Views: 47
Size: 21.5 KB]()
The control itself is fairly small, and almost all of the attachment archive's size comes from the rest of the demo Project ("Scrolliodo") and even more from the sample images provided.
To use it in your own Projects just copy Scrollio.ctl and Scrollio.ctx to your Project's folder and then do an "Add file..." in the IDE to add Scrollio.ctx to your Project.
Tested on Windows 95 OSR2, Windows XP SP3, Windows Vista SP2, and Windows 7 SP1.
Scrollio is a simple VB6 UserControl with no dependencies that provides a scrollable view of any StdPicture. In addition to scrollbars it allows zooming, either to fit its window or to a specified zoom factor.
When the ZoomFit property is True Scrollio will rescale to match any resizing done by the container's (Form's) logic.
VB6's LoadPicture() has some image file type limitations, so if you need to be able to load PNG or TIFF images you could use the GDI+ Flat API or the convenient WIA 2.0 wrapper library.
The control itself is fairly small, and almost all of the attachment archive's size comes from the rest of the demo Project ("Scrolliodo") and even more from the sample images provided.
To use it in your own Projects just copy Scrollio.ctl and Scrollio.ctx to your Project's folder and then do an "Add file..." in the IDE to add Scrollio.ctx to your Project.
Tested on Windows 95 OSR2, Windows XP SP3, Windows Vista SP2, and Windows 7 SP1.