Jump to content
Software FX Community

How to replace zooming with Custom Zooming in ToolBar


Recommended Posts

I'm using the folloing code to create a command & then the handler. By doing this I get a new Tool bar button.

That not exactly what I want to do. I want my "Zoom Off" command to replace the ChartFX "Zoom" toolBar command.

How can I do that. Also, I couldn't fire InternalCommand event as you suggested. 


chart2.Commands[4].Enabled = true;chart2.Commands[4].Text = "Zoom Off";

chart2.ToolBarObj[15] = 4;  // I'm just using 15 because I don't know what to use

chart2.UserCommand +=

new CommandUIEventHandler(chart2_UserCommand);



Link to comment
Share on other sites

The InternalCommand event is there with all the other events. I don't know why you don't see it.

You can also replace the Zoom button in the toolbar with any command, either pre-defined or custom. In the default toolbar, the Zoom button is index 18 (separators count as items too).

Note: Because of the location of this posting I am assuming you are using Chart FX for VS 2005 Windows Form control.

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.

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.

  • Create New...