Home > Community > Forums > Custom IC SKILL > some thing about the user menus in ADE!(complete!)

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: *

 some thing about the user menus in ADE!(complete!) 

Last post Wed, May 1 2013 2:44 PM by Andrew Beckett. 16 replies.
Started by imagesensor123 09 Feb 2011 04:33 AM. Topic has 16 replies and 4191 views
Page 2 of 2 (17 items) < Previous 1 2
Sort Posts:
  • Tue, Apr 30 2013 3:31 PM

    • NcfC
    • Top 500 Contributor
    • Joined on Mon, Feb 27 2012
    • Chandler, AZ
    • Posts 28
    • Points 440
    Re: RE: RE: some thing about the user menus in ADE! Reply

    hi, Andrew.

    I'm using version 5.10.41.500.6.132. I don't know what got changed when I copy and paste the code but I re-pasted it and, although I got no warnings, I don't see the new menu/item anywhere in the ADE window.

    If I load the following code in the .cdsinit,

    load( prependInstallPath( "etc/tools/menus/schematic.menus" ) )

    procedure(CustomMenu( _args )

    let( (item1 item2)

    ;; create a couple of menu items

    item1 = hiCreateMenuItem( ?name 'item1 ?itemText "Item 1" ?callback "FunctionOne()" )

    item2 = hiCreateMenuItem( ?name 'item2 ?itemText "Item 2" ?callback "FunctionTwo()" )

    ;; create a menu that includes the menu items and return a list of the

    ;; pulldown menus

    list( hiCreatePulldownMenu( 'CustomMenu "Custom Menu" list( item1 item2 ) ) )

    );let

    ); procedure

    ;; create a userMenuTrigger trigger that automatically adds the menu

    deRegUserTriggers( "schematic" nil 'CustomMenu )

    I can see the newly created menus in the schematic but I could make it work with ADE.
     
    Regards
     
    • Post Points: 20
  • Wed, May 1 2013 2:44 PM

    Re: RE: RE: some thing about the user menus in ADE! Reply

    Well, that will never work. The code above is mixing two different methodologies - you're loading the menus file at the top (which shouldn't be loaded from the .cdsinit - it's for menus files only), and the de user menu trigger mechanism...

    So there's no need to have the load() line at the top.

    It doesn't work for ADE because ADE is not a Design Editor application, and so de triggers are not called.

    Regards,

    Andrew.

    • Post Points: 5
Page 2 of 2 (17 items) < Previous 1 2
Sort Posts:
Started by imagesensor123 at 09 Feb 2011 04:33 AM. Topic has 16 replies.