[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [patch #3565] Fix two Form size issues
From: |
Marc Haisenko |
Subject: |
[Pnet-developers] [patch #3565] Fix two Form size issues |
User-agent: |
Mozilla/5.0 (compatible; Konqueror/3.3; Linux) (KHTML, like Gecko) |
This mail is an automated notification from the patch tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[patch #3565] Full Item Snapshot:
URL: <http://savannah.gnu.org/patch/?func=detailitem&item_id=3565>
Project: DotGNU Portable.NET
Submitted by: Marc Haisenko
On: Fri 12/10/2004 at 16:38
Category: None
Priority: 5 - Normal
Resolution: None
Privacy: Public
Assigned to: None
Originator Email:
Status: Open
Summary: Fix two Form size issues
Original Submission: This patch fixes two size problem in Form.cs (they appear
on X Window, I don't know whether they also have an effect on Windows but I
assume so).
The first problem was that the ClientSize on Forms with FormBorderStyle.None
was wrong because ClientToBounds and ToolkitDrawSize both used
ToolkitManager.Toolkit.GetWindowAdjust. GetWindowAdjust should return the size
of the window decorations. Because there is no way to get the size of the
window decorations on X Window that would work with all window managers this
function returns a few fixed values that are quite good on most systems. But
obviously they are completely wrong when no decoration is present at all ;-)
This bug is normally not a very visible one except when you embed a Form in
another Form (I can post a test application that demonstrates this bug plus
some screenshots if someone wants to see it).
So we need to ignore the size returned by Toolkit.GetWindowAdjust when
FormBorderStyle == FormBorderStyle.None in both Form.ClientToBounds and
Form.ToolkitDrawSize
The second problem was that changing the FrameBorderStyle didn't resize the
window/update the internal sizes.
This is simply fixed by remembering the ClientSize, changing the border style
and then setting the ClientSize back to the remembered value.
File Attachments
-------------------
-------------------------------------------------------
Date: Fri 12/10/2004 at 16:38 Name: Form.cs.patch Size: 1.92KB By: darkdust
Patch that fixes two Form size issues
http://savannah.gnu.org/patch/download.php?item_id=3565&item_file_id=3934
For detailed info, follow this link:
<http://savannah.gnu.org/patch/?func=detailitem&item_id=3565>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Pnet-developers] [patch #3565] Fix two Form size issues,
Marc Haisenko <=