User (Legacy) Posted November 21, 2003 Report Share Posted November 21, 2003 Hi, I want to put separator(line) inbetween two menus in the context menu. I searched enough in the help provided by chartFX. But I did not get any information. Please tell me, how can i put a line inbetween the menus in the context menu And also, in the context menu, each menu item is associated with image(Picture). I do not need this image with menu. I did not set picture property and also set Style property to showtextonly. Still I am getting menu with some default picture. Please tell me how can i display a menu with out image in the context menu. Thanks, Selvam Link to comment Share on other sites More sharing options...
Software FX Posted November 24, 2003 Report Share Posted November 24, 2003 The Separator is added as any other command. The ID of the separator is -1. For example: Command command = chart1.Commands[(int)CommandID.ContextMenuBack]; command.InsertSubCommands(1,2); command.SubCommandID[2] = -1; The following code adds a Custom Command WITHOUT a picture: chart1.Commands.AddCommand(1); Command command = chart1.Commands[1]; command.Text = "MY Command"; command.Picture = -1; -- 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.