umain.pas 573 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. unit umain;
  2. {$mode objfpc}{$H+}
  3. interface
  4. uses
  5. Classes, SysUtils, Forms, Controls, Graphics, Dialogs, BCImageButton;
  6. type
  7. { TForm1 }
  8. TForm1 = class(TForm)
  9. BCImageButton1: TBCImageButton;
  10. BCImageButton2: TBCImageButton;
  11. procedure FormCreate(Sender: TObject);
  12. private
  13. public
  14. end;
  15. var
  16. Form1: TForm1;
  17. implementation
  18. {$R *.lfm}
  19. { TForm1 }
  20. procedure TForm1.FormCreate(Sender: TObject);
  21. begin
  22. BCImageButton1.LoadFromBitmapResource(BCImageButton1.BitmapFile);
  23. BCImageButton2.LoadFromBitmapResource(BCImageButton2.BitmapFile);
  24. end;
  25. end.