Page 1 of 1

How to gray out menu options?

PostPosted: 20 Jul 2016, 22:48
by jose.dubois
Hi!

How to gray out menu options at the top of the ActiveX control? I read that visibleaction may do the job but I can't find the parameters description (values). Any idea someone?

TIA!

Re: How to gray out menu options?

PostPosted: 21 Jul 2016, 11:07
by support
Hello Jose,

Could you specify what CADViewX version (Lite or Pro) are you using?


Mikhail

Re: How to gray out menu options?

PostPosted: 21 Jul 2016, 15:47
by jose.dubois
Hi! I got my answer from the e-Mail support. It is the "lite" version. My answer is that the "tbOpen" dialog icon has to be set to off (or "0") every time a new file is loaded. And it works.

Thank you!

Re: How to gray out menu options?

PostPosted: 21 Jul 2016, 17:37
by support
Hello Jose,

You should use a CADViewX.EnabledAction property to disable (gray out) the toolbar button. Below are the examples of using this property for disabling the Open button.

Delphi
Code: Select all
FCADViewX.EnabledAction[tbOpen] := False;

C#
Code: Select all
axCADViewX1.set_EnabledAction(CADViewLib.TxToolButton.tbOpen, false);

VB6
Code: Select all
CADViewX1.EnabledAction(tbOpen) = False


Mikhail