Giter VIP home page Giter VIP logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024

Original comment by [email protected] on 4 Apr 2013 at 6:14

  • Changed title: System tray icon for the application

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024
I also would like this feature. I want to build desktop widgets based on your 
project.

Original comment by [email protected] on 17 May 2013 at 8:17

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024
Two points of reference for anyone attempting this feat:

http://www.codeproject.com/Articles/74/Adding-Icons-to-the-System-Tray

http://bobobobo.wordpress.com/2009/03/30/adding-an-icon-system-tray-win32-c/

Original comment by [email protected] on 23 Oct 2013 at 7:17

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024
It is still open for discussion what system tray functionality should be 
implemented. For what I see that would be needed is:

1. A dictionary option in settings.json like "tray_menu", that would define 
elements in the tray menu and their corresponding command identifiers. For 
example:

  tray_menu = {
    "Action 1": "command1",
    "Action 2": "command2"
  }

2. Javascript bindings need to be created for communication between system tray 
and application. When "Action 1" is clicked, a javascript code would be 
executed in main browser window, something like 
"SystemTray_CommandCallback("command1")". You would need to define that js 
function on your webpage to intercept executed commands from system tray.

3. From javascript, you can communicate with PHP scripts by using 
XMLHttpRequest. This is already possible.

4. Probably some javascript API would be needed. A "PhpDesktop" object would be 
available in javascript that would have functions like: MaximizeWindow(), 
MinimizeWindow(), RestoreWindow(), MinimizeToTray(). I don't know what exactly 
is needed, haven't though too much about it.

Please share with us your use cases for the system tray, so we can decide what 
API would need to be added to PHP Desktop.

Original comment by [email protected] on 20 Jan 2014 at 1:47

  • Changed state: Accepted

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024
See Tray API in Node-Webkit:

  https://github.com/rogerwang/node-webkit/wiki/Tray

Original comment by [email protected] on 16 Feb 2014 at 3:48

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024
See also "Minimize to tray" example:

  https://github.com/rogerwang/node-webkit/wiki/Minimize-to-tray

Original comment by [email protected] on 16 Feb 2014 at 4:08

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024
[deleted comment]

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024

Original comment by [email protected] on 13 Oct 2014 at 4:40

  • Added labels: Restrict-AddIssueComment-Commit

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 6, 2024
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/25

Original comment by [email protected] on 24 Aug 2015 at 3:17

from phpdesktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.