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

[REBOL] Re: help? dynamic images

From: greggirwin:mindspring at: 28-Oct-2001 11:46

Hi Russ, << I'd like to dynamically add (append) images to a layout. That I can do. But then I'd like to selectively REMOVE them from the layout... by name or other identifier or index. I have achieved removing the LAST one I added, but have not figured how to create an index or identifier so that I can selectively remove a PARTICULAR one. >> I haven't done it by index, but I have done it by face. I.e. the user can click on a face (an image in your case) and hit Ctrl+Delete. I watch for keystrokes and if I see Ctrl+Delete in a face, I do this: remove find face/parent-face/pane face My code is actually a little more involved because I have multiple "related" faces that need to be deleted if *any* of them are deleted, but that's the basic idea. --Gregg