User (Legacy) Posted February 13, 2003 Report Share Posted February 13, 2003 Hi, I have a Toolbar on the chart and have removed all the buttons except for the "Copy to Clipboard" button. It works fine, however withing the copy to Clipboard option there are 4 submenus (As a bitmap, as a metafile, as text, as OLE object). Is there a way to remove/hide these submenus and only have the "as a metafile" available. Basically, I want the users to have only one option to copy the Chart. How do I do this? Also, can I add some Text on the "Copy to clipboard" button Thanks - Rich The code is as below <% Set chart1 = server.createobject("ChartFX.WebServer") ' General Settings Chart1.TypeMask = &H6880502& Chart1.Style = &HF76FFFF8& ' Other Settings Chart1.DblClk 0,0 Chart1.ToolBarObj.Visible = True Chart1.ToolBarObj.Docked = TGFP_RIGHT Chart1.ToolBarObj.RemoveItems 19,4 Chart1.ToolBarObj.RemoveItems 2,0 Chart1.OpenDataEx 2,1,0 chart1.ConstantLine(0).value=40 chart1.ConstantLine(0).linecolor=RGB(255,0,0) chart1.ConstantLine(0).axis=AXIS_Y chart1.ConstantLine(0).label="Limit 1" chart1.ConstantLine(0).linewidth=1 Chart1.CloseData 2 chart1.serleg(0)="First" chart1.serleg(1)="Second" Chart1.SerLegBox = TRUE %> <%= Chart1.GetHtmlTag(415,310,"Auto","Chart1") %> Quote Link to comment Share on other sites More sharing options...
Software FX Posted February 13, 2003 Report Share Posted February 13, 2003 Check out the following article: Q1371021. Adding custom commands to chartfx's popup menus In your particular case, you want to remove instead of adding but it is very similar, the RemoveSubCommand method, removes a command form a list of commands (menu). For example, to remove the Copy-To-Bitmap item from the Copy menu, you can do: ChartFX1.Commands(CFX_ID_EXPORTCLIPBOARD).RemoveSubcommand (0) Where "0" is specifying the FIRST command in the list. -- FP Software FX, Inc. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.