I've gotten stuck on a part of my web desktop: processes. I just don't know how to go about doing this. I want to create processes so that each application can control the "windows" they spawn. How would I do this? (BTW, this is in JavaScript)
Something like this for example (this probably wouldn't work):
c1-->
CODE |
ec1process["aboutme"].win = new Window({ className: 'mac_os_x', title: 'About Me', width:384, height:150, destroyOnClose: true, recenterAuto: true, showEffect: Element.show, hideEffect: Element.hide }); process["aboutme"].myDiv= document.createElement("div"); process["aboutme"].myDiv.setAttribute("id","mydiv"); process["aboutme"].myDiv.appendChild(document.createTextNode("hello world")); process["aboutme"].win.getContent().appendChild(myDiv); process["aboutme"].win.showCenter(); process["aboutme"].win.setConstraint(true, {left:0, right:0, top: 20, bottom:10});c2 |
ec2