// Jordi Mas i Hernandez jordi@ximian.com\r
//\r
//\r
-// $Revision: 1.9 $\r
+// $Revision: 1.10 $\r
// $Modtime: $\r
// $Log: ScrollBar.cs,v $
+// Revision 1.10 2004/08/21 20:22:21 pbartok
+// - Replaced direct XplatUI calls with their Control counterpart
+//
// Revision 1.9 2004/08/20 19:35:33 jackson
// Use the SWF timer so callbacks are run in the correct thread
//
CalcThumbArea ();\r
UpdatePos (position, true);\r
}\r
- \r
+ \r
\r
/*\r
Called when the control is created\r
\r
if (thumb_pos.Contains (point)) { \r
thumb_pressed = true;\r
- XplatUI.GrabWindow (Handle);\r
+ this.Capture = true;\r
Refresh ();\r
if (vert)\r
thumb_pixel_click_move = e.Y;\r
if (thumb_pressed == true) { \r
fire_Scroll (new ScrollEventArgs (ScrollEventType.ThumbPosition, position));\r
fire_Scroll (new ScrollEventArgs (ScrollEventType.EndScroll, position));\r
- XplatUI.ReleaseWindow (Handle);\r
+ this.Capture = false;\r
thumb_pressed = false; \r
Refresh ();\r
}\r
// Copyright (C) Novell Inc., 2004
//
//
-// $Revision: 1.11 $
+// $Revision: 1.12 $
// $Modtime: $
// $Log: TrackBar.cs,v $
+// Revision 1.12 2004/08/21 20:21:48 pbartok
+// - Replaced direct XplatUI calls with their Control counterpart
+//
// Revision 1.11 2004/08/20 19:45:50 jordi
// fixes timer, new properties and methods
//
if (thumb_pressed == true || mouse_clickmove == true) {
thumb_pressed = false;
holdclick_timer.Enabled = false;
- XplatUI.ReleaseWindow (Handle);
+ this.Capture = false;
Refresh ();
}
}
if (orientation == Orientation.Horizontal) {
if (thumb_pos.Contains (point)) {
- XplatUI.GrabWindow (Handle);
+ this.Capture = true;
thumb_pressed = true;
thumb_mouseclick = e.X;
Refresh ();
}
else {
if (thumb_pos.Contains (point)) {
- XplatUI.GrabWindow (Handle);
+ this.Capture = true;
thumb_pressed = true;
thumb_mouseclick = e.Y;
Refresh ();