+2006-04-15 Alexander Olk <alex.olk@googlemail.com>
+
+ * ThemeWin32Classic.cs: Draw disabled combo button in the correct
+ place
+ * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
+ with the correct ButtonState
+
2006-04-14 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs: Improved distinguishing between window types to
dc.FillRectangle (ThemeEngine.Current.ResPool.GetSolidBrush (ThemeEngine.Current.ColorControl),
combobox_info.button_rect);
+ if (!is_enabled)
+ combobox_info.button_status = ButtonState.Inactive;
+
ThemeEngine.Current.CPDrawComboButton (dc,
combobox_info.button_rect, combobox_info.button_status);
}
arrow[0]=P1;
arrow[1]=P2;
arrow[2]=P3;
-
+
/* Draw the arrow */
if ((state & ButtonState.Inactive)!=0) {
- graphics.FillPolygon(SystemBrushes.ControlLightLight, arrow, FillMode.Winding);
-
/* Move away from the shadow */
- P1.X-=1; P1.Y-=1;
- P2.X-=1; P2.Y-=1;
- P3.X-=1; P3.Y-=1;
+ arrow[0].X += 1; arrow[0].Y += 1;
+ arrow[1].X += 1; arrow[1].Y += 1;
+ arrow[2].X += 1; arrow[2].Y += 1;
+
+ graphics.FillPolygon(SystemBrushes.ControlLightLight, arrow, FillMode.Winding);
arrow[0]=P1;
arrow[1]=P2;
arrow[2]=P3;
-
graphics.FillPolygon(SystemBrushes.ControlDark, arrow, FillMode.Winding);
} else {
graphics.FillPolygon(SystemBrushes.ControlText, arrow, FillMode.Winding);