DCPUSHBUTTONXP and right Mouse button action

This forum is for eXpress++ general support.
Post Reply
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

DCPUSHBUTTONXP and right Mouse button action

#1 Post by c-tec »

Hello,
I would like to call a action in DCPUSHBUTTONXP with the right mousebutton. Is there a simple way to do this ?
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: DCPUSHBUTTONXP and right Mouse button action

#2 Post by rdonnay »

Try this:

@ .. DCPUSHBUTTONXP .. EVAL {|o|o:rbDown := {||MyAction()}}
The eXpress train is coming - and it has more cars.

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: DCPUSHBUTTONXP and right Mouse button action

#3 Post by c-tec »

Hello Roger,
thank you, works !
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Janko
Posts: 111
Joined: Sat Mar 20, 2010 8:36 am
Location: Cerklje

Re: DCPUSHBUTTONXP and right Mouse button action

#4 Post by Janko »

Roger,

how could you invoke popUp menu on right click while left clik is ACTION?

BR JAnko

Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: DCPUSHBUTTONXP and right Mouse button action

#5 Post by Wolfgang Ciriack »

Hello Janko,
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

Post Reply