[Mono-winforms-list] [BUMP] ToolStripDropDown + UserControl
Alex Shulgin
alexander.shulgin at yessoftware.com
Tue Mar 10 13:59:47 EDT 2009
Jonathan Pobst wrote:
> I committed the less risky parts of this, hopefully it will fix your
> issues.
Hi,
It's me again.
Thanks for your support last time! However, my issue is not resolved yet...
I've tried your patch on Mac OS and it works correctly there too. But
there's another problem: when trying to resize the control displayed in
the drop down, the popup window is first moved some pixels down. This
is unwanted behavior.
This happens only on Mac OS and not on Linux or Windows.
A minimal sample file to demonstrate this is attached. On test run I
get the output like to this:
OnMouseDown: _dropDown.Bounds={X=543,Y=421,Width=102,Height=107}
OnMouseMove: _dropDown.Bounds={X=543,Y=421,Width=102,Height=107}
OnMouseMove: _dropDown.Bounds={X=543,Y=421,Width=103,Height=107}
OnMouseMove: _dropDown.Bounds={X=543,Y=421,Width=104,Height=85}
OnMouseMove: _dropDown.Bounds={X=543,Y=421,Width=105,Height=85}
OnMouseMove: _dropDown.Bounds={X=543,Y=421,Width=106,Height=85}
...
Note the 22 pixels difference between 107 and 85, probably it's a trace
of _that_ 22 hardcoded in ToolStripDropDown.OnLayout. :)
The reported location of drop down isn't changed, but I _do_ see it's
first moved down on first move, then on second mouse move it gets
resized by the event handler, so this puzzles me.
Unfortunately, I cannot grab the screenshots for this issue on Mac due
to it's Grab program limitations. I can draw a sketch of what I see if
this helps.
Thanks again for your patience with me; looking forward for your feedback!
--
Regards,
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Form1.cs
Type: text/x-csharp
Size: 2893 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090310/4a50602b/attachment.bin
More information about the Mono-winforms-list
mailing list