bindkey / mouseclick
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
bindkey / mouseclick

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
SS
Guest





Posted: Wed Dec 07, 2005 1:10 am    Post subject: bindkey / mouseclick Reply with 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
Bernd Fischer
Guest





Posted: Wed Dec 07, 2005 1:10 pm    Post subject: Re: bindkey / mouseclick Reply with quote

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 Reply with 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
Bernd Fischer
Guest





Posted: Wed Dec 07, 2005 5:10 pm    Post subject: Re: bindkey / mouseclick Reply with 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:
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 Reply with quote

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
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB