Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Gnome/tests/   (Gnome Linux Desktop Version 4.23.2©)  Datei vom 30.5.2026 mit Größe 131 B image not shown  

Quelle  AboutBox.pas   Sprache: unbekannt

 
unit AboutBox;
interface
uses
  //----------------------------------------------------------------------------
  //local
  //----------------------------------------------------------------------------
  GenDefs,OwnUtils,OptionClass,Utilities,language,MDIClass,
  //----------------------------------------------------------------------------
  //global
  //----------------------------------------------------------------------------
  Forms,Controls,ComCtrls,StdCtrls,ExtCtrls,Graphics,Classes,pngimage,jpeg;
type
  TAboutBox= class(TForm)
    OKButton:TButton;
    Label1:TLabel;
    Bevel1:TBevel;
    CopyRight:TLabel;
    Label3:TLabel;
    PhysMem:TLabel;
    Label4:TLabel;
    Label6:TLabel;
    Label9:TLabel;
    ProduktId:TLabel;
    Label8:TLabel;
    FreeRes:TLabel;
    OccupiedMem:TLabel;
    Edition:TLabel;
    Label11:TLabel;
    DllInfo:TLabel;
    Quellkodierung:TLabel;
    Bevel2:TBevel;
    ColumboInfo:TLabel;
    Bevel3:TBevel;
    Label2:TLabel;
    ListBox1:TListBox;
    Username:TLabel;
    Image1:TImage;
    Image2: TImage;
    procedure Label8Click(Sender:TObject);
    procedure Label7Click(Sender:TObject);
    procedure FormCreate(Sender:TObject);
    procedure FormShow(Sender:TObject);
  private
    { Private declarations }
  public
    { Public declarations }
    NowAvail:longint;
    DllVersion:JString;
  end;
implementation
{$R *.dfm}
uses
  //----------------------------------------------------------------------------
  //global
  //----------------------------------------------------------------------------
  Windows,ShellApi,Buttons,SysUtils,DateUtils;
//----------------------------------------------------------------------------
//
//----------------------------------------------------------------------------
procedure TAboutBox.Label8Click(Sender:TObject);
begin
  Browser(Handle,'http://www.cococo.de');
end;
//----------------------------------------------------------------------------
//
//----------------------------------------------------------------------------
procedure TAboutBox.FormCreate(Sender:TObject);
begin
  Hide();
end;
//----------------------------------------------------------------------------
//
//----------------------------------------------------------------------------
procedure TAboutBox.FormShow(Sender:TObject);
var
  MS:TMemoryStatus;
  Percent:integer;
  Fl:real;
  YY:integer;
begin
  Label1.Caption:=Application.Title+' '+Version_IDE;
  if Application.Title=Title_Elbe then
    Label9.Caption:=trans(lang,153,'Der Quellennavigator')
  else
    Label9.Caption:=trans(lang,154,'Der Quellendetektiv');
  Username.Caption:=opt.R.Username;
  DllInfo.Caption:=MDI.processor+'Dll '+DllVersion;
  ColumboInfo.Caption:='IDE '+Inttostr(Dayof(opt.R.Columbodate))+'.'+Inttostr
    (Monthof(opt.R.Columbodate))+'.'+Inttostr(Yearof(opt.R.Columbodate))
    +' (inst)';
  YY:=Yearof(now);
  CopyRight.Caption:='© '+Inttostr(YY)+' '+Company;
  //with Quellkodierung do
  //left:=width div 2-Width div 2;
  //with produktid do
  //left:=width div 2 - Width div 2;
  GlobalMemoryStatus(MS);
  NowAvail:=InitiallyAvail-longint(MS.dwAvailPhys);
  PhysMem.Caption:=FormatFloat('###0" MB"',MS.dwTotalPhys/(1024*1024));
  if NowAvail>0 then
    OccupiedMem.Caption:=FormatFloat('###0" MB"',NowAvail/(1024*1024))
  else
    OccupiedMem.Caption:='';
  Fl:=(MS.dwTotalPhys-MS.dwAvailPhys)/MS.dwTotalPhys;
  Percent:=Round(100*Fl);
  if Percent>0 then
    FreeRes.Caption:=Format('%d %%',[Percent])
  else
    FreeRes.Caption:='';
  if Application.Title=Title_Elbe then begin
    Image1.Visible:=false;
    Image2.Visible:=true
  end
  else begin
    Image1.Visible:=true;
    Image2.Visible:=false
  end;
end;
//----------------------------------------------------------------------------
//
//----------------------------------------------------------------------------
procedure TAboutBox.Label7Click(Sender:TObject);
var
  em_subject,em_body,em_mail:JString;
begin
  em_subject:='Anfrage zu '+Application.Title;
  em_body:='';
  em_mail:='mailto:'+Application.Title+'@cococo.de?subject='+em_subject+
    '&body='+em_body;
  Browser(Handle,em_mail);
end;
{ ------------------------------------------------------------------ }
{ -                                                                - }
{ -   Ende dieser Quelle                                           - }
{ -                                                                - }
{ ------------------------------------------------------------------ }
end.

Messung V0.5 in Prozent
C=82 H=100 G=91

[Dauer der Verarbeitung: 0.16 Sekunden, vorverarbeitet 2026-06-07]