John,
"John Clonts" <
[hidden email]> wrote in message
news:
[hidden email]...
> I tried to do:
>
> ImagePresenter showOn: (Icon fromId: 'Model.ico')
The "Default view" class for an ImagePresenter is StaticBitmap which is the
correct class to display bitmap files. To display an icon you need to use
the StaticIcon class. ImagePresenter already has this as an alternative
(i.e. non default) view. To open the ImagePresenter with one of it's
alternative views you have to specify the view's name. So -
ImagePresenter show: 'Static icon' on: (Icon fromId: 'Model.ico')
If you locate ImagePresenter in the ResourceBrowser you will see that it can
be opened with three view classes -
"Basic image" uses a StaticImage
"Default view" uses a StaticBitmap
"Static icon" uses a StaticIcon
Ian