Code Monkey home page Code Monkey logo

Comments (10)

cztomczak avatar cztomczak commented on May 19, 2024 2

Now with the "minimize_to_tray" option available it would be useful to be able to start php desktop minimized. For example when app needs to run in background and auto start on Windows boot. This could be accomplished by introducing a command-line flag to start app minimized eg phpdesktop-chrome.exe --start-minimized. With this flag and "minimize_to_tray" set to True app would start and show only in system tray.

from phpdesktop.

cztomczak avatar cztomczak commented on May 19, 2024 1

Release Candidate 31.10 added option to minimize to system tray, see the above commit for the new options.

from phpdesktop.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 19, 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 May 19, 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 May 19, 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 May 19, 2024

See Tray API in Node-Webkit: https://github.com/rogerwang/node-webkit/wiki/Tray
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 3:48

from phpdesktop.

Macwilcy avatar Macwilcy commented on May 19, 2024

Hello,

How can we change the 'Elephant task bar Icon' to a custom icon ?

Thank you

from phpdesktop.

gabizz avatar gabizz commented on May 19, 2024

Macwilcy: I think this question has been answered before... anyway... just use Resource Hacker to change the icon. ;)

from phpdesktop.

codelarky avatar codelarky commented on May 19, 2024

A tool tip showing the application title when the mouse hovers over the icon in the tray will be a small, but useful feature.
Thanks.
screenshot 2016-03-19 06 07 11

from phpdesktop.

Eduqii avatar Eduqii commented on May 19, 2024

replace icon with resource hacker keeps showing 'out of memory'.

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.