From: Henrik V. <hv...@ya...> - 2001-03-29 18:50:47
|
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 =3D new Module('modules',200,65,false); // creating this = custom module DynAPI.document.addChild(modules);=20 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=E5glin [ hv...@ya... ] ----- Original Message -----=20 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? >=20 > See it here: > = http://www.merlinsworld.net/dynapi_ri_dcexamples/loadpanelfrm_exmpl1.shtm= l >=20 > Cheers, > Dave C. "You Changed What?!?" >=20 |