⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jvgsysrequirements.pas

📁 East make Tray Icon in delphi
💻 PAS
字号:
{-----------------------------------------------------------------------------
The contents of this file are subject to the Mozilla Public License
Version 1.1 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/MPL-1.1.html

Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either expressed or implied. See the License for
the specific language governing rights and limitations under the License.

The Original Code is: JvgSysRequirements.PAS, released on 2003-01-15.

The Initial Developer of the Original Code is Andrey V. Chudin,  [chudin att yandex dott ru]
Portions created by Andrey V. Chudin are Copyright (C) 2003 Andrey V. Chudin.
All Rights Reserved.

Contributor(s):
Michael Beck [mbeck att bigfoot dott com].
Burov Dmitry, translation of russian text.

You may retrieve the latest version of this file at the Project JEDI's JVCL home page,
located at http://jvcl.sourceforge.net

Known Issues:
-----------------------------------------------------------------------------}
// $Id: JvgSysRequirements.pas,v 1.18 2005/02/17 10:21:21 marquardt Exp $

unit JvgSysRequirements;

{$I jvcl.inc}

interface

uses
  {$IFDEF USEJVCL}
  {$IFDEF UNITVERSIONING}
  JclUnitVersioning,
  {$ENDIF UNITVERSIONING}
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  JvComponent;
  {$ELSE}
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
  {$ENDIF USEJVCL}

type
  TglMinVideoVRefreshRate = (frrIgnore, frr70Hertz, frr75Hertz, frr85Hertz);
  TglMinGraphicResolution = (fgrIgnore, fgr800x600, fgr1024x768);
  TglMinColorDepth = (fcdIgnore, fcd16BitColor, fcd32BitColor);
  TglSystemFont = (fsfIgnore, fsfSmallFont, fsfBigFont);
  //  TglProcessor = (fsrPentium, fsrMMX);
  TglOS = (fosWindowsNT, fosWindows95);
  TglOSSet = set of TglOS;

  TglRequirement = (fsrVideoVRefreshRate, fsrGraphicResolution,
    fsrColorDepth, fsrSystemFont, {fsrProcessor, } fsrOSPlatform);
  TglRequirements = set of TglRequirement;

  TglSysReqBehavior = (fsbHalt, fsbWarning);
  TglWarningEvent = procedure(Sender: TObject; var ReportMessage: string;
    var DoShowWarning, DoHalt: Boolean) of object;

  {$IFDEF USEJVCL}
  TJvgSysRequirements = class(TJvComponent)
  {$ELSE}
  TJvgSysRequirements = class(TComponent)
  {$ENDIF USEJVCL}
  private
    FEnabled: Boolean;
    FMinColorDepth: TglMinColorDepth;
    FMinGraphicResolution: TglMinGraphicResolution;
    FOSPlatform: TglOSSet;
    FSystemFont: TglSystemFont;
    FMinVideoVRefreshRate: TglMinVideoVRefreshRate;
    FBehavior: TglSysReqBehavior;
    FOnWarning: TglWarningEvent;
  protected
    procedure Loaded; override;
  public
    constructor Create(AOwner: TComponent); override;
    function TestRequirements(var ReportMessage: string): Boolean;
  published
    property Enabled: Boolean read FEnabled write FEnabled default True;
    property MinVideoVRefreshRate: TglMinVideoVRefreshRate read
      FMinVideoVRefreshRate write FMinVideoVRefreshRate;
    property MinGraphicResolution: TglMinGraphicResolution read
      FMinGraphicResolution write FMinGraphicResolution;
    property MinColorDepth: TglMinColorDepth read FMinColorDepth write
      FMinColorDepth;
    property SystemFont: TglSystemFont read FSystemFont write FSystemFont;
    //    property Processor: TglProcessor;
    property OSPlatform: TglOSSet read FOSPlatform write FOSPlatform;
    property Behavior: TglSysReqBehavior read FBehavior write FBehavior;
    property OnWarning: TglWarningEvent read FOnWarning write FOnWarning;
  end;

{$IFDEF USEJVCL}
{$IFDEF UNITVERSIONING}
const
  UnitVersioning: TUnitVersionInfo = (
    RCSfile: '$RCSfile: JvgSysRequirements.pas,v $';
    Revision: '$Revision: 1.18 $';
    Date: '$Date: 2005/02/17 10:21:21 $';
    LogPath: 'JVCL\run'
  );
{$ENDIF UNITVERSIONING}
{$ENDIF USEJVCL}

implementation

{$IFDEF USEJVCL}
uses
  JvResources;
{$ENDIF USEJVCL}

{$IFNDEF USEJVCL}
resourcestring
(* RUSSIAN
  RsVideoVRefreshRate = '奏耱铗

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -