From: Dan S. <dy...@fu...> - 2000-11-10 05:53:24
|
In trying to get caught up with the latest versions I have a few questions. I'm a little unclear with the file structure and where things are supposed to be. The latest dynapi releases have no widgets - are the ones from 20001024-full.zip supposed to work with the latest or is the effort right now trying to get them to work and be re-integrated? I've made the necessary changes to my Label, ViewPort, ScrollBar, and ScrollWindow in order for them to work with the 11.06 release. Only 1 further change is needed/requested in dynlayer and that's to make SetSize the last command before issuing a create event: this.setVisible(this.visible) this.setSize(this.w,this.h) this.createChildElements() this.invokeEvent('create') The reason is, the first resize event was being called before any html was written to the layer therefore it was impossible to get the content size. I could have used the create event but it's unneeded if this change is made (it saves you from making identicle resize and create event listeners in some cases which is nice). Also, where are standard images (that are linked with widgets) going to be located? I think the images that are needed in widgets should be located along with the js files because they are essentially part of the api if widgets require them. Would the following structure be ok?: /dynapi/lib/ /dynapi/lib/dynapi.js /dynapi/lib/api/ /dynapi/lib/ext/ /dynapi/lib/gui/ /dynapi/lib/images/ /dynapi/examples/ That way we can require that you set the library path to "/dynapi/lib/", and no image directories have to sepecified when using dynwindow, or any others - they'll by default pick up the library path and use it +/images/widgetdir/. I realize there's an auto-include function now, but it should be easy to reconfigure it for such a directory structure. Next I think there should only be one set of widgets, none of these ibs, obc directories. Have one "gui" directory put em all in there, or at least the ones that should be part of the standard dynapi package. Other people can easily release their own "widget packs", but I think really they should be distributed and maintained separately if they are divergent from the structure/look/syntax of the "standard dynapi". For such a widget pack or extention, it'll be located in some directory off of /lib/ such as /lib/myextensions/. If images for that extention are needed, you can create your own /lib/myextensions/images/ directory and specify that to be the default location to pickup them up in the JS code. And when using the auto-include you'd do include('dynapi.myextensions.Widget') and not interfere with the base dynapi at all. Other than that everything's working fine, I just need to finish off the updated Label this weekend and I'll post my stuff up this weekend. (I did not touch my LoadPanel, I assume it's working fine). Dan |