How to gray out menu options?

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

Moderators: admin, support, SDS

How to gray out menu options?

Postby jose.dubois » 20 Jul 2016, 22: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!
jose.dubois
 
Posts: 2
Joined: 20 Jul 2016, 22:14

Re: How to gray out menu options?

Postby support » 21 Jul 2016, 11: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
support
 
Posts: 2670
Joined: 30 Mar 2005, 08:36

Re: How to gray out menu options?

Postby jose.dubois » 21 Jul 2016, 15: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!
jose.dubois
 
Posts: 2
Joined: 20 Jul 2016, 22:14

Re: How to gray out menu options?

Postby support » 21 Jul 2016, 17:37

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
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
support
 
Posts: 2670
Joined: 30 Mar 2005, 08:36


Return to CADViewX

Who is online

Users browsing this forum: No registered users and 1 guest