Skip to content

Instantly share code, notes, and snippets.

@tondrej
Last active April 1, 2018 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tondrej/242514392b99164b9b140b1ae202ee69 to your computer and use it in GitHub Desktop.
Save tondrej/242514392b99164b9b140b1ae202ee69 to your computer and use it in GitHub Desktop.
Lazarus Qt5 test project
unit Unit1;
{$mode objfpc}{$H+}
{$macro on}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls, ExtCtrls;
type
TForm1 = class(TForm)
Image1: TImage;
LabelFpcVersion: TLabel;
LabelLclVersion: TLabel;
LabelLclWidgetset: TLabel;
procedure FormCreate(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
uses
LCLVersion, InterfaceBase, LCLPlatformDef;
{ TForm1 }
procedure TForm1.FormCreate(Sender: TObject);
begin
Caption := Application.Title;
Font.Size := 11;
LabelFpcVersion.Caption := Format('Free Pascal version: %d.%d.%d for %s-%s', [FPC_VERSION, FPC_RELEASE, FPC_PATCH,
lowercase({$i %FPCTARGETOS%}), lowercase({$i %FPCTARGETCPU%})]);
LabelLclVersion.Caption := Format('LCL version: %s', [lcl_version]);
LabelLclWidgetset.Caption := Format('LCL widgetset: %s', [LCLPlatformDisplayNames[WidgetSet.LCLPlatform]]);
end;
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment