User (Legacy) Posted November 26, 2002 Report Share Posted November 26, 2002 Hi : I want to remove Edit Title from right click menu when right clicking on bottom tilte. I tried the following: Chart.Commands(CFX_ID_CM_TITLE).RemoveSubCommand(0) but did not dive any effect. Any other solution? Thanks for reply. Shailesh Link to comment Share on other sites More sharing options...
Software FX Posted November 26, 2002 Report Share Posted November 26, 2002 This will remove it from the Right-Click title menu (when you right-click on top of the title), to remove it from the chart menu (when you right-click on the chart area): Chart.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand (6) -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 26, 2002 Author Report Share Posted November 26, 2002 Hi: Either wayI tried and when I right click on title it still shows Edit title on right click menu at both places. Is there a way to stop user changing title? Thanks for your reply. Shailesh "SoftwareFX Support" <support@softwarefx.com> wrote in message news:tW$nvLXlCHA.1060@webserver1.softwarefx.com... > This will remove it from the Right-Click title menu (when you right-click > on top of the title), to remove it from the chart menu (when you right-click > on the chart area): > > Chart.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand (6) > > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted November 26, 2002 Report Share Posted November 26, 2002 I tested this code: Chart.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand (6) And works perfectly. Please create a new project, drop a chart in the main form and paste this code in the Form_Load event. What happens ? If it works, then check your code (in your application) if it doesn't work, please check the version of your component and download the latest service pack if needed. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 27, 2002 Author Report Share Posted November 27, 2002 Hi: BTW, I am using this code in ASP. Presently, I am using trial version and planning to buy sometime in next month. I would like to experiment this situation on the page. If I need to twist line of code let me know. Thanks for reply. Shailesh "SoftwareFX Support" <support@softwarefx.com> wrote in message news:Qw#$kNYlCHA.1060@webserver1.softwarefx.com... > I tested this code: > > Chart.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand (6) > > And works perfectly. > > Please create a new project, drop a chart in the main form and paste this > code in the Form_Load event. What happens ? > > If it works, then check your code (in your application) if it doesn't work, > please check the version of your component and download the latest service > pack if needed. > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted November 27, 2002 Report Share Posted November 27, 2002 Make sue you do: <!-- #include virtual="/Include/CfxIECmds.inc" --> Otherwise, the CMD_ID_* constants will not be defined. The following ASP works as expected: <HTML> <HEAD> </HEAD> <BODY> <!-- #include virtual="/Include/CfxIE.inc" --> <!-- #include virtual="/Include/CfxIECmds.inc" --> <% Set chart = Server.CreateObject("ChartFX.WebServer") chart.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand (6) %> <br> <%=chart.GetHtmltag(800,600,"ActiveX")%> </BODY> </HTML> -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 27, 2002 Author Report Share Posted November 27, 2002 Hi: It works now. But, it was this line that has parameter "ActiveX" in it. <%=chart.GetHtmltag(500,350,"ActiveX")%> However, if I use <%= chart.GetHtmltag(500,350,"ActiveX","Chart1","Urner Barry|Hist|History") %> it did not remove "Edit title" from right click menu. Any reason, why? Thanks. Shailesh "SoftwareFX Support" <support@softwarefx.com> wrote in message news:4pPfUqjlCHA.1820@webserver1.softwarefx.com... > Make sue you do: > > <!-- #include virtual="/Include/CfxIECmds.inc" --> > > Otherwise, the CMD_ID_* constants will not be defined. > > The following ASP works as expected: > > <HTML> > <HEAD> > </HEAD> > <BODY> > <!-- #include virtual="/Include/CfxIE.inc" --> > <!-- #include virtual="/Include/CfxIECmds.inc" --> > <% > Set chart = Server.CreateObject("ChartFX.WebServer") > chart.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand (6) > %> > <br> > <%=chart.GetHtmltag(800,600,"ActiveX")%> > </BODY> > </HTML> > > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted November 27, 2002 Report Share Posted November 27, 2002 Yes, the reason is that you are using personalization, and these settings are already saved in your client computer, so no matter what you do in the server, the user settings are going to prevail. To fix this, simply change the name of your personalized chart to, for example "Urner Barry|Hist|History2". -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.