Graying out Menu Items
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Graying out Menu Items

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
Guenther Sohler
Guest





Posted: Thu Nov 17, 2005 9:10 am    Post subject: Graying out Menu Items Reply with 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
Bernd Fischer
Guest





Posted: Thu Nov 17, 2005 1:10 pm    Post subject: Re: Graying out Menu Items Reply with quote

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 Reply with quote

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 Reply with 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
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB