User (Legacy) Posted December 18, 2006 Report Share Posted December 18, 2006 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 More sharing options...
Software FX Posted December 19, 2006 Report Share Posted December 19, 2006 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 More sharing options...
User (Legacy) Posted December 19, 2006 Author Report Share Posted December 19, 2006 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 More sharing options...
User (Legacy) Posted December 19, 2006 Author Report Share Posted December 19, 2006 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 More sharing options...
Software FX Posted December 19, 2006 Report Share Posted December 19, 2006 Since you didn't post in the Chart FX for Visual Studio 2005 Newsgroup I assumed you were using 6.2. Here is the code for 7.0: chart1.AllowChanges &= ~AllowChanges.View3D; Next time post to chartfx.vs2005.winforms or chartfx.vs2005.webforms for faster response. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.