PDA

View Full Version : how to add rightclick event to dotnet button?


CGGD
12-03-2009, 05:51 AM
how to add rightclick event to dotnet button?

if Eliminate this way
MouseUp event handler

AkramParvez
12-03-2009, 10:44 AM
(
fn _rightClick sender args =
(
case args.button of
(
(args.button.Right): format "RightClicked\n"
(args.button.Left): format "LeftClicked\n"
(args.button.Middle): format "MiddleClicked\n"
)
)
form = dotNetObject "MaxCustomControls.MaxForm"
dotNet.addEventHandler form "MouseClick" _rightClick
form.showmodeless()
)

CGGD
12-04-2009, 12:15 AM
very thanks

CGTalk Moderation
12-04-2009, 12:15 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.