https://bugzilla.novell.com/show_bug.cgi?id=438772
Summary: Impossible to build dynamic munu in
ToolStripDropDownItem.OnDropDownOpening
Product: Mono: Class Libraries
Version: 2.0
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: DeveloperNet
ToolStripDropDownItem.OnDropDownOpening is called not in time.
File:
mcs\class\Managed.Windows.Forms\System.Windows.Forms\ToolStripDropDownItem.cs
Class: ToolStripDropDownItem
Method: ShowDropDown
HasDropDownItems check must not be performed before OnDropDownOpening to allow
dynamic menu building inside of OnDropDownOpening as it possible in dotNet.
If a menu is initially empty (DropDown.Items.Count == 0) then OnDropDownOpening
won't be called on Mono. It is wrong.
So currently I have to add dummy item as workaround.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs