delphi在设计时创建组件吗?
最新回答 (4条回答)
var i:integer; begin for i:=1 to 10 do begin with TEdit.Create(Self) do begin Name:='edt'+IntToStr(i); Parent:=self; Width:=75; ,TjVxBk
创建。
在设计期,当你在窗体上置入新的控件时,如果此控件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);
扩展回答
sketchup 创建窗子组件出问题
水平,再次插入的时候窗子总是垂直墙面的我用的是sketchup pro8 创建了一个窗子的组件,都没有效果,转过90度后可以贴在墙面上了,窗子不透明了、垂直,创建组件时选择全部,但是又不能切割了,比如重装,试过很多方法,各为高手有遇到过类似问题的吗
问题补充: