| Author |
Message |
SS
Guest
|
Posted:
Wed Dec 07, 2005 1:10 am Post subject:
bindkey / mouseclick |
|
|
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
|
|
| Back to top |
|
 |
Bernd Fischer
Guest
|
Posted:
Wed Dec 07, 2005 1:10 pm Post subject:
Re: bindkey / mouseclick |
|
|
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:
| Quote: | 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
|
|
|
| Back to top |
|
 |
SS
Guest
|
Posted:
Wed Dec 07, 2005 5:10 pm Post subject:
Re: bindkey / mouseclick |
|
|
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
|
|
| Back to top |
|
 |
Bernd Fischer
Guest
|
Posted:
Wed Dec 07, 2005 5:10 pm Post subject:
Re: bindkey / mouseclick |
|
|
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:
| Quote: | 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
|
|
|
| Back to top |
|
 |
SS
Guest
|
Posted:
Thu Dec 08, 2005 9:10 am Post subject:
Re: bindkey / mouseclick |
|
|
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:
| Quote: | 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
|
|
|
| Back to top |
|
 |
|
|
|
|