[Mono-winforms-list] [BUMP] ToolStripDropDown + UserControl

Alex Shulgin alexander.shulgin at yessoftware.com
Mon Mar 16 13:06:30 EDT 2009


Alex Shulgin wrote:
> 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.

OK, I think I've located the problem. :)

Please review the attached patch to see if it's OK.

I'm adjusting XplatUICarbon.SetWindowPos in analogy with CreateWindow 
method where the check for WS_POPUP style is used for correct initial 
window placement.

This fixes things for me.  I'll try to run tests on Mac when I manage to 
compile mono on Mac box.  However, I believe this patch is fairly safe 
and doesn't break anything as far as I can see.

I'm waiting for your answer and hope this patch can be committed soon. :)

--
Regards,
Alex
PS: sorry for weird formatting in my last message--this happens from 
time to time when you edit a file in 3 different editors on two machines. :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: carbon-swp-popup.patch
Type: text/x-patch
Size: 1406 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20090316/bd7d0912/attachment-0001.bin 


More information about the Mono-winforms-list mailing list