[Mono-winforms-list] [BUMP] ToolStripDropDown + UserControl
Jonathan Pobst
monkey at jpobst.com
Thu Mar 5 10:49:16 EST 2009
Patch committed.
It looks like the arrow is not painted when your sample is run on .Net.
I don't see any property or anything that controls that. I guess it
simply looks at its parent and only draws it if it is on a
ToolStripDropDownMenu and not a ToolStripDropDown.
Jonathan
Alex Shulgin wrote:
> 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