bindkey / mouseclick

Discussion in 'Cadence' started by SS, Dec 6, 2005.

  1. SS

    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
     
    SS, Dec 6, 2005
    #1
  2. 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
     
    Bernd Fischer, Dec 7, 2005
    #2
  3. SS

    SS Guest

    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
     
    SS, Dec 7, 2005
    #3
  4. 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
     
    Bernd Fischer, Dec 7, 2005
    #4
  5. SS

    SS Guest

    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
     
    SS, Dec 8, 2005
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.