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 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. 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. > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.