Jump to content

Another desktop example


Ron

Recommended Posts

Hello, here is another desktop example using more javascript, and the idea was to get some transparency in the taskbar. I borrowed the code for the menu, from the other desktop sample in this forum.  Best viewed in full HD, full screen (F11). Updated: some JS correction, added analog clock as part of datetime dialog etc. The code for autostart of browser is in the servermodule, triggered at onCreate. 

 

For those who cannot download here, I've uploaded it to http://cashlessnews.com/webdesktop.zip

post-980-0-10392100-1439807755_thumb.png

webdesktop.zip

post-980-0-85053700-1454618810_thumb.png

  • Upvote 3
Link to comment
Share on other sites

  • 3 weeks later...
  • 4 months later...
  • 2 weeks later...
Delphidude, 

 

Thank you for return,

 

excuse my English, I will try to explain below:

 

In your example this fixed 3 buttons on the toolbar, but need to add new buttons in start menu, my question is how to bring up the toolbar buttons that were not fixed it (new forms for example).

-> how to dynamically add javascript in new non-fixed calls

Link to comment
Share on other sites

  • 3 weeks later...

The main form loads the deskscript.html file on load, and it is in this file that you

manipulate the desktop apparance, including the icons, in javascript. Study that file.

 

You can just add some javascript which defines another icon, to this file, and reload it.

 

First of course store the icon, so you can reference it. You could have a bunch of icons

already stored which the user may choose from.

 

Then push the chosen icon into the icons array, with the correct x position. To get

that x pos, read the last icon in the array, since the xpos is not a global var.

 

You can just create an addIcon function, to do this job...and then run this function

through an AddJS call, referencing the icon you want.

Link to comment
Share on other sites

  • 5 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...