From: Benoit M. <mar...@ma...> - 2003-05-09 07:06:46
|
It's working well ! A few comments: I'm currently using a "frame" widget to show drag overs layers. As it's only for drag, and not multiple selection, it makes more sense from a programatic and efficiency point of view to have only one frame object that's eventually resized to match the layer the drag is on. I'm both using a rectangular frame with just colors, and another version where I'm using images for rounded corners and shadows using pngs. Using the current border layers would bloat the page in that scenario. however, if you were to allows multiple selection and drag them together, than that's exacrtly what's needed. But you shouldn't have to pay the price for the first case. This doesn't allow to use images for borders such as rounded corners, borders with shadows, or any image. And because rounded corners have some transparency, you just can't add a corner layer. The logic for the size of the borders has to be slightly different. Plus because of shadows, the size of the left and right repeating border is usually different. I have such a widget in dynapi2. It can be set to be within the frames of the layer you put it on, or around it. But it's a layer you associate to it, it's not inside which brings the flexibility of doing both, and it does offers border color and border imaged. Sincerely it need to be seriously re-worked, but it proved pretty usefull for me. I've been using it for drag overs. Another good example would be the 6 knobs around objects in a layout program. Being able to show a selection that way would be very handy with the drag resize code I've done. My second is, currently, if a layer with borders is resized, will the border be ? I didn't see code for that. So. Shall we consider enhancing the setBorder to take care of these special cases ? Or shall we change that api (or add to it) to eventually provide a layer as an argument. So it would be possible to provide a layer that eventually one can make it looks the way he wants. And in that case, the setBorder would take care of placing the layer and resize it. Feedback ? Benoit On Thursday, May 8, 2003, at 04:57 AM, Raymond Irving wrote: > 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 > 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<dynapi3x.zip> |