How to gray out menu options?

Discuss and ask questions about CADViewX (Lite and Pro versions).

Moderators: admin, support, SDS

Post Reply
jose.dubois
Posts: 2
Joined: 21 Jul 2016, 00:14
Contact:

How to gray out menu options?

Post by jose.dubois » 21 Jul 2016, 00:48

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!

support
Posts: 2829
Joined: 30 Mar 2005, 11:36
Contact:

Re: How to gray out menu options?

Post by support » 21 Jul 2016, 13:07

Hello Jose,

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

Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

jose.dubois
Posts: 2
Joined: 21 Jul 2016, 00:14
Contact:

Re: How to gray out menu options?

Post by jose.dubois » 21 Jul 2016, 17:47

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!

support
Posts: 2829
Joined: 30 Mar 2005, 11:36
Contact:

Re: How to gray out menu options?

Post by support » 21 Jul 2016, 19:37

Hello Jose,

You should use a CADViewX.EnabledAction property to disable (gray out) the toolbar button. Below are the examples of usage of 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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply