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=78429 --- shadow/78429 2006-05-17 07:22:42.000000000 -0400 +++ shadow/78429.tmp.17685 2006-05-17 07:22:42.000000000 -0400 @@ -0,0 +1,59 @@ +Bug#: 78429 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Minor +Component: Windows.Forms +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: ButtonBase: differentiate AcceptButton and focused Button + +Currently ButtonBase draws rectangle as either it is focused or it is the +accept button of the form in the same way. On Windows they are different. A +focused button has dashed lines rather far from its border (for non-flat +buttons) and an accept button has deeper ridge (as it currently has). + +Run file dialog (winforms/filedialog) and hit tab key around until it +reaches to [Open] button. It is in the "focused" state. Then, type tab and +the focus moves to [Cancel] button. + +More quick example code goes here: + +using System; +using System.Windows.Forms; + +public class Test : Form +{ + public static void Main () + { + Application.Run (new Test ()); + } + + public Test () + { + Panel p = new Panel (); + Button b1 = new Button (); + b1.Text = "b1"; + b1.DialogResult = DialogResult.OK; + Button b2 = new Button (); + b2.Left = 100; + b2.Text = "b2"; + this.AcceptButton = b1; + p.Controls.Add (b1); + p.Controls.Add (b2); + Controls.Add (p); + TextBox tb = new TextBox (); + tb.Top = 100; + Controls.Add (tb); + } +} + +A patch being attached. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
