[Mono-bugs] [Bug 78429][Min] New - ButtonBase: differentiate
AcceptButton and focused Button
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed May 17 07:22:42 EDT 2006
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 atsushi at ximian.com.
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: peter at novonyx.com
+ReportedBy: atsushi at ximian.com
+QAContact: mono-bugs at ximian.com
+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.
More information about the mono-bugs
mailing list