Gentlefolk,
Environment: Linux Mint 15, lazarus 1.0.14 (installed in /usr/share/lazarus/1.0.14/......)
I have a small program to test the untButtonList object as I require a non-Windows array of buttons.
Compiles clean, run the program, click on the button and the program crashes with a SIGSEV on the 'end' of the Button1Click event code with the following error message:
Unable to load file "/home/mattias/tmp/lazarus1.0.14/lazarus_build/usr/share/lazarus/1.0.14/lcl/include/control.inc".
It looks like some residual code/file-path somewhere down inside. Any suggestions, Ian.
Code is:
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
untButtonList;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
TheButs : TCustomButtonList;
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
var
Testa : tStringList;
begin
Testa := tStringList.Create;
Testa.Add('iru');
TheButs := tCustomButtonList.Create(Self);
TheButs.Captions := Testa;
TheButs.Parent := Form1;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
//
end;
end.