mirror of
				https://gitlab.com/freepascal.org/lazarus/lazarus.git
				synced 2025-11-04 05:39:34 +01: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.
 | 
						|
 |