User (Legacy) Posted August 26, 2002 Report Share Posted August 26, 2002 Hi, I am using the Remove Items Method of the MenuObject ie: ChartFX1.MenuBarObj.RemoveItems 2,0 Unfortunately, the menu displayed when I right click on the chart is unchanged Is this the correct method to use? Cheers Red Quote Link to comment Share on other sites More sharing options...
Software FX Posted August 26, 2002 Report Share Posted August 26, 2002 The MenuBarObj is not the Right-Click menu, the right click menu varies depending where you click (axis, bars, background, etc.) and each of this is a different command inside the Commands collection. For example, to remove the first 2 items from the Right-Click menu that shows when you right click on the chart background, you will do: ChartFX1.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand 0 ChartFX1.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand 0 The Right-Click menu commands are: CFX_ID_CM_SERIES CFX_ID_CM_BACKGROUND CFX_ID_CM_AXIS CFX_ID_CM_TITLE -- FP Software FX, Inc. Quote Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 26, 2002 Author Report Share Posted August 26, 2002 Many Thanks :-) "SoftwareFX Support" <support@softwarefx.com> wrote in message news:meoeSkSTCHA.2604@webserver1.softwarefx.com... > The MenuBarObj is not the Right-Click menu, the right click menu varies > depending where you click (axis, bars, background, etc.) and each of this is > a different command inside the Commands collection. > > For example, to remove the first 2 items from the Right-Click menu that > shows when you right click on the chart background, you will do: > > ChartFX1.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand 0 > ChartFX1.Commands(CFX_ID_CM_BACKGROUND).RemoveSubCommand 0 > > The Right-Click menu commands are: > > CFX_ID_CM_SERIES > CFX_ID_CM_BACKGROUND > CFX_ID_CM_AXIS > CFX_ID_CM_TITLE > > -- > 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.