This package contains a View resource for Dolphin Smalltalk's ImagePresenter, that can be used in place of the base ImageView/StaticBitmap view resources. It adds an additional scaling mode, and the option of drawing various borders around the image.
The above screenshot is from the sample application that can be used to explore the various scaling modes/border options.
The package adds a couple of loose methods to Canvas and UserLibrary which wrap the Win32 drawEdge function. This function can draw the typical windows borders; #raised, #sunken, #etched, #bump. Additionally, you can use your own symbol selector, and the view will send that selector to draw the border.
While this class does not offer much over the base Object-Art's ImageView, I have found that putting a border around an image can be a subtle way to improve the presentation of the image. In addition, I find that programmatically toggling between two border edge styles can be a good way to highlight a selected or hot image.
The packages are released under the OpenBSD license (ie free). The "SW BorderImageView.pac" package includes the view class and a resource for ImagePresenter. The "SW BorderImageView Sample.pac" package contains the Sample shell and the SessionManager that was used to deploy the test ToGo. The "SW BorderImageView Tests.pac" pacakge contains some limited tests.
The ToGo is released as TestWare ... if you have a problem with the code or technique in your environment, you will be doing me a favor by letting me know about it.
The test ToGo has been run successfully on WinXP, Win2k and Win95 (with IE5) machines.
Copyright Steve Waring 2003.