ImagePresenter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ImagePresenter

Don Hamilton
I would appreciate it someone could tell me where I might be going wrong
here.

I drag an ImagePresenter default view onto my view select 'value' from the
aspect value pane and am then prompted for the bitmap, which I then select.
Resulting in value = DIBSection fromId: 'globe.bmp'. (the bitmap resides in
my Dolphin home directory).

The selected bitmap obliging appears and does so after saving and when
tested. But when I show the shellview from a workspace the bitmap is not
there, just an empty presenter.

There seems very little to go on except looking at LiveUpdate which is the
only reference there is to an ImagePresenter but as far as I can see it is
no different to what I have.


Reply | Threaded
Open this post in threaded view
|

Re: ImagePresenter

Louis Sumberg-2
Don,

For what it's worth, it works in my image.  If I choose an ImagePresenter
'Default view', then the view is a StaticBitmap and the aspect is "image",
not "value", as you said.  If I choose ImagePresenter 'Basic image', then
the view is an ImageView and the aspect is "value".  In either case, I was
able to double-click on the aspect, choose a bitmap (from my Windows
directory), save the shell and open the shell from a workspace.  The
following both work when evaluated from a workspace:

ImagePresenter show model: (DIBSection fromId: '..\..\WINDOWS\Bubbles.bmp').
(ImagePresenter show: 'Basic image') model: (DIBSection fromId:
'..\..\WINDOWS\Bubbles.bmp').

I notice the filename is saved with a relative location, so you might try
changing this to a fixed location, though I'd be surprised if that makes a
difference.

-- Louis


Reply | Threaded
Open this post in threaded view
|

Re: ImagePresenter

Don Hamilton
Louis,

Many thanks for putting me on the right course, it had me completely baffled
up till then. The next thing is to master Splash, but there seems plenty to
look up on that subject.

It's an uphill battle at times but the answers to most problems can seem to
found if one digs around.

Don