Comments (6)
Exposing a double click event would also be nice.
from systray.
We aren't able to pull away to implement this right away unfortunately but PRs are most welcome!!!
from systray.
Same question...
from systray.
Please, implement the "On click tray event" (WM_RBUTTONUP / WM_LBUTTONUP).
Maybe as OnIconTrayClickHandler()...
Please! :)
from systray.
@myleshorton point me in the right direction and I can tackle this
from systray.
I started down this road for windows, trying to create a minimal change to handle right-click, left-click and left-double-click, but ran into the following questions:
- Should it use a channel or set of channels (like existing menu click handlers) or should it be "OnIconTray[Left|Right][Double]ClickHandler" as suggested by @biter777
- Distinguishing single click from double click requires "debouncing" (when you receive a click, wait a bit to see if it is really going to be the first click in a double click), as per https://devblogs.microsoft.com/oldnewthing/20041015-00/?p=37553
So for the moment my modifications fit my needs: distinguishing RightClick from LeftDoubleClick. But obviously that's not completely general:
systray_windows.go
function wndProc
line ~ 284:
switch lParam {
case WM_RBUTTONUP://, WM_LBUTTONUP:
t.showMenu()
case WM_LBUTTONUP:
//XXX: need to debounce so this doesn't fire on a double click
//start timer, wait, cancel timer if double click arrives, send msg on timer end
//and also ignore subsequent click event after double click
//systrayClicked()
case WM_LBUTTONDBLCLK://WM_LBUTTONUP:
//XXX: cancel timer here, tell single slick to eat next click
systrayDoubleClicked()
}
from systray.
Related Issues (20)
- Remove dependency on github.com/getlantern/golog
- Add support for advanced menu items
- Fix notifyIconData struct HOT 1
- libayatana-appindicator , libappindicator is not available in RedHat HOT 1
- Dark mode support for windows 11 HOT 2
- Deprecation of 'go get' for installing executables
- 蓝灯邀请码,输入各得3个月:YX7T8M6
- Duplicate symbol error building on macOS HOT 3
- Can't compile on MacOS (duplicate symbol)
- [Bug] Debain 12
- won't compile with Go version 1.22 HOT 1
- Icons in menu items have a black background
- Tray Icon is Blur HOT 1
- The menu disappears when you click HOT 3
- Dont support go1.22 HOT 1
- error, crash:Symbol not found: kIOMainPortDefault
- Example doesn't work
- When hovering over the icon, display text
- sir ,please tell us ,How to determine through code whether this library can be used in the current operating system
- raspberrypi can't build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from systray.