Jump to content
Software FX Community

exception on toolbar click...


Recommended Posts

To get the following exception:

1. create a form

2. drop a contextMenu onto the form

- add two items to the contextmenu (any two)

3. drop a chart on, and set the following:

dock = fill

Toolbar = true

ContextMenus = false

ContextMenu = contextMenu1 (or whatever you called your context menu)

4. build the solution.

5. run the solution.

6. goto the toolbar, and right-click, this will raise the context menu.

7. move the mouse off of the context menu, along the toolbar, with the

context-menu still showing. click on a toolbar item.

Example project included.

System.IndexOutOfRangeException: Index was outside the bounds of the array.

at SoftwareFX.ChartFX.Base.ToolBar.19(MouseButton AF, Int32 AG, Int32 AH,

Int32 AI, Int32 AJ)

at SoftwareFX.ChartFX.G.OnMouseUp(MouseEventArgs e)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons

button,

Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,

IntPtr

wparam, IntPtr lparam)

Link to post
Share on other sites

This problem has been fixed, the fix will be included in the next service

pack.

--

Regards,

JC

Software FX Support

"Jason DeBettencourt" <jasond@yahoo.com> wrote in message

news:H2RO5ivUCHA.3104@webserver1.softwarefx.com...

> To get the following exception:

>

> 1. create a form

> 2. drop a contextMenu onto the form

> - add two items to the contextmenu (any two)

> 3. drop a chart on, and set the following:

> dock = fill

> Toolbar = true

> ContextMenus = false

> ContextMenu = contextMenu1 (or whatever you called your context menu)

> 4. build the solution.

> 5. run the solution.

> 6. goto the toolbar, and right-click, this will raise the context menu.

> 7. move the mouse off of the context menu, along the toolbar, with the

> context-menu still showing. click on a toolbar item.

>

> Example project included.

>

>

> System.IndexOutOfRangeException: Index was outside the bounds of the

array.

> at SoftwareFX.ChartFX.Base.ToolBar.19(MouseButton AF, Int32 AG, Int32

AH,

> Int32 AI, Int32 AJ)

> at SoftwareFX.ChartFX.G.OnMouseUp(MouseEventArgs e)

> at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons

> button,

> Int32 clicks)

> at System.Windows.Forms.Control.WndProc(Message& m)

> at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

> at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,

> IntPtr

> wparam, IntPtr lparam)

>

>

>

>

>

example.zip

Link to post
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.

Guest
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.

Loading...
×
×
  • Create New...