Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
fpc-src / usr / share / fpcsrc / 3.0.0 / tests / webtbs / tw8810.pp
Size: Mime:
{$ifdef fpc}
{$mode delphi}
{$endif}

{$r+}

CONST MaxBitmaps=129;

TYPE  tbitmap = longint;
      TBack =CLASS
                 constructor create;
                 PRIVATE
                   FBitmaps :ARRAY [0..MaxBitmaps] OF TBitmap;

                 PUBLIC
                   PROPERTY Bitmap :TBitmap READ FBitmaps[0];
                   PROPERTY LightBitmap :TBitmap READ FBitmaps[1];
                   PROPERTY ShadowBitmap:TBitmap READ FBitmaps[2];
            end;

constructor tback.create;
var
  i: longint;
begin
  for i := low(fbitmaps) to high(fbitmaps) do
    fbitmaps[i] := i;
end;

var
  b: tback;
begin
  b:=tback.create;
  if (b.Bitmap <> 0) or
     (b.LightBitmap <> 1) or
     (b.ShadowBitmap <> 2) then
    halt(1);
  b.free;
end.