mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-27 17:34:55 +02:00
52 lines
969 B
ObjectPascal
52 lines
969 B
ObjectPascal
{ ToDo: move to lazcontrols }
|
|
unit GenericCheckList;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ButtonPanel, 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:=lisMenuOk;
|
|
ButtonPanel1.CancelButton.Caption:=lisCancel;
|
|
|
|
// save and compile
|
|
BitButtonYes:=TBitBtn.Create(ButtonPanel1);
|
|
BitButtonYes.Kind:=bkCustom;
|
|
BitButtonYes.ModalResult:=mrYes;
|
|
BitButtonYes.Caption:=lisBuild;
|
|
BitButtonYes.Align:=alRight;
|
|
BitButtonYes.Parent:=ButtonPanel1;
|
|
end;
|
|
|
|
end.
|
|
|