- Virtual Processes
- 30 Apr 2007 06:52:10 am
- Last edited by Insanity on 30 Apr 2007 07:23:36 am; edited 2 times in total
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):
Code:
Something like this for example (this probably wouldn't work):
Code:
process["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});