[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #10941] TextBox shows Text in "grey on grey" whe
From: |
Erich Kitzmüller |
Subject: |
[Pnet-developers] [bugs #10941] TextBox shows Text in "grey on grey" when not enabled |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7) Gecko/20040626 Firefox/0.9.1 |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #10941] Latest Modifications:
Changes by:
Erich Kitzmüller <address@hidden>
'Date:
Mon 08.11.2004 at 11:37 (GMT)
------------------ Additional Follow-up Comments ----------------------------
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.
/**************************************************************************/
[bugs #10941] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10941>
Project: DotGNU Portable.NET
Submitted by: Erich Kitzmüller
On: Mon 08.11.2004 at 10:19
Category: None
Severity: 5 - Average
Item Group: None
Resolution: None
Privacy: Public
Assigned to: None
Status: Open
Summary: TextBox shows Text in "grey on grey" when not enabled
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.
Follow-up Comments
------------------
-------------------------------------------------------
Date: Mon 08.11.2004 at 11:37 By: Erich Kitzmüller <ammoq>
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.
File Attachments
-------------------
-------------------------------------------------------
Date: Mon 08.11.2004 at 10:19 Name: FormTest.cs Size: 357B By: ammoq
http://savannah.gnu.org/bugs/download.php?item_id=10941&item_file_id=1845
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=10941>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/