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

📄 frxhibuttons.pas

📁 报表控件。FastReport 是非常强大的报表控件
💻 PAS
字号:

{******************************************}
{                                          }
{             FastReport v3.0              }
{             Hi-color buttons             }
{                                          }
{            Copyright (c) 2004            }
{          by Alexander Fediachov,         }
{             Fast Reports, Inc.           }
{                                          }
{******************************************}

unit frxHiButtons;

interface

{$I frx.inc}

implementation

uses Windows, Classes, SysUtils, Graphics, frxGZip, frxClass, frxRes;

{$R frxHiButtons.res}

var
  bmp: TBitmap;
  stm: TMemoryStream;
  res: TResourceStream;

initialization
  stm := TMemoryStream.Create;
  try
    bmp := TBitmap.Create;
    res := TResourceStream.Create(hInstance, 'HiDesgnButtons', RT_RCDATA);
    try
      stm.Clear;
      frxDecompressStream(res, stm);
      stm.Position := 0;
      bmp.LoadFromStream(stm);
      frxResources.SetButtonImages(bmp, True);
    finally
      bmp.Free;
      res.Free;
    end;

    bmp := TBitmap.Create;
    res := TResourceStream.Create(hInstance, 'HiObjectButtons', RT_RCDATA);
    try
      stm.Clear;
      frxDecompressStream(res, stm);
      stm.Position := 0;
      bmp.LoadFromStream(stm);
      frxResources.SetObjectImages(bmp, True);
    finally
      bmp.Free;
      res.Free;
    end;

    bmp := TBitmap.Create;
    res := TResourceStream.Create(hInstance, 'HiPreviewButtons', RT_RCDATA);
    try
      stm.Clear;
      frxDecompressStream(res, stm);
      stm.Position := 0;
      bmp.LoadFromStream(stm);
      frxResources.SetPreviewButtonImages(bmp, True);
    finally
      bmp.Free;
      res.Free;
    end;

  finally
    stm.Free;
  end

end.


//<censored>

⌨️ 快捷键说明

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