[REBOL] Re: dynamically adding images
From: petr:krenzelok:trz:cz at: 22-Oct-2001 10:10
Brett Handley wrote:
> Hi Graham,
>
> > > > Anyone got a short example on how to add/remove images
> > > > dynamically to a face?
> > >
> > > Each image requires its own face, doesn't it?
> >
> > Don't think so.
> >
> > Perhaps I should clarify - I need to add from 1 to 400 of
> > the same image onto a face. I don't want to put 400 on to
> > the face and move them as required. I want to add/remove
> > them to/from the layout.
>
> I'm a bit rusty not having used Rebol for a while (been travelling), but I
> think Carl is correct, each image is displayed by a face. If you need 1 to
> 400 images incrementally added/removed to/from a layout (the main face) then
> you will need 1 to 400 faces created/destroyed or shown/hidden at the
> appropriate time.
This is not imo true and Cyphre will show us another aproach with his upcoming
game :-) If I understand him correctly, he uses 1 main face, and every other
image is being drawn using draw effect dialect. Then you need only one show to
your top face ... Of course the question is which aproach is more efficient ...
Cheers,
-pekr-