Delphi-Form事件

2016-08-22 10:22:56来源:http://jayson.blog.51cto.com/4801668/1172793作者:Jayson_Lee人点击


继承自TCustomForm


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


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


最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台