mirror of
https://github.com/rivo/tview.git
synced 2026-04-26 21:35:54 +03:00
[GH-ISSUE #654] Context Menus #480
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#480
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Sep 23, 2021).
Original GitHub issue: https://github.com/rivo/tview/issues/654
@rivo commented on GitHub (Sep 26, 2021):
Please provide a description.
@ghost commented on GitHub (Sep 26, 2021):
@rivo looks like there is an open PR implementing context menus to tview.
@rivo commented on GitHub (Sep 27, 2021):
Ok, got it. Yeah, it's currently not very high on the todo list. But I understand
cviewhas this implemented?@ghost commented on GitHub (Sep 27, 2021):
Looks like cview does implement context menus, but there are few issues with cview, here are some of them:
@rivo commented on GitHub (Sep 27, 2021):
To be honest, I don't follow
cview's progress so I can't tell you anything about its current state. (I don't even know if it's still actively maintained.)Anyway, I was thinking you might be able to implement context menus yourself by intercepting mouse events with
SetMouseCapture(). Now you need to place a context menu widget (e.g. aList) where the user clicked. You can take a clue from this Wiki page.I would think it's possible even without having this specific functionality part of the library.
@ghost commented on GitHub (Sep 27, 2021):
👍 Alright, sounds great, closing this issue