From: <no...@so...> - 2001-01-19 16:45:19
|
Bug #128316, was updated on 2001-Jan-10 11:02 Here is a current snapshot of the bug. Project: DynAPI 2 Category: Core - Widgets Status: Closed Resolution: None Bug Group: None Priority: 5 Submitted by: nobody Assigned to : nobody Summary: Changing the image on a Button does not work Details: I found that dynamically changing the image associated with a Button (dynapi.gui.button.js) after the button has been created does not work. I think the problem is in Button.prototype.setImage. The last line is else this.imglyr.doc.images[0].src - this.img.src; I think this should be changed to else this.imglyr.setImage(this.img); That is, pass the job of changing the image on to the DynImage object. Follow-Ups: Date: 2001-Jan-19 08:45 By: rainwater Comment: setImage requires that you pass an image object, and not a string pointing to the image. If you an image object, then the image will be changed. However, if needed, we can check for a string and call this.imglyr.setImageSrc() if that is really needed (even though it would be slower). ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=128316&group_id=5757 |