+2006-06-01 Mike Kestner <mkestner@novell.com>
+
+ * ScrollBar.cs: remove Capture setting/clearing, as it happens
+ automatically in the Control.WndProc.
+
2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* FileDialog.cs: fix crash when running SharpChess, which sets the
if (firstbutton_state != ButtonState.Inactive && first_arrow_area.Contains (e.X, e.Y)) {
SendWMScroll(ScrollBarCommands.SB_LINEUP);
- this.Capture = true;
firstbutton_state = ButtonState.Pushed;
firstbutton_pressed = true;
Invalidate (first_arrow_area);
if (secondbutton_state != ButtonState.Inactive && second_arrow_area.Contains (e.X, e.Y)) {
SendWMScroll(ScrollBarCommands.SB_LINEDOWN);
- this.Capture = true;
secondbutton_state = ButtonState.Pushed;
secondbutton_pressed = true;
Invalidate (second_arrow_area);
if (thumb_size > 0 && thumb_pos.Contains (e.X, e.Y)) {
thumb_pressed = true;
- this.Capture = true;
SendWMScroll(ScrollBarCommands.SB_THUMBTRACK);
if (vert) {
thumbclick_offset = e.Y - thumb_pos.Y;
DirtyThumbArea ();
thumb_moving = ThumbMoving.None;
}
- this.Capture = false;
if (firstbutton_pressed) {
firstbutton_state = ButtonState.Normal;