[阅读: 547] 2005-01-24 03:40:54
if not
IsDefaultValue then
begin
WritePropPath;
if Value.Code = nil then
WriteValue(vaNil) else
WriteIdent(FLookupRoot.MethodName(Value.Code));
end;
function IsDefaultValue: Boolean;
var
DefaultCode: Pointer;
begin
DefaultCode := nil;
if AncestorValid then
DefaultCode := GetMethodProp(Ancestor, PropInfo).Code;
Result := (Value.Code = DefaultCode) or
((Value.Code <> nil) and (
FLookupRoot.MethodName(Value.Code) = ''));
end;
就象你说的,这里的FLookupRoot是TMyPanel,而事件函数是写在Form中的,所以
FLookupRoot.MethodName(Value.Code) = '')总是为True的。
http://wangzw.wordpress.com/
个性化台历、日历制作
http://shop33697570.taobao.com/
