bugDotGNU Portable.NET - Bugs: bug #10941, TextBox shows Text in "grey...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10941: TextBox shows Text in "grey on grey" when not enabled

Submitter:  Erich Kitzmüller <ammoq>
Submitted:  Mon 08 Nov 2004 10:19:24 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Sat 23 Apr 2005 04:22:27 AM UTC, comment #4: 

Patch #3929 applied to CVS 23.Apr.05.

Deryk Robosson <drobosson>
Group Member
Sun 12 Dec 2004 10:28:24 AM UTC, comment #3: 

You could e.g. replace "BackColor" with "SystemColors.GrayText" in TextBox.cs line 1443 to make it more readable; IMO the question is: what is it supposed to look like (what does it look like in MS .net)?

Erich Kitzmüller <ammoq>
Sat 11 Dec 2004 01:19:52 PM UTC, comment #2: 

Applied patch #3508 .

Grey text is still not really readable - more patches ?.

Gopal.V <t3rmin4t0r>
Group administrator
Mon 08 Nov 2004 11:37:59 AM UTC, comment #1: 

It's not grey in grey, but not painted at all. The reason is a interger overflow in Rectangle.cs. This is caused by the following line (appears two times in TextBox.DrawText):

   ControlPaint.DrawStringDisabled(g, lineText, font, BackColor, new Rectangle(x, y, int.MaxValue, int.MaxValue), StringFormat.GenericDefault);

This causes problems in Rectangle.IntersectsWidth()

public bool IntersectsWith(Rectangle rect)
{
return (rect.x < (x + width) &&
        (rect.x + rect.width) >= x &&
        rect.y < (y + height) &&
        (rect.y + rect.height) >= y);
}


I don't know if this should be patched in Rectangle.cs or in TextBox.cs; maybe both.

Erich Kitzmüller <ammoq>
Mon 08 Nov 2004 10:19:24 AM UTC, original submission:  

The text in a TextBox should be readable even if the TextBox is not enabled. Currently, the textbox turns grey and the text is not visible.

Erich Kitzmüller <ammoq>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #1958:  FormTest.cs added by ammoq (357B - text/x-csharp)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-12-11 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed
2004-11-08 ammoq Attached File- Added FormTest.cs, #1845

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code