Agreed.
I believe it would be best to strip down the API componnets
(dynlayer,dyndocument)
to the basics and put the enhanced functionality into seperate files..
(as stated below)
An idea: add a single function to the DynLayre that tells it to load a
specific extension.
Like, say, you wan to be able to to CSS dynamically on the Dynlayer in
question you could call
MyLayer.initCSS('param','param')..
just a thought..
Doug
----- Original Message -----
From: "Pascal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 11:57 PM
Subject: RE: [Dynapi-Dev] Added methods for DynDocument and DynLayer
> many users use only the basic functionality.. this will not be using these
> type of code.
>
> Adding this is great, only takes up a few bytes, but there will be more of
> these short-hand extensions.. adding more bytes.
>
> so creating an extension file for those type of things, makes it still
easy
> to use, but only included for those who really need it. Normal websites
> might always use simple layer movement and placement not having to find
out
> where the right or bottom edge of a layer is.
>
> Pascal Bestebroer ([EMAIL PROTECTED])
> Software ontwikkelaar
> Oberon Informatiesystemen b.v.
> http://www.oibv.com
>
> > -----Oorspronkelijk bericht-----
> > Van: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]Namens Michael
> > Pemberton
> > Verzonden: donderdag 8 februari 2001 5:57
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: Re: [Dynapi-Dev] Added methods for DynDocument and DynLayer
> >
> >
> > What is wrong with adding four bug-free lines to eliminate
> > the need for
> > repeatative coding further on.
> >
> > Doug Melvin wrote:
> >
> > > More functions? You mean make the Layer Even bigger?
> > > ----- Original Message -----
> > > From: "Michael Pemberton" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, February 06, 2001 5:58 PM
> > > Subject: [Dynapi-Dev] Added methods for DynDocument and DynLayer
> > >
> > > > I find that many widgets and functions (eg dargging) use
> > layer.x+layer.w
> > > > to calculate the edge of the layer. I suggest that there
> > be two new
> > > > methods added to the layer and coument objects that
> > calculate this for
> > > > you.
> > > >
> > > > Here's the code:
> > > >
> > > > DynLayer.prototype.getX2=function() { return
> > this.x+this.getWidth(); };
> > > > DynLayer.prototype.getY2=function() { return
> > this.y+this.getHeight(); };
> > > >
> > > > DynLayer.prototype.getPageX2=function() { return
> > > > this.getPageX()+this.getWidth(); };
> > > > DynLayer.prototype.getPageY2=function() { return
> > > > this.getPageY()+this.getHeight(); };
> > > >
> > > > DynDocument.prototype.getX2=DynDocument.prototype.getX2;
> > > > DynDocument.prototype.getY2=DynDocument.prototype.getY2;
> > > >
> > > > --
> > > > Michael Pemberton
> > > > [EMAIL PROTECTED]
> > > > ICQ: 12107010
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Dynapi-Dev mailing list
> > > > [EMAIL PROTECTED]
> > > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> > >
> > > ---
> > > Outgoing mail is certified Virus Free by AVG Free Edition
> > > http://www.grisoft.com/html/us_index.cfm
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.230 / Virus Database: 111 - Release Date: 1/25/01
> > >
> > > _______________________________________________
> > > Dynapi-Dev mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
> > --
> > Michael Pemberton
> > [EMAIL PROTECTED]
> > ICQ: 12107010
> >
> >
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
---
Outgoing mail is certified Virus Free by AVG Free Edition
http://www.grisoft.com/html/us_index.cfm
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.230 / Virus Database: 111 - Release Date: 1/25/01
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev