[Bug]: Page Drag&Drop/Floating exception
See original GitHub issueDescribe the bug Exception when dragging a page inside a DockableWorkspace.
Only happens in 60.22.2.32.
Stack trace
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
at Krypton.Toolkit.CommonHelper.ScaleImageForSizedDisplay(Image src, Single trgtWidth, Single trgtHeight)
at Krypton.Toolkit.ButtonSpecView.GetImage(PaletteState state)
at Krypton.Toolkit.RenderStandard.AllocateImageSpace(StandardContentMemento memento, IPaletteContent paletteContent, IContentValues contentValues, PaletteState state, Rectangle displayRect, RightToLeft rtl, Size[,]& allocation)
at Krypton.Toolkit.RenderStandard.GetContentPreferredSize(ViewLayoutContext context, IPaletteContent palette, IContentValues values, VisualOrientation orientation, PaletteState state, Boolean composition, Boolean glowing)
at Krypton.Toolkit.ViewDrawContent.GetPreferredSize(ViewLayoutContext context)
at Krypton.Toolkit.ViewLayoutDocker.GetPreferredSize(ViewLayoutContext context)
at Krypton.Toolkit.ViewComposite.GetPreferredSize(ViewLayoutContext context)
at Krypton.Toolkit.ViewDrawSplitCanvas.GetPreferredSize(ViewLayoutContext context)
at Krypton.Toolkit.ViewDrawButton.GetPreferredSize(ViewLayoutContext context)
at Krypton.Toolkit.ViewComposite.GetPreferredSize(ViewLayoutContext context)
at Krypton.Toolkit.ViewLayoutCenter.GetPreferredSize(ViewLayoutContext context)
at Krypton.Toolkit.ViewDrawDocker.Layout(ViewLayoutContext context)
at Krypton.Toolkit.ViewDecorator.Layout(ViewLayoutContext context)
at Krypton.Toolkit.ViewDrawDocker.Layout(ViewLayoutContext context)
at Krypton.Toolkit.ViewManager.Layout(ViewLayoutContext context)
at Krypton.Toolkit.KryptonForm.CheckViewLayout()
at Krypton.Toolkit.KryptonForm.WindowChromePaint(Graphics g, Rectangle bounds)
at Krypton.Toolkit.VisualForm.OnNonClientPaint(IntPtr hWnd)
at Krypton.Toolkit.VisualForm.OnWM_NCPAINT(Message& m)
at Krypton.Toolkit.VisualForm.WndProc(Message& m)
at Krypton.Docking.KryptonFloatingWindow.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)
Steps to reproduce the behavior: Add a Form Add KryptonPanel Add DockableWorkspace to the panel
Setup docking manager on Form Load:
KryptonDockingWorkspace w = KryptonDockingManager.ManageWorkspace(kryptonDockableWorkspace);
KryptonDockingManager.ManageControl(kryptonPanel, w);
KryptonDockingManager.ManageFloating(this);
Add some page using KryptonDockingManager.AddToWorkspace()
In this minimal application it only throws exception when trying to drag a page. On another more complex application it also throws the same exception at form resize or even when trying to show the desktop.
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (7 by maintainers)
Top Results From Across the Web
Dragging LayoutAnchoreable into outer docking buttons of ...
The solution to this problem should be to not offer the 4 outer drop buttons when dragging an item on over a Floating...
Read more >Error: java.lang.RuntimeException: Timout showing floating ...
I have floating bar profiles connected to variable states. But I'm having issues I cannot resolve. My profiles/tasks are executed.
Read more >Pop Shell: Floating Window Exceptions GUI : r/pop_os
In Pop Shell panel menu will be a new option, "Floating Window ... Drag & drop not working from file explorer into Premiere...
Read more >Floating Point Exception error in Multiphase when g is ...
Dear Team,n When I am trying to run multiphase simulation with water and air as medium to calculate the pressure drop for velocity...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Done! https://github.com/Krypton-Suite/Standard-Toolkit/issues/691
The help.exe has all the API docs I’m looking for at the moment! Thanks!
I put this code and then it is working for me