Set sPageControl AnimatEvents at Form Creation

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #70473
    Koushik Halder
    Participant

    I need to sPageControl AnimatEvents at Form Creation. So I have written as:

    procedure TForm1.FormCreate(Sender: TObject);
    begin
      sPageControl1.AnimatEvents := [aeMouseEnter, aeMouseLeave, aeMouseDown, aeLighting];
    end;

    But unable to compile. Getting error as aeMouseEnter, aeMouseLeave, aeMouseDown and aeLighting as undeclared identifier.

    #70480
    Support
    Keymaster

    You should add sConst to the uses clause.
    aeMouseEnter, aeMouseLeave, aeMouseDown and aeLighting are declared in this unit.

    #70496
    Koushik Halder
    Participant

    Thanks for your support. It works perfectly.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Set sPageControl AnimatEvents at Form Creation’ is closed to new replies.