Graying out Menu Items

G

Guenther Sohler

Guest
Hallo Group,

I have extended the menus in our schematic composer using

hiAddMenuItem(parentmenu newmenuitem)

however, i see that most of the existing menus gray out, once
you put the schematic in read-only-mode.

How does this mechanism work and how can I also add this feature to the
newly added items ?
 
I haven't tried this, it's just out of the
docu, but it seems to fit.

Yea the docu you know it this pretty thing
where commands are explained ;-).
By the the way do you know the SKILL finder
it's a kind of online SKILL reference which is my
first place to go in such cases.

Try it just type in 'startFinder' in your CIW
input pane.


hiDisableMenuItem(
r_hiMenu
s_itemHandle
[w_windowId]
)
=> t | nil

Grays out menu items (s_itemHandle) on pull-down, pop-up, or fixed menus
(r_hiMenu), making them unselectable.


Bernd

Guenther Sohler wrote:
Hallo Group,

I have extended the menus in our schematic composer using

hiAddMenuItem(parentmenu newmenuitem)

however, i see that most of the existing menus gray out, once
you put the schematic in read-only-mode.

How does this mechanism work and how can I also add this feature to the
newly added items ?
 
Dear Mr. Fischer,

Thank you for your reply.
I know about the

hiDisableMenuItem

Command from the Documentation.(I do read it)
But probably I did not express myself properly.

If I select Design->Make Readonly,

cadence grays out a lot of MenuItems in the schematic Composer.
But it does not gray out my newly added MenuItems.
Is there a list of menuitems to gray out whenever you select Make
ReadOnly, Make Editable ...

Is there a special mechanism behind it ?
 
Not tested and not 100% sure, but I think a
a post install trigger can do the job.

procedure( myPostinstallTrg( args )
when( args->accessMode == "r"
...
hiDisableMenuItem( ... )
...
)
)

deRegUserTriggers(
"schematic"
nil
nil
'myPostinstallTrg
)


Bernd

PS: Mr. Fischer makes me feel real old.


Guenther Sohler wrote:
Dear Mr. Fischer,

Thank you for your reply.
I know about the

hiDisableMenuItem

Command from the Documentation.(I do read it)
But probably I did not express myself properly.

If I select Design->Make Readonly,

cadence grays out a lot of MenuItems in the schematic Composer.
But it does not gray out my newly added MenuItems.
Is there a list of menuitems to gray out whenever you select Make
ReadOnly, Make Editable ...

Is there a special mechanism behind it ?
 

Welcome to EDABoard.com

Sponsor

Back
Top