Hello,
I would like to call a action in DCPUSHBUTTONXP with the right mousebutton. Is there a simple way to do this ?
regards
Rudolf
DCPUSHBUTTONXP and right Mouse button action
Re: DCPUSHBUTTONXP and right Mouse button action
Try this:
@ .. DCPUSHBUTTONXP .. EVAL {|o|o:rbDown := {||MyAction()}}
@ .. DCPUSHBUTTONXP .. EVAL {|o|o:rbDown := {||MyAction()}}
The eXpress train is coming - and it has more cars.
Re: DCPUSHBUTTONXP and right Mouse button action
Hello Roger,
thank you, works !
regards
Rudolf
thank you, works !
regards
Rudolf
Re: DCPUSHBUTTONXP and right Mouse button action
Roger,
how could you invoke popUp menu on right click while left clik is ACTION?
BR JAnko
how could you invoke popUp menu on right click while left clik is ACTION?
BR JAnko
-
- Posts: 484
- Joined: Wed Jan 27, 2010 10:25 pm
- Location: Berlin Germany
Re: DCPUSHBUTTONXP and right Mouse button action
Hello Janko,
put the call of your menu (oMyMenu) in the o:rbdown actionblock:
put the call of your menu (oMyMenu) in the o:rbdown actionblock:
Code: Select all
{|a,b,o| oMyMenu:PopUp( o:setParent(), o:currentPos(), 2, XBPMENU_PU_DEFAULT + XBPMENU_PU_MOUSE_RBDOWN) }
_______________________
Best Regards
Wolfgang
Best Regards
Wolfgang