mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 04:13:43 +02:00
53 lines
985 B
ObjectPascal
53 lines
985 B
ObjectPascal
{ ToDo: move to lazcontrols }
|
|
unit GenericCheckList;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ButtonPanel,
|
|
StdCtrls, CheckLst, LazarusIDEStrConsts, Buttons;
|
|
|
|
type
|
|
|
|
{ TGenericCheckListForm }
|
|
|
|
TGenericCheckListForm = class(TForm)
|
|
ButtonPanel1: TButtonPanel;
|
|
CheckListBox1: TCheckListBox;
|
|
procedure FormCreate(Sender: TObject);
|
|
private
|
|
|
|
public
|
|
|
|
end;
|
|
|
|
var
|
|
GenericCheckListForm: TGenericCheckListForm;
|
|
|
|
implementation
|
|
|
|
{$R *.lfm}
|
|
|
|
{ TGenericCheckListForm }
|
|
|
|
procedure TGenericCheckListForm.FormCreate(Sender: TObject);
|
|
var
|
|
BitButtonYes: TBitBtn;
|
|
begin
|
|
ButtonPanel1.OKButton.Caption:=lisOk;
|
|
ButtonPanel1.CancelButton.Caption:=dlgCancel;
|
|
|
|
// save and compile
|
|
BitButtonYes:=TBitBtn.Create(ButtonPanel1);
|
|
BitButtonYes.Kind:=bkCustom;
|
|
BitButtonYes.ModalResult:=mrYes;
|
|
BitButtonYes.Caption:=lisLazBuildBuild;
|
|
BitButtonYes.Align:=alRight;
|
|
BitButtonYes.Parent:=ButtonPanel1;
|
|
end;
|
|
|
|
end.
|
|
|