Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: dynamically adding images

From: petr:krenzelok:trz:cz at: 22-Oct-2001 12:03

Carl Read wrote:
> On 22-Oct-01, Petr Krenzelok wrote: > > > 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 ... > > Graham's trying to move from the draw dialect to bitmap images. Are > you saying the draw dialect can be used to display bitmaps? (One can > but hope.:)
of course it can ;-) You can find example in Easy Draw doc in Rebol desktop/rebol.com/docs section ... -pekr-