U unreal Unregistered / Unconfirmed GUEST, unregistred user! 2001-01-21 #2 Delphi RichEdit的例子 procedure TAboutBox.FormCreate(Sender: TObject); var MS: TMemoryStatus; begin GlobalMemoryStatus(MS); PhysMem.Caption := FormatFloat('#,###" KB"', MS.dwTotalPhys / 1024); FreeRes.Caption := Format('%d %%', [MS.dwMemoryLoad]); end;
Delphi RichEdit的例子 procedure TAboutBox.FormCreate(Sender: TObject); var MS: TMemoryStatus; begin GlobalMemoryStatus(MS); PhysMem.Caption := FormatFloat('#,###" KB"', MS.dwTotalPhys / 1024); FreeRes.Caption := Format('%d %%', [MS.dwMemoryLoad]); end;