attaching options form to user defined function

Discussion in 'Cadence' started by suresh j, Sep 22, 2003.

  1. suresh j

    suresh j Guest

    Hi,

    In Skill, how to attach an options form to an user defined function so
    that it will be displayed when that function is called and F3 is pressed.

    Also, the interactive functions such as leHiCopy() which work on the
    selected set wait for the user to select something if nothing is
    selected. How can I do this in an userdefined function.

    Thanks in advance.
     
    suresh j, Sep 22, 2003
    #1
  2. suresh j

    Partha Guest

    The options form you are referring to is nothing but a pop-up meny
    that is called from invoking the bindkey/ dropdown menu.

    So inorder to have your function get the options form, you need to
    create the form using hiCreateAppForm, hiDisplayForm.. etc..

    you could use enterPoint, enterBox & other enter functions to make the
    user wait for the selection of points in your skill routine.

    Partha
     
    Partha, Sep 22, 2003
    #2
  3. Actually it's not quite like that... close, but not quite...

    The options form (as toggled by the F3 button) is indeed a form created
    with hiCreateAppForm() - with the ?formType 'options argument passed.
    Then, you invoke one of the enter functions (e.g. enterPoint, enterPoints,
    etc, with the ?form argument passing it the form you created.

    You might define a bindkey to initiate the function which calls enterPoint()
    etc, but the F3 works by virtue of the fact that you've created an
    options form and associated it with the enterFunction.

    Andrew.
     
    Andrew Beckett, Sep 23, 2003
    #3
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.