Hmm. Yeah I can see how you can do it with less. (Two less if it's 3d). I
also used a seperate caption layer which made it possible to control the
exact location of the text (inner padding). I also shift it a pixel when
changing from a normal to raised or inset. I used the CoreButton and
CoreToolbar as a starting point which has a lot of these techniques.
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Doug Melvin
> Sent: Sunday, February 25, 2001 9:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: RE: [Dynapi-Help] DropDown menus ? (NS resize)
>
>
> 7 layers?
> adding a border (of a single color) should only take one additional layer.
> adding 3d look should take two additional layers.
>
> Plus a tranparent cover layer is your want event listeners or content..
>
> To tell the truth, I am creating a Layer3D object as wee speak..
> It will be released (in beta for of course) in a couple of hours.
> I'll enhance it to also do solid borders..
> I hadn't thought of that before.
>
> Doug
> ----- Original Message -----
> From: "Ken Ono" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 25, 2001 3:20 PM
> Subject: RE: RE: [Dynapi-Help] DropDown menus ? (NS resize)
>
>
> > Thanks Dave,
> >
> > That code did fix the problem. But, don't you think it is a bug in the
> Dyn
> > Api library that you need to do this? Or do the semantics of the create
> > event dictate this behavior? (which varies between IE/NS)
> >
> > Thanks for doing the testing under NS 6. How is NS6's support for CSS?
> I'm
> > thinking of using a class attribute to generate borders for the
> raised and
> > inset look. This would reduce the number of layers by an order of
> magnitude
> > (with borders there are 7 layers for each menu item. I've
> taken pains in
> > the code that if you do not specify any borders, only one layer
> is created
> > per menu item.
> >
> > Regards,
> >
> > Ken
> >
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of David
> > > Cushman
> > > Sent: Sunday, February 25, 2001 5:23 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: RE: [Dynapi-Help] DropDown menus ? (NS resize)
> > >
> > >
> > > Hey Ken,
> > > Add the following code to the end of your first
> > > oncreate to set it to null after it executes the first
> > > time, allowing the recreateall (built in to dynapi) to
> > > properly execute on a ns4 resize.
> > >
> > > excerpt from your widget starting line 138
> > >
> > > o.formatted = true
> > > o.setVisible(true);
> > > // add this
> > > l.oncreate=function(e) {
> > > }
> > > //end add
> > > }
> > > l.ondragstart=function(e) {
> > >
> > > Alternately, if you are using a seperate oncreate
> > > (should look in to onprecreate),
> > > just remove the event listener at the end of the code.
> > >
> > > Tested your widget with this code under 2-23 snapshot
> > > win98 PC ns4.76, ns4.08 ie5.5 and ns6 (runs slow like
> > > mine under ns6, we need to solve this)
> > >
> > > Cheers,
> > > Dave C. "You Changed What?!?"
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Get email at your own domain with Yahoo! Mail.
> > > http://personal.mail.yahoo.com/
> > >
> > > _______________________________________________
> > > Dynapi-Help mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> > >
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> ---
> Outgoing mail is certified Virus Free by AVG Free Edition
> Download at: http://www.grisoft.com/html/us_index.cfm
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help