Recent

Author Topic: LAMW: changed a few events signature  (Read 767 times)

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
LAMW: changed a few events signature
« on: December 18, 2020, 07:35:39 pm »
Hi, All!

LAMW changed/fixed/improved a few events [properties] signature [by @ADiV]

Fact: the compile don't like not used parameters... and point up many many  warnings/hints...

Example:

old signature:
Code: Pascal  [Select][+][-]
  1.  procedure Java_Event_pOnUp(env: PJNIEnv; this: jobject; Obj: TObject; Value: integer);
  2.  

new signature:
Code: Pascal  [Select][+][-]
  1.  procedure Java_Event_pOnUp(env: PJNIEnv; this: jobject; Obj: TObject);
  2.  

if you get any error, please, use the IDE Object Inspector to generate the new event [properties] signature!

Thanks do @ADiV!
« Last Edit: December 18, 2020, 07:50:53 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Manlio

  • Full Member
  • ***
  • Posts: 162
  • Pascal dev
Re: LAMW: changed a few events signature
« Reply #1 on: January 15, 2021, 09:48:15 am »
I think I found 2 bugs caused by the new events signatures.

In these 2 java files, methods are called using the old signature:

jToolbar.java
line 50: controls.pOnClickGeneric(pascalObj, Const.Click_Default);
It should become: controls.pOnClickGeneric(pascalObj);

And the same thing here:

jSearchView.java
line 61: controls.pOnClickGeneric(pascalObj, Const.Click_Default);
It should become: controls.pOnClickGeneric(pascalObj);

manlio mazzon gmail

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW: changed a few events signature
« Reply #2 on: January 15, 2021, 02:13:46 pm »

Quote
In these 2 java files, methods are called using the old signature....

Fixed!!!

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

 

TinyPortal © 2005-2018