Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add callback function in demo picture wall #58

Open
kabiri opened this issue Feb 11, 2021 · 0 comments
Open

add callback function in demo picture wall #58

kabiri opened this issue Feb 11, 2021 · 0 comments

Comments

@kabiri
Copy link

kabiri commented Feb 11, 2021

i add callback function to demo picturewall

property OnClickResult: TProc<Boolean> read FOnClickResult write FOnClickResult;

and use it in main form

  LInfo.Frame.PositionIndex := LIndex;
  LInfo.Show;
  LInfo.Frame.OnClickResult:=
    procedure (aResult : Boolean)
    begin
     if aResult then
     begin
      response:=LInfo.Frame.PositionIndex;
      showmessage(inttostr(response));
     end;
    end;

when i click on picture LInfo.Frame.PositionIndex is last number of PositionIndex
PictureWall.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant