Custom Right-Click Context Menu for WinForms Plot? #782
-
|
I want to add a Save CSV option there, but i cant find any relevant documentation. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Hi @baratiistok3, You can unsubscribe from the default event and add your custom event like this: Let me know if this doesn't do the trick! I am actively working on this documentation to make this topic more discoverable (#716, Website/#6) |
Beta Was this translation helpful? Give feedback.
-
|
There is any fast way to remove JUST ONE of the context menu items. I'd like to avoid "Open in a new windows" to be shown to the user. |
Beta Was this translation helpful? Give feedback.
-
|
And to hide the right click menus: C#.net WinForms. |
Beta Was this translation helpful? Give feedback.


Hi @baratiistok3,
You can unsubscribe from the default event and add your custom event like this:
ScottPlot/src/demo/ScottPlot.Demo.WinForms/WinFormsDemos/RightClickMenu.cs
Lines 20 to 21 in acbec94
ScottPlot/src/demo/ScottPlot.Demo.WinForms/WinFormsDemos/RightClickMenu.cs
Lines 28 to 34 in acbec94