孤 孤月独明 Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-05 #1 如何知之当前窗体的状态?? if Form1.formstate=fsCreating then 为何出错?
T taozhiyu Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-05 #2 哈哈!都还没create成功你就在使用它了吧!可能吗?
孤 孤月独明 Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-05 #3 应该是知道任何一个窗体的状态。 编译的时候出错:[Error] Incompatible types
J Jhdandcl Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-05 #4 应该这样:if fsCreating in Form1.formstate then ; Tform.formstate 是集合类型; type TFormState = set of (fsCreating, fsVisible, fsShowing, fsModal, fsCreatedMDIChild, fsActivated);
应该这样:if fsCreating in Form1.formstate then ; Tform.formstate 是集合类型; type TFormState = set of (fsCreating, fsVisible, fsShowing, fsModal, fsCreatedMDIChild, fsActivated);
Y yh Unregistered / Unconfirmed GUEST, unregistred user! 2002-01-05 #5 这样应没有问题: if fsCreateing in Form1.FormState then ....