From: Raymond I. <xw...@ya...> - 2003-05-15 02:35:19
|
Please see below: --- Benoit Marchant <mar...@ma...> wrote: > >> 3) Another name for setBorder2 could be > >> setSkinBorder()? > > > > 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. > > I agree that if you happens to have all borders of > equal size and > color, it would be more efficient. But this should > be an implementation > detail hidden in the setBorder method rather than a > new api. > > Also it's kind of an internal class, I'm not sure > Skin is a right name > for what is really a frame part. Well... That's True. > > I have used png image files with alpha > transparencies (for drop > shadows) , and unfortunately, the most supported way > for a proper > rendering of the alpha transparency is to use the > image in a tag IMG. > If you use such a file as a div background image, it > doesn't render as > expected. Which means that if the image files are > png, a special case > should be made and then use the html for the > different borders using a > png. Which means that when the size change, the html > has to be re > written to stretch the png so se, it works fine for > drop shadows where > I had to do this. Have you ever thought about making a ShadowManager or DropShaowManager? Something like lyr.setShadow(true,offsetx,offsety)? > Why couldn't we have one setBorder ? or setFrame() ? > Then we either > automatically pass a dictionary that describes the > frame, and that > dictionary could cover all configuration about > individual borders > size/color/image, or do a Frame class with different > subclasses ? > I'm worried about the hierachy (neat by the way) > manipulation implied > by the setBorder() in term of performances. If you > can also do it the > other way, creating a frame and adding the content, > you can have the > same result and less manipulations I would think. > Then setBorder() > could take a Frame instance as an argument. Which > means that if you > need a special kind of frame, you would subclass > Frame and that's all, > which sounds easier than overriding setBorder. Merging the two functions might not be such of a good thing as this might lead to great levels of complexity for the user. Have two separate functions can simplify things for the user. If we can find a suitable name then that should be fine else kevin will have to fnd a way to merge the two functions without cause two much complexity. > I really need to finish the drag additions, and I'll > do a corner > resizable frame as an example ! > > Feedback ? Sounds good to me. > > Benoit > > > > > - > > 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.html > >>>> > >>>> > >>> > >> > http://www24.brinkster.com/dyntools/next/examples/ > >> dynapi.gui.highlighter.html > >>>> > >>>> > >>> > >> > http://www24.brinkster.com/dyntools/next/examples/ > >> dynapi.gui.focusmanager.html > >>>> > >>>> Note: The setBorder() function now requires the > === message truncated === __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |