Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image mapping
#2
TIWImage.OnAsyncMouseDown is the event that you are looking for.

Add an OnAsyncMouseDown event to your image and add this code to it:

Code:
procedure TIWForm1.IWImage1AsyncMouseDown(Sender: TObject; EventParams: TStringList);
var
  x, y: Integer;
begin
  x := imagMap.GetAsyncParam('X', 0);
  y := imagMap.GetAsyncParam('Y', 0);
  WebApplication.ShowMessage('X = ' + IntToStr(x) + ', Y = ' + IntToStr(y));
end;
Reply


Messages In This Thread
Image mapping - by bostjan - 09-16-2020, 11:03 AM
RE: Image mapping - by Alexandre Machado - 09-20-2020, 04:57 AM
RE: Image mapping - by bostjan - 09-20-2020, 10:46 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)