Delphi-Quellcode:
constructor Create(
const AFirst, ASecond: TColor;
const ASteps: TByteVal);
begin
inherited Create(Application);
// ...
end;
// ...
RenderGradient(
{...}, cbPath.Checked);
// <-- no problem
// ...
if cbPath.Checked
then // <-- AV here
Component is added to
DFM.
Please note 2nd error showing another component (which is working before I add check box), not this check box (1st error). All component are created properly (form --> check box --> build --> run --> ok), due I want to
access it in if statement (in function call I used the same propery and no errors).