Recent

Author Topic: jImageButton OnClick event doesn't work  (Read 884 times)

dseligo

  • Hero Member
  • *****
  • Posts: 1408
jImageButton OnClick event doesn't work
« on: July 10, 2024, 10:51:58 am »
To fix it: in laz_and_controls_events.pas (fpc-lazarus\ccr\lamw\android_bridges) add in uses:
Code: Pascal  [Select][+][-]
  1. imagebutton

and at the end of Java_Event_pOnClickGeneric procedure:
Code: Pascal  [Select][+][-]
  1.   if Obj is jImageButton then
  2.   begin
  3.     jImageButton(Obj).GenEvent_OnClick(Obj);
  4.     Exit;
  5.   end;

jmpessoa

  • Hero Member
  • *****
  • Posts: 2317
Re: jImageButton OnClick event doesn't work
« Reply #1 on: July 13, 2024, 07:24:21 pm »

Fixed!

Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018