[Mono-bugs] [Bug 80163][Min] Changed - TextBox.ContextMenu is not null

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Dec 21 07:25:43 EST 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by georgegiolfan at yahoo.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80163

--- shadow/80163	2006-12-11 19:45:16.000000000 -0500
+++ shadow/80163.tmp.31928	2006-12-21 07:25:43.000000000 -0500
@@ -75,6 +75,28 @@
 
 ------- Additional Comments From jackson at ximian.com  2006-12-11 19:45 -------
 I've fixed the textbox part.  The rest of the issue is more of a
 combobox/focus issue.
 
 
+
+------- Additional Comments From georgegiolfan at yahoo.com  2006-12-21 07:25 -------
+Here is quick fix for the combo box context menu issue: set the 
+ContextMenu on the textbox_ctrl to the same value as the ComboBox 
+itself.
+
+textbox_ctrl = new ComboTextBox (this);
+//Do this where textbox_ctrl is created.
+textbox_ctrl.ContextMenu = ContextMenu;
+
+Also, when the user changes the ContextMenu 
+        public override ContextMenu ContextMenu {
+            get {
+                return base.ContextMenu;
+            }
+            set {
+                base.ContextMenu = value;
+                if (textbox_ctrl != null)
+                    textbox_ctrl.ContextMenu = value;
+            }
+        }
+


More information about the mono-bugs mailing list