Jump to content
Software FX Community

remove Edit Title from right click


User (Legacy)

Recommended Posts

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

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

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

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

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

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.

post-2107-13922394596499_thumb.jpg

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...