[Mono-winforms-list] [BUMP] ToolStripDropDown + UserControl
Alex Shulgin
alexander.shulgin at yessoftware.com
Thu Mar 5 07:48:35 EST 2009
Jonathan Pobst wrote:
> Alex Shulgin wrote:
>> Jonathan Pobst wrote:
>>> How about this one?
>>
>> Yes, this patch fixes my issue.
>>
>> Unfortunately, it breaks things elsewhere: see attached screenshot for
>> the sample.
>>
>> I'm now trying to properly override CalcPreferredSize method in
>> ToolStripItem-derived classes to fix the whole issue. My progress on
>> this is, well... fair. ;)
>>
>> BTW, lets not forget about ToolStripDropDownMenu--it has it's own
>> copy-pasted implementation of OnLayout method with minor changes.
>>
>
> Ok, this will get out of hand pretty quickly, so lets take little steps.
> Attached is the same patch, except it moves your label1 back to the
> left. If this one is ok with you, I'd like to go ahead and commit it.
Many thanks, lets commit this. :)
Apparently, ToolStripMenuItem needs fixing next: the arrow is painted
over the text as seen on my previous screenshot.
--
Cheers,
Alex
More information about the Mono-winforms-list
mailing list