+2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * ColorDialog.cs: when the mouse button is pressed inside the color
+ matrix, don't let the cursor move out of it until the button is
+ released, which is the behavior on windows. Changed 'colours' by
+ 'colors' to use the same word consistently.
+
2006-06-21 Chris Toshok <toshok@ximian.com>
* DataGrid.cs: add in some basic navigation stuff (navigating to a
defineColoursButton.Location = new Point (5, 244);
defineColoursButton.Size = new Size (210, 22);
defineColoursButton.TabIndex = 6;
- defineColoursButton.Text = Locale.GetText ("Define Colours >>");
+ defineColoursButton.Text = Locale.GetText ("Define Colors >>");
// okButton
okButton.FlatStyle = FlatStyle.System;
okButton.Location = new Point (5, 271);
addColoursButton.Location = new Point (227, 271);
addColoursButton.Size = new Size (213, 22);
addColoursButton.TabIndex = 7;
- addColoursButton.Text = Locale.GetText ("Add Colours");
+ addColoursButton.Text = Locale.GetText ("Add Colors");
// baseColorControl
baseColorControl.Location = new Point (3, 6);
baseColorLabel.Location = new Point (2, 0);
baseColorLabel.Size = new Size (200, 12);
baseColorLabel.TabIndex = 5;
- baseColorLabel.Text = Locale.GetText ("Base Colours") + ":";
+ baseColorLabel.Text = Locale.GetText ("Base Colors") + ":";
// userColorLabel
userColorLabel.FlatStyle = FlatStyle.System;
userColorLabel.Location = new Point (2, 164);
}
UpdateControls ();
+ XplatUI.GrabWindow (Handle, Handle);
base.OnMouseDown (e);
}
protected override void OnMouseUp (MouseEventArgs e)
{
+ XplatUI.UngrabWindow (Handle);
mouseButtonDown = false;
drawCross = true;
Invalidate ();