From: Doug M. <do...@cr...> - 2003-05-15 21:21:14
|
message too long.. so response here :-) Borders:---------- .setBorder(thickness,color) would need to overwrite addchild, addeventlistener, sethtml, setbgcolor, setsize.. any others? I honestly think this should be the default method of adding borders. As is uses less layer, and no images. It is also the most simple. With this, you would need a getInnerWidth, to get he width of the content layer The border method previously release should be setBorderAdvanced() and should mopst likly use a dictionary object I.E. setBoderAdvanced({leftwidth:2,leftcolor:red}) this allows you to set as many or few borders as you want, and set their parameters induvidually. DynLayer Arguments:---------- I kinda like it as it is.. I can concide adding one more for bgimage for more params, I'm thinking the dictionary object.. Or even a library extension if you really want more than 6 native arguments ----- Original Message ----- From: "Raymond Irving" <xw...@ya...> To: "Dynapi-Dev" <Dyn...@li...> Sent: Wednesday, May 14, 2003 5:32 PM Subject: Re: [Dynapi-Dev] BorderManager & Highlighter UPDATED - (files attached) > > See below: > > --- Kevin <ke...@ke...> wrote: > > > > "Raymond Irving" <xw...@ya...> wrote: > > > > > Kevin, > > > > > > Nice work! It looks great! I have a few > > suggestions: > > > > > > 1) DynLayer(html,x,y,w,h,color,image) - Some time > > ago > > > DynLayer had so many arguments that it was very > > > difficult to work with. With 2.9 Dan took the > > > initiative to only use the most commonly used > > > arguments. I would suggest that we keep only 6 > > > arguments inside the constructor in order to try > > and > > > keep it simple, but since we already have > > background > > > color I think it's only fitting to have background > > > image as part of the constructor. Agree? Can we > > stop > > > at seven? > > > > Ok stop at 7 but 10 is a nice number ;-) and we can > > have > > the full set with anchor, visible and z-index? > > I still think 7 is two much :) But we can work with > that. > > > > > 3) Another name for setBorder2 could be > > > setSkinBorder()? > > or setBorderSkin()? Well, you choose. > > > Fine. One thing I was going to add was a > > borderBasic. > > i.e. Just 2 layers container and content. So > > container is > > set to border color and content is center anchored. > > Sounds ok to me. Are you talking about a > setBorderBasic() function? Something like an outline? > IMO border basic does not sound like the correct name > for this type of border design. How about setOutline > or setBorderOutline? > > > -- > Raymond Irving > > > > > > - > > Kevin. > > > > > > > > > > Keep up the good work > > > > > > > > > PS. Have to tested the creation speed of say 100 > > > layers with skinned borders? > > > > > > > > > -- > > > Raymond Irving > > > > > > > > > --- Kevin <ke...@ke...> wrote: > > > > Hello all, > > > > > > > > Raymond, I hope you don't mind me extending you > > > > ideas. I've had a go at presenting my > > > > thoughts on borders which are similar to > > Benoit's. > > > > Please unpack the attached file in the > > > > latest dynapi3x root folder/directory. In > > principle: > > > > > > > > 1) Images in highlighters (just auto repeat > > > > background image). > > > > 2) Have 1 content layer + 4 sides + 4 corners + > > 1 > > > > container. > > > > 3) Moving container moves all (no group manager > > > > needed). > > > > 4) Border2 is DOM2 spec' i.e. border is outside > > > > element width (border won't clip content). > > > > 5) Offer flexibility to have different skin > > widths > > > > (perhaps someone can complete this?) > > > > 6) Let transparent gifs with background colors > > be > > > > defaulted and configurable (unfinished). > > > > > > > > There is so much more work to do on this I > > thought > > > > I'd stop here and see if it's close! > > > > > > > > Could someone change the example to show how to > > use > > > > preloaded images from cache > > > > rather than strings. Does <layer > > background=img.src > > > > ..> do it for ns4? These updates > > > > have been tested on Linux NS4/Mozilla. Please > > help > > > > and offer the fix if it doesn't work > > > > on your browser. > > > > > > > > - > > > > Kevin. > > > > > > > > > > > > > Hello Everyone, > > > > > > > > > > I've completed the BorderManager and > > Highligther > > > > > classes as promised > > > > > > > > > > You can see a live demo here: > > > > > > > > > > > > > > > > > > > > http://www24.brinkster.com/dyntools/next/examples/dynapi.gui.bordermanager.h tml > > > > > > > > > > > > > > > > > > > > http://www24.brinkster.com/dyntools/next/examples/dynapi.gui.highlighter.htm l > > > > > > > > > > > > > > > > > > > > http://www24.brinkster.com/dyntools/next/examples/dynapi.gui.focusmanager.ht ml > > > > > > > > > > Note: The setBorder() function now requires > > the > > > > > BorderManager Class > > > > > > > > > > > > > > > Any comments? Can I go ahead and upload these > > > > changes > > > > > to CVS? > > > > > > > > > > > > > > > PS. Files are attached > > > > > > > > > > -- > > > > > Raymond Irving > > > > > > > > > > > > > > > > > > > > __________________________________ > > > > > Do you Yahoo!? > > > > > The New Yahoo! Search - Faster. Easier. Bingo. > > > > > http://search.yahoo.com > > > > > > > ATTACHMENT part 2 application/x-zip-compressed > > > name=border-update.zip > > > > > > > > > > > > __________________________________ > > > Do you Yahoo!? > > > The New Yahoo! Search - Faster. Easier. Bingo. > > > http://search.yahoo.com > > > > > > > > > > > > ------------------------------------------------------- > > > Enterprise Linux Forum Conference & Expo, June > > 4-6, 2003, Santa Clara > > > The only event dedicated to issues related to > > Linux enterprise solutions > > > www.enterpriselinuxforum.com > > > > > > _______________________________________________ > > > Dynapi-Dev mailing list > > > Dyn...@li... > > > > > > http://www.mail-archive.com/dyn...@li.../ > > > > > > > ------------------------------------------------------- > > Enterprise Linux Forum Conference & Expo, June 4-6, > > 2003, Santa Clara > > The only event dedicated to issues related to Linux > > enterprise solutions > > www.enterpriselinuxforum.com > > > > _______________________________________________ > > Dynapi-Dev mailing list > > Dyn...@li... > > > http://www.mail-archive.com/dyn...@li.../ > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > > > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.com > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://www.mail-archive.com/dyn...@li.../ > |