Hi Faisal, You should use the deRegUserTriggers call to do this, and the right thing to do is to use the user menu trigger (you definitely should not use the user post install trigger, as that can have problematic side effects with code fighting other code if you have more than one set of triggers defined). Note that the user menu trigger does not need to add the menus itself - it merely returns a list of pulldown menus, and "de" (the Design Editor) takes care of adding them for you. I would not advise using the sessInitTrigFunc - this is really only designed with ADE L in mind, and is awkward to make it work with ADE XL, Explorer and Assembler such that things don't break. One of the advantages of Explorer and Assembler is that they are "de" applications (ADE L wasn't) which makes this kind of customisation much easier. See the code below - I just tested this, and it works fine: procedure (CCFexplorerAssemblerMenuTrigger(args) list ( hiCreatePulldownMenu ( 'CCFexplorerAssemblerMenu "Custom" list ( hiCreateMenuItem ( ?name 'menu1 ?itemText "First item" ?callback "println(123)" ) hiCreateMenuItem ( ?name 'menu2 ?itemText "Second item" ?callback "println(456)" ) ) ) ) ) deRegUserTriggers ( "explorer" nil 'CCFexplorerAssemblerMenuTrigger) deRegUserTriggers ( "maestro" nil 'CCFexplorerAssemblerMenuTrigger) Kind Regards, Andrew.
↧