protected override bool OnMotionNotifyEvent(Gdk.EventMotion evm)
{
if ((evm.State & Gdk.ModifierType.Button1Mask) == 0)
return false;
if (!Gtk.Drag.CheckThreshold (this, clickX, clickY, (int)evm.XRoot, (int)evm.YRoot))
return false;
if (ParentBox.ObjectSelection != null && ParentBox.ObjectSelection.AllowDrag) {
int dx = Allocation.X - ox + localClickX;
int dy = Allocation.Y - oy + localClickY;
ParentBox.ObjectSelection.FireDrag (evm, dx, dy);
}
return true;
}