The parent container monitors mouseDown, a color picker click does not pop up the selector’s window.
protected override Result RunCommand(RhinoDoc doc, RunMode mode)
{
var label = new Label { Text = "Color:" };
var colorPicker = new ColorPicker();
var layout = new DynamicLayout { Spacing = new Eto.Drawing.Size(5, 5) };
layout.BeginHorizontal();
layout.Add(label);
layout.Add(colorPicker);
layout.EndBeginHorizontal();
var panel = new Panel { Content = layout };
var form = new Form()
{
Size = new Eto.Drawing.Size(300, 300),
Content = panel
};
panel.MouseDown += (s, e) =>
{
//When you add this line in the parent container, a color picker click does not pop up the selector's window.
e.Handled = true;
};
form.Show();
return Result.Success;
}
Another question: Can CursorType add SizeToLeft and SizeToRight?
Thanks!
-Easy