Hello everyone, Sometime ago some of our users had a problem with setHTML(). Whenever setHTML() was called after you added a child layer it would erase the child and overwrite the html content.
The BlackBoard approach: lyr.setBlackBoard(b,x,y); Once the blackBoard is setup (before the layer is created) you can then call setHTML() and if will not erase the child layers but overwrite the html content. This will make it easier for us to create things like the button widget: lyr.setBlackBoard(true); lyr.addChild(new DynLayer(),'_lyrCover'); dynapi.document.addChild(lyr); lyr.setHTML('Click Here'); lyr._lyrCover.setAnchor({left:0,top:0,stretchH:'100%',stretchV:'100%'}); .... lyr.setHTML('Ok'); Any comments? -- Raymond Irving __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/