Hi, I have a problem. I have declared a class that extends TButton:
TVisualCell= class(TButton)
private
f, c: integer;
public
constructor Crear(f, c: integer);
end;
Next, y create a new instance of this class in a variable called
myButton in the
FormCreate procedure of an
TForm component:
MyButton:= TVisualCell.Crear(i,j);
MyButton.Parent:= Self;
So, Lazarus thows a SIGSEV error when I try to access TButton properties. ¿Why I can´t use a custom TButtom inheritance?
I want to have some new atributes on my buttons, but it wont´t work.
Thanks for your help.