EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

Cadence SKILL GUI Modification to ADE (Analog Design Environ

elektroda.net NewsGroups Forum Index - Cadence - Cadence SKILL GUI Modification to ADE (Analog Design Environ

John G
Guest

Fri Aug 13, 2010 7:32 pm   



Hi,

I want to add a custom menu pulldown to ADE, loading my Skill code
in .cdsinit, and for every ADE instance I call, for the menu to be
auto-loaded.

Here's my code so far with assistance from others:

procedure( UserSchMenu()

hiCreatePulldownMenu( 'myMenu
"myMenu"
list( myItem )
) ;hiCreatePulldownMenu

hiInsertBannerMenu(hiGetCurrentWindow() 'myMenu 99)
) ;proc

Then, put a trigger for the procedure to load,
e.g.:

deRegUserTriggers("analogArtist-schematic" nil nil 'UserSchMenu)


My problem is that with the previous statement, it causes this error:

*Error* User post install trigger is not a symbol.


Can someone please give me some pointers?


Thanks!!!!!!

John G
Guest

Fri Aug 13, 2010 7:47 pm   



On Aug 13, 9:32 am, John G <mosf...@gmail.com> wrote:
Quote:
Hi,

I want to add a custom menu pulldown to ADE, loading my Skill code
in .cdsinit, and for every ADE instance I call, for the menu to be
auto-loaded.

Here's my code so far with assistance from others:

procedure( UserSchMenu()

hiCreatePulldownMenu(         'myMenu
          "myMenu"
          list( myItem )
      ) ;hiCreatePulldownMenu

      hiInsertBannerMenu(hiGetCurrentWindow() 'myMenu 99)
) ;proc

Then, put a trigger for the procedure to load,
e.g.:

deRegUserTriggers("analogArtist-schematic" nil nil 'UserSchMenu)

My problem is that with the previous statement, it causes this error:

*Error* User post install trigger is not a symbol.

Can someone please give me some pointers?

Thanks!!!!!!

Oops I found my error -- just a stupid typo.

However, does someone know how to obtain the viewtype name of any
arbitrary ICFB window? Ie how to find out that ADE viewtype is
""analogArtist-schematic" ??? (someone told me this but in the
future I will be modding other windows as well)

Or -- is there a list of viewtypes somewhere in some PDF or webpage
file or help file in ICFB ?


Thanks!

John G
Guest

Sat Aug 14, 2010 2:23 am   



Ok, another question: How to handle passing parameters to callbacks?

ie :

hiCreateAppForm( blah blah ?callback 'myCallBackFunc )


procedure (myCallBackFunc( a b c) ) ; proc


How to pass params to callback from "hiCreateAppForm" thing?


Thanks!

I-F AB
Guest

Mon Aug 16, 2010 6:39 am   



On Aug 14, 7:23 am, John G <mosf...@gmail.com> wrote:
Quote:
Ok, another question: How to handle passing parameters to callbacks?

ie :

hiCreateAppForm( blah blah  ?callback 'myCallBackFunc )

procedure (myCallBackFunc( a b c)  ) ; proc

How to pass params to callback from "hiCreateAppForm" thing?

Thanks!

It's easier to use:

hiCreateAppForm( blah blah ?callback "myCallBackFunc( param1 param2)")

Save the commands in a file & use load("......") in .cdsinit to load
this menu file.

Best regards.
I-FAB

Loz Davis
Guest

Fri Aug 27, 2010 7:08 pm   



deGetViewType(hiGetCurrentWindow())

or you can use the window(<number>) function to get the windowID of an
arbitrary window

deGetAllViewTypes() will return a list of all the registered
viewtypes.


Quote:

However, does someone know how to obtain the viewtype name of any
arbitrary ICFB window?  Ie how to find out that ADE viewtype is
""analogArtist-schematic"  ???  (someone told me this but in the
future I will be modding other windows as well)

Or -- is there a list of viewtypes somewhere in some PDF or webpage
file or help file in ICFB ?

Thanks!


elektroda.net NewsGroups Forum Index - Cadence - Cadence SKILL GUI Modification to ADE (Analog Design Environ

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony