• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. How to set F3 as a pop-up menu for particular function?

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 14996
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to set F3 as a pop-up menu for particular function?

kpai
kpai over 12 years ago

I have a function call AddBLKLayers that can create add-on mutilple layers base on particular selected rectangle.  Now I would like to use F3, such as in Rule function, once the user press F3, it will have a particular pop-up that associate with AddBLKLayers function.

Can anyone show me how to set F3 key to have a pop-up menu when AddBLKLayers in use?

Thanks,

Kathy

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Kathy,

    Are you talking about an Options form, as many of the commands implemented as enterFunctions provide (e.g. they are prompting you to enter a point or points, and you can hit F3 to bring up a form which provides options to alter the behaviour?)

    Here's a partial example of doing this (I didn't post the entire code because it's old and doesn't work that well, but it illustrates the point). You create an options form with hiCreateAppForm, and then reference it from the ?form argument to an enter function (enterPath in this case):

    procedure(abCreateGuardring()

        unless(boundp('abCreateGuardringForm)
        abCreateGuardringOptionsForm()
        )
        enterPath(?prompts list("Enter points for guard ring")
        ?doneProc "abCreateGuardringDoneProc"
        ?points nil
        ?addPointProc "abCreateGuardringPointTracker"
        ?delPointProc "abCreateGuardringPointTracker"
        ?form abCreateGuardringForm
        ?alwaysMap t
        ?pathWidth abCreateGuardringForm->diffWidth->value
        )
    )

    procedure(abCreateGuardringOptionsForm()
        let((diffWidth)
        diffWidth=hiCreateFloatField(
            ?name 'diffWidth
            ?value 10.0
            ?callback "abChangeGuardringWidth()"
            ?prompt "Diffusion Width"
        )
        hiCreateAppForm(
            ?name 'abCreateGuardringForm
            ?formType 'options
            ?buttonLayout 'HideCancelDef
            ?fields list(
            list(diffWidth 0:0 400:30 100)
            )
        )
        )
    )

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Kathy,

    Are you talking about an Options form, as many of the commands implemented as enterFunctions provide (e.g. they are prompting you to enter a point or points, and you can hit F3 to bring up a form which provides options to alter the behaviour?)

    Here's a partial example of doing this (I didn't post the entire code because it's old and doesn't work that well, but it illustrates the point). You create an options form with hiCreateAppForm, and then reference it from the ?form argument to an enter function (enterPath in this case):

    procedure(abCreateGuardring()

        unless(boundp('abCreateGuardringForm)
        abCreateGuardringOptionsForm()
        )
        enterPath(?prompts list("Enter points for guard ring")
        ?doneProc "abCreateGuardringDoneProc"
        ?points nil
        ?addPointProc "abCreateGuardringPointTracker"
        ?delPointProc "abCreateGuardringPointTracker"
        ?form abCreateGuardringForm
        ?alwaysMap t
        ?pathWidth abCreateGuardringForm->diffWidth->value
        )
    )

    procedure(abCreateGuardringOptionsForm()
        let((diffWidth)
        diffWidth=hiCreateFloatField(
            ?name 'diffWidth
            ?value 10.0
            ?callback "abChangeGuardringWidth()"
            ?prompt "Diffusion Width"
        )
        hiCreateAppForm(
            ?name 'abCreateGuardringForm
            ?formType 'options
            ?buttonLayout 'HideCancelDef
            ?fields list(
            list(diffWidth 0:0 400:30 100)
            )
        )
        )
    )

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information