Notifications
Clear all

[Closed] how to add rightclick event to dotnet button?

how to add rightclick event to dotnet button?

if Eliminate this way
MouseUp event handler

2 Replies

(
	fn _rightClick sender args = 
	(
		case args.button of
		(
			(args.button.Right): format "RightClicked
"
			(args.button.Left): format "LeftClicked
"
			(args.button.Middle): format "MiddleClicked
"
		)
	)
	form = dotNetObject  "MaxCustomControls.MaxForm"
	dotNet.addEventHandler form "MouseClick" _rightClick
	form.showmodeless()
)

very thanks