| Author |
Message |
Guenther Sohler
Guest
|
Posted:
Thu Nov 17, 2005 9:10 am Post subject:
Graying out Menu Items |
|
|
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 ?
|
|
| Back to top |
|
 |
Bernd Fischer
Guest
|
Posted:
Thu Nov 17, 2005 1:10 pm Post subject:
Re: Graying out Menu Items |
|
|
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:
| Quote: | 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 ?
|
|
|
| Back to top |
|
 |
Bernd Fischer
Guest
|
Posted:
Thu Nov 17, 2005 1:10 pm Post subject:
Re: Graying out Menu 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:
| Quote: | 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 ?
|
|
|
| Back to top |
|
 |
Guenther Sohler
Guest
|
Posted:
Thu Nov 17, 2005 1:10 pm Post subject:
Re: Graying out Menu 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 ? |
|
| Back to top |
|
 |
|
|
|
|