Author Topic: Virtual Processes  (Read 2189 times)

0 Members and 1 Guest are viewing this topic.

Insanity

  • Guest
Virtual Processes
« on: April 30, 2007, 01:57:00 pm »
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

Offline necro

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1295
  • Rating: +17/-2
  • +3 vaporal mustache
    • View Profile
Virtual Processes
« Reply #1 on: May 13, 2007, 07:58:00 am »
no idea...do you mean having object like behaviour?
I'm like a woot burger with awesome fries


VB.Net, C#, C++, Java, Game Maker