I don't think it'll break any widgets (but they'll have to be updated anyway). Almost every time the first argument is set to null or ''. And in fact widgets should never set the ID manually. I don't believe I've ever explicitly called setID() on any dynlayer since I originally wrote the first create system for DynAPI2.
I'd prefer to have at least the 6 most often used arguments static: DynLayer(html,x,y,w,h,color) We used to have a setStyle() method that worked the way you're suggesting. But I never used it. It breaks consistancy by making two different ways to do the same thing. I'd like to get away from having the constructor of DynLayer be a "kitchen sink" like is in the current version. My version will be released as v2.6 on sourceforge, either as a drop in replacement for 2.5x or as a fork. I may release a 2.6beta on my own before it's integrated into CVS. Regards, Dan Steinman On Fri, Nov 02, 2001 at 08:26:24AM -0800, Raymond Irving wrote: > Dan, > > I've been thinking about your idea to change the > arguments in DynLayer from (id,x,y,w,h) to > (html,x,y,w,h). This could really break all the > widgets and dynapi extensions that are currently in > use today. But if the change is inevitable I would > like to propose the use of the following approach: > > DynLayer(id,x,y,parameters), where parameters > ={bgcolor:'#000000',visible:true,bgimage:'myfile.gif'} > > Thus we could simple enter parameters without having > to remember the order: > > layer=new > DynLayer(null,x,y,{bgimage:'myfile.gif',zindex:1}) > layer1=new DynLayer(null,x,y,{bgcolor:'#ffcc00'}) > layer2=new DynLayer(null,x,y,{html:'<b>Cool!</>'}) > > > I would also like if the new version will be on > dynapi.sourceforge.net or will it be a separate > project? > > > Best regards > -- > Raymond > > > __________________________________________________ > Do You Yahoo!? > Find a job, post your resume. > http://careers.yahoo.com > > _______________________________________________ > Dynapi-Dev mailing list > [EMAIL PROTECTED] > http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/ _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/