Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>2010-01-20 08:51:48 +0300
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>2010-01-20 08:51:48 +0300
commit818ae5df11b7650bd05b7ff27a738f794a6bd830 (patch)
treeb202b42848dfbc8203ff4c24d80ba77efc9e277a /mcs
parent8ed821727378f2b425d29a8e38f20da7a935f9f3 (diff)
2010-01-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* TextBox.cs: When showing the autocomplete listbox, make sure it's on top, by calling the raw XplatUI.SetZOrder for it, since we can't properly call BringToFront on it as it is parentless. This fixes an issue when using this feature with ComboBox's own parentless listbox. Fixes the remaining bits of #489339. svn path=/trunk/mcs/; revision=149877
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog8
-rw-r--r--mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs2
2 files changed, 10 insertions, 0 deletions
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
index fce73877f8b..b0cddd6d9f7 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
@@ -1,3 +1,11 @@
+2010-01-20 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * TextBox.cs: When showing the autocomplete listbox, make sure it's on
+ top, by calling the raw XplatUI.SetZOrder for it, since we can't
+ properly call BringToFront on it as it is parentless. This fixes an
+ issue when using this feature with ComboBox's own parentless listbox.
+ Fixes the remaining bits of #489339.
+
2010-01-19 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* XplatUI.cs:
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs
index 4964b964e30..5ad95c14933 100644
--- a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs
+++ b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs
@@ -996,6 +996,8 @@ namespace System.Windows.Forms {
HighlightedIndex = -1;
Show ();
+ // make sure we are on top - call the raw routine, since we are parentless
+ XplatUI.SetZOrder (Handle, IntPtr.Zero, true, false);
Invalidate ();
}