Profile Picture

NChartCommandBarsManager error

Posted By Konstantin Samochernov 14 Years Ago
Author
Message
Konstantin Samochernov
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 4, Visits: 1
Hello!
I have faced a problem in the NChartCommandBarsManager component. Is it possible to avoid this error?
Is it possible to remove "Radial" value from the "Background frame style" dialog?
Thanks.

Steps to reproduce:
1)Create a WinForms application.
2)Put NChartControl to the form
3)Put NChartCommandBarsManager to the form
4)Connect NChartCommandBarsManager to NChartControl
5)Run the application
6)Open "Background frame style" dialog
7)Change frame style to radial
8)InvalidCastException

Unable to cast object of type 'Nevron.GraphicsCore.NRadialFrameStyle' to type 'Nevron.GraphicsCore.NImageFrameStyle'.


Stack trace:
at Nevron.Editors.NFrameStylePreviewRenderer.OnPaintPreview(lIIll1l1 context)
at Nevron.Editors.NStylePreviewRenderer.Render(Graphics g, NRectangleF bounds)
at Nevron.Editors.lIIllI1l.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at Nevron.Editors.NAttributeTypeEditor.Edit(Type attributeEditorType, Type attrubuteType, Boolean allowAutomatic, Object inObj, Object& outObj)
at Nevron.Editors.NFrameStyleTypeEditor.Edit(NFrameStyle frameStyle, NFrameStyle& frameStyleResult)
at Nevron.Chart.WinForm.NFrameBorderCommand.Execute()
at Nevron.Chart.WinForm.NChartCommandBarsManager.OnCommandContextExecuted(CommandContextEventArgs e)
at Nevron.UI.WinForm.Controls.NCommandContext.OnExecuted(CommandContextEventArgs e)
at Nevron.UI.WinForm.Controls.NCommandContext.Execute()
at Nevron.UI.WinForm.Controls.NCommandContext.ExecuteCommand(NCommand comm)
at Nevron.UI.WinForm.Controls.NCommand.OnClick()
at Nevron.UI.WinForm.Controls.NCommand.PerformClick()
at Nevron.UI.WinForm.Controls.NCommandParent.OnMouseUp(MouseEventArgs e)
at Nevron.UI.WinForm.Controls.NDockingToolbar.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at Nevron.UI.WinForm.Controls.NCommandParent.WndProc(Message& m)
at Nevron.UI.WinForm.Controls.NDockingToolbar.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at WindowsFormsApplication2.Program.Main() in D:\tests\WindowsFormsApplication2\WindowsFormsApplication2\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()




Similar Topics


Reading This Topic