In the constructor of TacCustomRoundBtn:
Code:
constructor TacCustomRoundBtn.Create(AOwner: TComponent);
begin
inherited;
FImageIndex := -1;
FImageIndexHot := -1;
FImageIndexPressed := -1;
FPaintOptions := TacPaintButtonOptions.Create;
FPaintOptions.OnInvalidate := Self.DoInvalidate;
FLayout := blGlyphLeft;
FShowCaption := True;
FReflected := False;
FWordWrap := True;
TabStop := True;
end;
These statements are missing:
Code:
FImageIndexDisabled := -1;
FImageIndexSelected::= -1;