Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Modifiable behaviors in C++

4 views
Skip to first unread message

Sandy Steudel

unread,
Jun 24, 1998, 3:00:00 AM6/24/98
to

Hi,

by now I have realized that the best way to change properties of an
image after the start of the view are modifiable behaviors (if it's
impossible to predefine the properties in an Until() statement).
I especially want to change the opacity and position of an image.

I've tried a lot of different ways, but I can't get anything useful with
the ModifiableBehavior() and SwitchTo() functions. What do I have to
declare 'modifiable' (and how): the image, the number that characterizes
the opacity, or a special IDABehaviorPtr? However, the problem seems to
be the 'switching'; I mostly end up with statements like this
img->SwitchTo(img->Opacity(x))
which causes a run-time error.

Can anyone help me with this, if possible with sample code (there are a
few lines in the DrgImgCntrl sample and I've tried to apply them to my
problem -- without success)?

Thanks a lot

Sandy

0 new messages