From: Robert R. <rra...@ya...> - 2001-03-31 04:13:59
|
What would be even better would be a generic buffer extension that would add methods to the DynLayer that would let you add buffers to the layer. I'm sure it could be done, although not very easily. This way you could add spacing for all layers, not just loadpanels. -- Robert Rainwater On 3/29/2001, 1:54:09 PM EST, Henrik wrote about "[Dynapi-Widgetdev] Buffer widget for loadpanel": > Really nice! :) > I was actually pondering about doing a similar hack (this is not first time we've both been at something ;) and merging it with the attached file which is taken out of my dynbuiler build (which > currently is very much pending) and was meant to be core gui in my DynAPI approach. It's not complete though working more or less with this code on a page: > *** first required includes include *** > DynAPI.include('dynapi.api.*); > DynAPI.include('dynapi.events.*); //if using a recent snapshot > DynAPI.include('dynapi.util.thread.js'); > DynAPI.include('dynapi.util.pathanim.js'); > DynAPI.include('dynapi.gui.dynimage.js'); > DynAPI.include('dynapi.gui.label.js'); > DynAPI.include('ccreation.ext.layerpos.js'); // just in case you want to use my layerposing widget :) > DynAPI.include('dynbuilder.managers.modules.js'); // the attached file at its intended lib > ** incapusalted in dynapi.onload*** > var modules = new Module('modules',200,65,false); // creating this custom module > DynAPI.document.addChild(modules); > modules.addButton('properties','','images/properties.gif',36,36); //adding a button in its canvas > [...] > modules.positionInParent('topleft'); // using my layerpos widget > modules.showBorders(); > ********* > thought it might give you some additional ideas on how to do a couple of additionals i have for suggestions: > * optional title (label?) > * optional error/notice message (another label set with callback from other function?) > * regular ASCII chars for "window buttons" (instead of imagebuttons to save RAM load) > with these added I think we have a good base for a filehandeling servertask widget - at least in how I've figured them :) > Henrik Våglin [ hv...@ya... ] > ----- Original Message ----- > From: "David Cushman" <dle...@ya...> > To: "dynapi widget" <dyn...@li...> > Sent: Thursday, March 29, 2001 12:22 PM > Subject: [Dynapi-Widgetdev] Buffer widget for loadpanel >> Hey all, >> Just a quickie. Created this widget to add a buffer >> around a loadpanel to keep the text from running >> against the edges in a scrollpane. It creates a layer >> and then a loadpanel in that layer and centers it. >> Comments? Suggestions? >> >> See it here: >> http://www.merlinsworld.net/dynapi_ri_dcexamples/loadpanelfrm_exmpl1.shtml >> >> Cheers, >> Dave C. "You Changed What?!?" >> |