Home > Community > Forums > Custom IC Design > Drop Down menu

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Drop Down menu 

Last post Thu, Mar 5 2009 10:46 AM by Austin CAD Guy. 3 replies.
Started by AnuJoamon 05 Mar 2009 02:20 AM. Topic has 3 replies and 2035 views
Page 1 of 1 (4 items)
Sort Posts:
  • Thu, Mar 5 2009 2:20 AM

    • AnuJoamon
    • Not Ranked
    • Joined on Mon, Feb 2 2009
    • Bangalore, Karnataka
    • Posts 7
    • Points 110
    Drop Down menu Reply

    my skill code creates a drop down menu in the layout window. But when I load the skill again i get an error -
              "*Error* User post install trigger already registered for viewType maskLayout."

    How to update the code for the removing the error?

    Thanks
    Anuj

    Anuj
    Filed under:
    • Post Points: 5
  • Thu, Mar 5 2009 2:25 AM

    • AnuJoamon
    • Not Ranked
    • Joined on Mon, Feb 2 2009
    • Bangalore, Karnataka
    • Posts 7
    • Points 110
    Re: Pull Down menu Reply

    Sorry, it is Pull Down menu, with the code like

    procedure( trUserPostInstallTrigger(args)
     hiInsertBannerMenu(
      args->window
      trCreateLayoutPulldownMenu()
      length( hiGetBannerMenus( args->window))
     ) ; hiInsertBannerMenu
    ) ; procedure trUserPostInstallTrigger

    deRegUserTriggers("maskLayout" nil nil 'trUserPostInstallTrigger)

    Anuj
    Filed under:
    • Post Points: 5
  • Thu, Mar 5 2009 2:39 AM

    • AnuJoamon
    • Not Ranked
    • Joined on Mon, Feb 2 2009
    • Bangalore, Karnataka
    • Posts 7
    • Points 110
    Re: Pull Down menu Reply

    the pull-down menu is created

    procedure( trCreateLayoutPulldownMenu()
     if( boundp( 'trLayoutPulldownMenu ) then
      trLayoutPulldownMenu
     else
      hiCreatePulldownMenu(
      'trLayoutPulldownMenu
      "TEST"
      list(
       hiCreateMenuItem( ; list of menu items
        ?name 'CleanLSW
        ?itemText "TEST"
        ?callback  "LAYOUT_TEST()"
        ) ; hiCreateMenuItem
       ) ; list
      ) ; hiCreatePulldownMenu
     ) ; if boundp
    ) ; procedure trCreateLayoutPulldownMenu

     Please also suggest, if I can write the Menu create procedures above the callback procedures or it needs to be in bottom-up approach.

    Anuj
    Filed under:
    • Post Points: 20
  • Thu, Mar 5 2009 10:46 AM

    Re: Pull Down menu Reply

     Hi Anu

     To answer your last question, you can define the procedures you are using in the menu before or after the menu item is defined. It is independent of the item definition and will only cause an error if it is not available when the menu button is pushed.

    Your initial issue is because there is already user triggers set for maskLayout.  You have to get that information and add your trigger to it.Note that if there is more than one procedure defined for a trigger, you will only get the first procedure.

    appInfo = deGetAppInfo( "maskLayout" ) ;returns a property list where:

    userApp = appInfo->userAppTrigList ; This is the user pre install trigger

    userMenu = appInfo->userMenuTrigList ; This is the user menu trigger

    userPost = appinfo->userPostInstallTrigList ; This is the post intall list

     deUnRegUserTriggers("maskLayout") ; Unregister the triggers

    deRegUserTriggers( "maskLayout" userApp userMenu 'trPostUserInstallTrigger)

     You probably can find more info on these in the Virtuoso Design Environment SKILL Reference.

     Ted

     

    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by AnuJoamon at 05 Mar 2009 02:20 AM. Topic has 3 replies.