The WDX (and WFX content) plugin documentation says
Stripped down code (partly pseudo code):ft_delayed, ft_ondemand: You may return a zero-terminated string as in ft_string, which will be shown until the actual value has been extracted.
Code: Select all
function ContentGetValueW(const FileName: PChar; FieldIndex, UnitIndex: integer; FieldValue: PByte;
MaxLen, Flags: integer): integer; stdcall;
const
DELAYED_PLACEHOLDER : string = '...';
begin
[...]
if IsFlagSet(flags, CONTENT_DELAYIFSLOW) then begin
{ place information in thread }
[...]
lstrcpyn(PChar(FieldValue), PChar(DELAYED_PLACEHOLDER), LMaxChars);
Result:= ft_Delayed;
end else begin
if ThreadFinished then begin
PInteger(FieldValue)^:= ThreadResult;
Result:= ft_Numeric_32;
end else begin
{ 1 }
lstrcpyn(PChar(FieldValue), PChar(DELAYED_PLACEHOLDER), LMaxChars);
Result:= ft_String;
{ 1 }
end;
end;
[...]
end;
Regards
Dalai