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

Submitted by:  Erich Kitzmüller <ammoq>
Submitted on:  Mon 08 Nov 2004 10:19:24 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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>
Project 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>
Project 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>

 

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

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 11 Dec 2004 01:19:52 PM UTCt3rmin4t0rStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Mon 08 Nov 2004 10:19:24 AM UTCammoqAttached File-=>Added FormTest.cs, #1845

Back to the top


Powered by Savane 3.1-cleanup1