User clicked on invisible tab page

Topics related to the Krypton Navigator.

Moderators: Phil Wright, Chris Porter

User clicked on invisible tab page

Postby Judah » Mon Jul 06, 2009 4:21 am

Just got a bug report in our software, where it appears the user clicked a KryptonTab page with .Visible = false. Somehow, the tab showed up in the UI and the user clicked it, resulting in an exception:

ArgumentNullException

Message = Cannot select a page that is not visible
Parameter name: value

User Comments: was on a note, and the "History" tab in preview tabbed info was visible (no idea why)...so, i clicked on it...

Stacktrace:
at ComponentFactory.Krypton.Navigator.KryptonNavigator.set_SelectedPage(KryptonPage value)
at gu.b(Object A_0, EventArgs A_1)
at dt.b(Object A_0, EventArgs A_1)
at ComponentFactory.Krypton.Toolkit.ButtonController.OnClick(MouseEventArgs e)
at ComponentFactory.Krypton.Toolkit.ButtonController.MouseDown(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ToolTipController.MouseDown(Control c, Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewBase.MouseDown(Point pt, MouseButtons button)
at ComponentFactory.Krypton.Toolkit.ViewManager.MouseDown(MouseEventArgs e, Point rawPt)
at ComponentFactory.Krypton.Toolkit.VisualControlBase.OnMouseDown(MouseEventArgs e)
at ComponentFactory.Krypton.Navigator.KryptonNavigator.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at ComponentFactory.Krypton.Toolkit.VisualControlBase.WndProc(Message& m)
at ComponentFactory.Krypton.Navigator.KryptonNavigator.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

ParamName=value
Data=System.Collections.ListDictionaryInternal
Judah
 
Posts: 98
Joined: Tue Jul 18, 2006 4:58 am

Re: User clicked on invisible tab page

Postby Phil Wright » Tue Jul 07, 2009 11:32 pm

Do you a sample project or set of steps to reproduce the issue? Thanks.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: User clicked on invisible tab page

Postby Judah » Thu Jul 09, 2009 4:56 am

Phil - no, afraid not. This is an error report from software running on other users' machine; I've no idea how to reproduce it, only passing the error information on.
Judah
 
Posts: 98
Joined: Tue Jul 18, 2006 4:58 am

Re: User clicked on invisible tab page

Postby ericdv » Sat Jul 11, 2009 2:18 am

Here is a repro for the bug
Attachments
KryptonTabBug2.zip
(11.51 KiB) Downloaded 6 times
ericdv
 
Posts: 1
Joined: Tue Mar 04, 2008 5:35 am

Re: User clicked on invisible tab page

Postby Phil Wright » Sat Jul 11, 2009 2:28 pm

Just tried your test application on my internal code and it worked fine. Showing the group again the invisible page was indeed invisible. I believe this has been fixed in the latest version.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia


Return to Krypton Navigator

Who is online

Users browsing this forum: No registered users and 0 guests

cron