//--------------------------------------------------------------------------------- private List <GuiControlInterface> GetAllControl() { List <GuiControlInterface> allControls = new List <GuiControlInterface>(); ControlContainerInterface container = GetControlContainer(); if (container != null) { container.GetAll(allControls); container.DetachAll(); } return(allControls); }
public void ShowOn(ControlContainerInterface _on) { _Container = _on; Rectangle R = _on.GetControl().ClientRectangle; R = _on.GetControl().RectangleToScreen(R); Show(); int X = R.Left + R.Width / 2; int Y = R.Top + R.Height / 2; Left = X - 45; Top = Y - 45; }
protected override void OnMove(EventArgs e) { if (!_UserMove) { return; } if (IsDisposed) { return; } ControlContainerInterface interf = ControlContainerInterfaceList.getUnderMouse(null); ControlContainerInterfaceList.showAnchors(interf); ControlContainerInterfaceList.updateAnchors(); base.OnMove(e); }