Wish [Tool] b4xlib - XML generation Add Events

klaus

Expert
Licensed User
Longtime User
Hi Erel,
In the b4xlib2XML tool, the events generated by the b4xlib are not included.
Can you please add those.

Thank you in advance:

Example from the xGauges b4xlib:
Currently:
B4X:
<name>xGauges</name>
<shortname>xGauges</shortname>
<method>
      <name>Initialize</name>

Future:
B4X:
<name>xGauges</name>
<shortname>xGauges</shortname>
<event>Click</event>
<event>LongClick</event>
<method>
      <name>Initialize</name>
 

klaus

Expert
Licensed User
Longtime User
Hi Erel,
Can you please add also the signature for the events.
Example: xClsLimitBar from the CustomViews Booklet.
Generated as a product specific library with Compile To Library:
<class>
<name>b4j.xLimitBar.xlimitbar</name>
<shortname>xLimitBar</shortname>
<event>ValuesChanged(LimitLeft As Int, LimitRight As Int)</event>


Generated with b4xToXML:
<class>
<name>xLimitBar</name>
<shortname>xLimitBar</shortname>
<event>ValuesChanged</event>


Another question:
When the xml file is generated with Compile To Library, the name is: <name>b4j.xLimitBar.xlimitbar</name>.
Why does it include b4j.xLimitBar, which is the package name in BuildConfiguration?
I had seen sometimes in the Logs: Cannot find xxx use yyy, don't remember the exact message.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
My mistake. I forgot that the parameters should be included there. Will update it.

Why does it include b4j.xLimitBar, which is the package name in BuildConfiguration?
Compiled classes always include the package. This is a different behavior than b4xlibs which are being compiled with the current project package.
 
Top