Jump to content
Software FX Community

Disable a toolbar menu option


User (Legacy)

Recommended Posts

Francisco,

I couldn't find the Command Id to disable the 3D/2D menu option (see image

file attached).

It's not:

- base.Commands[(int)CommandId.View3D].Enabled = false;

- base.Commands[(int)CommandId.Show3D].Enabled = false;

- base.Commands[(int)CommandId.Axes3DFrame].Enabled = false;

Do you know the command?

Thx!

--

Olivier Voyer

CYME International T&D

Link to comment
Share on other sites

Thank you,

But I don't have the "Style" propertie in my Chart... only the

"StyleChanged" event. I'm using Microsoft Visual C# 2005... And "ChartStyle"

doesn't exist either, there is only a "ChartStyles" but the value "Change3D"

is not there.

Any clue?

--

Olivier Voyer

CYME International T&D

"Software FX" <noreply@softwarefx.com> wrote in message

news:73f1WB6IHHA.252@webserver3.softwarefx.com...

> Standard commands are enabled/disabled automatically based on chart

> settings, so anything you do to the Enabled property will be lost.

>

> To prevent switching to 3D from ANY UI do:

>

> chart1.Style &= ~ChartStyle.Change3D;

>

>

> --

> Francisco Padron

> www.chartfx.com

>

Link to comment
Share on other sites

Note: I tried

base.View3D.Enabled = false;

But it doesn't work.

--

Olivier Voyer

CYME International T&D

"Olivier" <olivier.voyer@cyme.com> wrote in message

news:c9mDHK6IHHA.252@webserver3.softwarefx.com...

> Thank you,

>

> But I don't have the "Style" propertie in my Chart... only the

> "StyleChanged" event. I'm using Microsoft Visual C# 2005... And

> "ChartStyle" doesn't exist either, there is only a "ChartStyles" but the

> value "Change3D" is not there.

>

> Any clue?

>

> --

> Olivier Voyer

> CYME International T&D

>

> "Software FX" <noreply@softwarefx.com> wrote in message

> news:73f1WB6IHHA.252@webserver3.softwarefx.com...

>> Standard commands are enabled/disabled automatically based on chart

>> settings, so anything you do to the Enabled property will be lost.

>>

>> To prevent switching to 3D from ANY UI do:

>>

>> chart1.Style &= ~ChartStyle.Change3D;

>>

>>

>> --

>> Francisco Padron

>> www.chartfx.com

>>

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...