创建。
在设计期,当你在窗体上置入新的控件时,如果此控件Create事件中创建与该控件所需的组件,会随该控件一并创建,但某些干预设计期的事件将不被执行,由TComponentState决定,如:
if csDesigning in ComponentState then ...
if csLoading in ComponentState then...
参考:
TComponentState = set of (csLoading, csReading, csWriting, csDestroying,
csDesigning, csAncestor, csUpdating, csFixups, csFreeNotification,
csInline, csDesignInstance);
TComponentStyle = set of (csInheritable, csCheckPropAvail, csSubComponent,
csTransient);