Files
lazarus-ccr/components/scrolltext/latest_stable/exampleapp/unit1.pas

55 lines
916 B
ObjectPascal
Raw Normal View History

unit Unit1;
{$mode objfpc}{$H+}
interface
// Both .lrs and .res files can be used.
// Activate the corresponding define for testing.
{$DEFINE LRS_RESOURCE}
{$DEFINE RES_RESOURCE}
uses
Classes, SysUtils, FileUtil, ScrollingText, Forms, Controls, Graphics,
Dialogs, Buttons, StdCtrls, LResources;
type
{ TForm1 }
TForm1 = class(TForm)
BitBtn1: TBitBtn;
Button1: TButton;
ScrollingText1: TScrollingText;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{$IFDEF RES_RESOURCE}
{$R scrolltext.res}
{$ENDIF}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
begin
ScrollingText1.Active:=NOT ScrollingText1.Active;
end;
initialization
{$IFDEF LRS_RESOURCE}
{$I scrolltext.lrs}
{$ENDIF}
end.