inserting menu in ciw banner from cdsinit

S

S. Badel

Guest
i wrote a skill script which adds a menu to the ciw banner,
when i run it from .cdsinit, the menu is not added.
what seems to happen is the menu is actually added
when hiInsertBannerMenu() is called, but the CIW menu
is not ready at that time and it is further replaced
by the common file, tools etc... menu
how to do then?

thanks
s.badel
 
Do you use 'ciwMenuInit( )' before 'hiInsertBannerMenu( )',
if not try it.

This is what Cadence says about the issue I believe I can post it.

Bernd

This initialization order has changed in 445. In releases prior to 445 the
order was:

1. Initialize SKILL
2. initialize CIW menus
3. load .cdsinit

In 445 the order was changed to:

1. Initialize SKILL
2. load .cdsinit
3. initialize CIW menus

The workaround will be available at the first 445 ISR. To correct the
problem add a call to ciwMenuInit() before you initialize any CIW menu
from the cdsinit file.

For Example,

========= BEGIN .cdsinit
ciwMenuInit()
myItem = hiCreateMenuItem(?name 'myItem
?itemText "Hello"
?callback "println(\"Hello !!\")"
)
hiAddMenuItem( ciwFileMenu myItem )
hiCreateMenu( 'myPulldown "Sample" list( myItem ) )
hiInsertBannerMenu( window(1) 'myPulldown 4 )
========= END .cdsinit




S. Badel wrote:
i wrote a skill script which adds a menu to the ciw banner,
when i run it from .cdsinit, the menu is not added.
what seems to happen is the menu is actually added
when hiInsertBannerMenu() is called, but the CIW menu
is not ready at that time and it is further replaced
by the common file, tools etc... menu
how to do then?

thanks
s.badel
 
got it Bernd, thanks

"Bernd Fischer" <bernd.fischer@xignal.de> wrote in message
news:3F94F8DA.2060302@xignal.de...
Do you use 'ciwMenuInit( )' before 'hiInsertBannerMenu( )',
if not try it.

This is what Cadence says about the issue I believe I can post it.

Bernd

This initialization order has changed in 445. In releases prior to 445 the
order was:

1. Initialize SKILL
2. initialize CIW menus
3. load .cdsinit

In 445 the order was changed to:

1. Initialize SKILL
2. load .cdsinit
3. initialize CIW menus

The workaround will be available at the first 445 ISR. To correct the
problem add a call to ciwMenuInit() before you initialize any CIW menu
from the cdsinit file.

For Example,

========= BEGIN .cdsinit
ciwMenuInit()
myItem = hiCreateMenuItem(?name 'myItem
?itemText "Hello"
?callback "println(\"Hello !!\")"
)
hiAddMenuItem( ciwFileMenu myItem )
hiCreateMenu( 'myPulldown "Sample" list( myItem ) )
hiInsertBannerMenu( window(1) 'myPulldown 4 )
========= END .cdsinit




S. Badel wrote:
i wrote a skill script which adds a menu to the ciw banner,
when i run it from .cdsinit, the menu is not added.
what seems to happen is the menu is actually added
when hiInsertBannerMenu() is called, but the CIW menu
is not ready at that time and it is further replaced
by the common file, tools etc... menu
how to do then?

thanks
s.badel
 

Welcome to EDABoard.com

Sponsor

Back
Top