Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=76680 --- shadow/76680 2005-11-12 06:36:16.000000000 -0500 +++ shadow/76680.tmp.28166 2005-11-12 06:36:16.000000000 -0500 @@ -0,0 +1,60 @@ +Bug#: 76680 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: XP SP2 +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: [WINDOWS] in certain condition TreeView does not render node focus + +On Windows, with the code below, without command line arguments, it does +not render mouse focus on tree nodes when I click any of the nodes. + +If you pass any arguments, then MainMenu is disabled, and in such cases +TreeView draws node selection focus fine. + +using System; +using System.Windows.Forms; + +public class MyTest : Form +{ + static bool no_menu; + + public static void Main (string [] args) + { + if (args.Length > 0) + no_menu = true; + Application.Run (new MyTest ()); + } + + public MyTest () + { + TreeView tv = new TreeView (); + tv.Dock = DockStyle.Fill; + tv.Nodes.Add (new TreeNode ("foo")); + tv.Nodes [0].Nodes.Add (new TreeNode ("child")); + Controls.Add (tv); + + if (!no_menu) { + Menu = new MainMenu (); + MenuItem mi = new MenuItem (); + mi.Text = "&File"; + Menu.MenuItems.Add (mi); + } + } +} + +How often does this happen? + +Not 100% consistently. I saw it once drew focus fine (at that run time +every click drew the focus fine), if I don't miss anything. If it was my +mistake, then it consistently happens. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
