Delphi 窗口事件

OnActivate:激活(获得焦点)时发生;
OnClose:关闭时发生;
OnCloseQuery:试图关闭时发生;
OnCreate:创建时发生;
OnDeactivate:失去焦点时发生;
OnDestroy :销毁时发生;
OnHelp:Form收到帮助请求时发生;
OnHide:Form隐藏时(Visible属性置false时)发生;
OnPaint:Form刷新屏幕时发生;
OnShortCut:用户按下一个按键(在OnKeyDown事件之前)时发生;
OnShow:Form显示出来(Visible属性被置为true)时发生;
继承自TWinControl
OnDockDrop:Occurs when another control is docked to the control;
OnDockOver:Occurs when another control is dragged over the control;
OnGetSiteInfo:Occurs Returns the control's docking information;
OnKeyDown:当控件获得焦点时,用户按下任何按键时发生;
OnKeyPress:按键被按着时发生;
OnKeyUp:当被按下的按键松开时发生;
OnUnDock:Occurs when the application tries to undock a control that is docked to the windowed control;
继承自TControl
OnCanResize:当企图调整控件大小时发生;
OnClick:当用户点击控件时发生;
OnConstrainedResize:调整大小,适应约束;Adjust resize constraints.
OnContextPopup:当用户用鼠标右击控件,或调用弹出菜单(如使用键盘调用)时发生;
OnDblClick:当用户用鼠标左键双击控件时发生;
OnDragDrop:Occurs when the user drops an object being dragged;
OnDragOver:Occurs when the user drags an object over a control;
OnEndDock:Occurs when the dragging of an object ends, either by docking the object or by

canceling the dragging;
OnMouseDown:当用户使用鼠标点击控件时发生;
OnMouseMove:当用户让鼠标光标在控件上移动时发生;
OnMouseUp:当用户在鼠标光标在控件上面并按下鼠标,在松开鼠标时发生;
OnMouseWheel:当用户旋转鼠标滚轮时发生;
OnMouseWheelDown:当用户鼠标滚轮向下旋转时发生;
OnMouseWheelUp:当用户鼠标滚轮向上旋转时发生;
OnResize:在调整控件大小后立即发生;
OnStartDock:Occurs when the user begins to drag a control with a DragKind of dkDock;

努力成长的程序员