bindkey / mouseclick

S

SS

Guest
Hello,
I want a function to behave differently when I click on
an object with the three mouse clicks(left right and middle).

This is what Iam trying to do.

I am using "geSingleSelectPoint" to select a point and a reference
point.
The function should perform a different operation based on the mouse
click I use to select reference point. geSingleSelectPoint recognizes
only left mouse click and not middle or right click.

Can anyone tell me what I should be doing ?


thanks,
Sriram
 
hiSetBindKey( [t_applicationType] [t_key] [t_skill_cmd] )

where "None<Btn1Down>" is t_key for the left mouse button once
"None<Btn2Down>" middle and "None<Btn3Down>" right.

Bernd

SS wrote:
Hello,
I want a function to behave differently when I click on
an object with the three mouse clicks(left right and middle).

This is what Iam trying to do.

I am using "geSingleSelectPoint" to select a point and a reference
point.
The function should perform a different operation based on the mouse
click I use to select reference point. geSingleSelectPoint recognizes
only left mouse click and not middle or right click.

Can anyone tell me what I should be doing ?


thanks,
Sriram
 
Bernd,
I set the bindkeys inside the function. However when I
click the middle button or right button on the layout the default
operation is performed (mousepopup and cmd0option)and not the skill
command I specify in the bindkey.

could you tell me where Iam going wrong.

thanks,
Sriram
 
I suppose the bindkey should call the function and not the other
way around.
I would create three functions and bind each of them to the
appropriate mouse button.

Bernd


SS wrote:
Bernd,
I set the bindkeys inside the function. However when I
click the middle button or right button on the layout the default
operation is performed (mousepopup and cmd0option)and not the skill
command I specify in the bindkey.

could you tell me where Iam going wrong.

thanks,
Sriram
 
Bernd,
I want to set the bindkeys inside a function. The reason I
want to do this is because I want to unset the bindkeys when the
function is not called. The bindkeys will call the three different
functions based on the selection. However I am able to do it from
ciw->options->bindkey.

This is what I am doing .
Building stretchbyrule movebyrule and copybyrule. I want to override
stretchbyrule/movebyrule/copybyrule and do a different operation when a
right click or middle click is selected.

thanks,
Sriram

Bernd Fischer wrote:
I suppose the bindkey should call the function and not the other
way around.
I would create three functions and bind each of them to the
appropriate mouse button.

Bernd


SS wrote:
Bernd,
I set the bindkeys inside the function. However when I
click the middle button or right button on the layout the default
operation is performed (mousepopup and cmd0option)and not the skill
command I specify in the bindkey.

could you tell me where Iam going wrong.

thanks,
Sriram
 

Welcome to EDABoard.com

Sponsor

Back
Top