[Mono-bugs] [Bug 57551][Min] New - Hotkey line misaligned

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 23 Apr 2004 22:05:49 -0400 (EDT)

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 peter@novonyx.com.


--- shadow/57551	2004-04-23 22:05:49.000000000 -0400
+++ shadow/57551.tmp.2063	2004-04-23 22:05:49.000000000 -0400
@@ -0,0 +1,25 @@
+Bug#: 57551
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Minor
+Component: Sys.Drawing.
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: peter@novonyx.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Hotkey line misaligned
+When using Graphics.DrawString, the underline character (Hotkey prefix) is
+always positioned left aligned within the bounding rectangle, even if the
+text itself is centered. (Haven't tried right-aligned text)
+Call Graphics.DrawString with text argument "&Cancel" and a
+textFormat.LineAlignment=StringAlignment.Center and
+textFormat.HotkeyPrefix=Hotkey.Show (to enable underlining of prefix chars)