[Mono-dev] Patches for mono-winforms

Steven Boswell II ulatekh at yahoo.com
Sat Aug 4 00:28:56 UTC 2012


Patch #19 breaks Mono so that it's compatible with .NET's brokenness.  http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.aspx says that, even though the DataGridView control inherits both ContextMenu and ContextMenuStrip properties from Control, it only supports the ContextMenuStrip property -- ContextMenu has no effect.  The patch, uh, "fixes" this.  Bleah.

Will patch #18a (to fix the OneIdlePerThread test in FormEventTest.cs) be applied?

Also, I believe I've figured out why the behavior of my table-layout changes (i.e. patch #16) differs from what .NET does, and I know that the goal is compatibility with .NET, but I think what my code does is more "correct".  The 3 pixel difference comes from the margin around each control.  Column 0 contains a 75-pixel-wide control, so with the margin on each side, that's 81, which is the width of column 0.  Column 0 also contains a 150-pixel-wide control that spans two columns, so with the margin on both sides, that's a total of 156 pixels.  So column 1 only needs to be 75 pixels wide, which is what my code sets it to.  .NET appears to be making columns 1 and 2 the same width for no apparent reason.  That leads column 1 to be 3 pixels wider than it needs to be in order to layout the control with the proper margin on both sides.  This seems to violate their own rules on layout.  I have yet to figure out how to break my code in order to match
 this behavior. :-)

Finally...I take it that no one can explain how focusing/unfocusing is supposed to work in Mono under X11 (i.e. my question posed on July 29)?

Steven Boswell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120803/9a94a537/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mwf-19-DataGridView-ContextMenu.patch
Type: application/octet-stream
Size: 2994 bytes
Desc: not available
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120803/9a94a537/attachment-0001.obj>


More information about the Mono-devel-list mailing list