+2008-11-02 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * ListView.cs:
+ * ThemeWin32Classic.cs: Don't use groups nor insertion mark in
+ Application.EnableVisualStyles hasn't been called.
+ Fixes part of #437933.
+
2008-10-31 Andreia Gaita <shana@jitted.com>
* Form.cs (SetVisibleCore): since set_ActiveControl no longer calls focus
}
}
+ internal bool UsingGroups {
+ get {
+ return show_groups && groups.Count > 0 && view != View.List &&
+ Application.VisualStylesEnabled;
+ }
+ }
+
internal override bool ScaleChildrenInternal {
get { return false; }
}
Size sz = item_size;
#if NET_2_0
- bool using_groups = show_groups && groups.Count > 0 && view != View.List;
+ bool using_groups = UsingGroups;
#endif
CalculateRowsAndCols (sz, left_aligned, x_spacing, y_spacing);
}
#if NET_2_0
- if (control.ShowGroups && control.View != View.List && control.Groups.Count > 0) {
+ if (control.UsingGroups) {
// Use InternalCount instead of Count to take into account Default Group as needed
for (int i = 0; i < control.Groups.InternalCount; i++) {
ListViewGroup group = control.Groups.GetInternalGroup (i);
ListViewInsertionMark insertion_mark = control.InsertionMark;
int insertion_mark_index = insertion_mark.Index;
- if (insertion_mark.Bounds != Rectangle.Empty &&
+ if (Application.VisualStylesEnabled && insertion_mark.Bounds != Rectangle.Empty &&
(control.View != View.Details && control.View != View.List) &&
insertion_mark_index > -1 && insertion_mark_index < control.Items.Count) {