Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
35096a7e
Unverified
Commit
35096a7e
authored
Nov 18, 2024
by
Daniel Hiltgen
Committed by
GitHub
Nov 18, 2024
Browse files
win: add right click menu support (#7727)
Enable both left and right click on the pop-up menu
parent
81d55d3e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
app/tray/wintray/tray.go
app/tray/wintray/tray.go
+1
-1
app/tray/wintray/w32api.go
app/tray/wintray/w32api.go
+1
-0
No files found.
app/tray/wintray/tray.go
View file @
35096a7e
...
...
@@ -361,7 +361,7 @@ func (t *winTray) showMenu() error {
boolRet
,
_
,
err
=
pTrackPopupMenu
.
Call
(
uintptr
(
t
.
menus
[
0
]),
TPM_BOTTOMALIGN
|
TPM_LEFTALIGN
,
TPM_BOTTOMALIGN
|
TPM_LEFTALIGN
|
TPM_RIGHTBUTTON
,
uintptr
(
p
.
X
),
uintptr
(
p
.
Y
),
0
,
...
...
app/tray/wintray/w32api.go
View file @
35096a7e
...
...
@@ -67,6 +67,7 @@ const (
SW_HIDE
=
0
TPM_BOTTOMALIGN
=
0x0020
TPM_LEFTALIGN
=
0x0000
TPM_RIGHTBUTTON
=
0x0002
WM_CLOSE
=
0x0010
WM_USER
=
0x0400
WS_CAPTION
=
0x00C00000
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment