Jump to content
Software FX Community

remove Edit Title from right click


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...