Developing cross-platform code is never easy, although B4X is probably the best tool to do it (I'm biased
).
Among the problems, I think the main ones are:
- having to know the "equivalent" views (usually they are declared as B4XView but often then the specific characteristics of the views are used)
- having to know methods, properties and events of the specific views
It would be very useful, formidable, to have an equivalence table for the views and, by clicking on the name of a view, get a list of methods, properties and events related to it.
Something like:
In B4A the Click event exists, but in B4J it is MouseClicked (and I don't know how it is in B4i).
Getting, as I already wrote, the event of all the methods, properties and events of Button would be very useful (even more if you get another equivalence table, this time between the members of the clicked view).
Now I have to find out what events exist in B4i for the view equivalent to the B4A Panel (spending time).
(I could consult the guide for B4i but... it doesn't exist! The guides are made in a particular way, so you are not able to inform yourself about one of the specific "languages").
It would be great if the editor provided the B4XView events. It cannot know in advance what kind of View the B4XView "contains"; it should have a submenu with the list of all the native views existing for the platform you are using.

Among the problems, I think the main ones are:
- having to know the "equivalent" views (usually they are declared as B4XView but often then the specific characteristics of the views are used)
- having to know methods, properties and events of the specific views
It would be very useful, formidable, to have an equivalence table for the views and, by clicking on the name of a view, get a list of methods, properties and events related to it.
Something like:
B4A | B4J | B4i |
EditText | TextField | ? I don't know |
Button | Button | Button (?) |
In B4A the Click event exists, but in B4J it is MouseClicked (and I don't know how it is in B4i).
Getting, as I already wrote, the event of all the methods, properties and events of Button would be very useful (even more if you get another equivalence table, this time between the members of the clicked view).
Now I have to find out what events exist in B4i for the view equivalent to the B4A Panel (spending time).
(I could consult the guide for B4i but... it doesn't exist! The guides are made in a particular way, so you are not able to inform yourself about one of the specific "languages").
It would be great if the editor provided the B4XView events. It cannot know in advance what kind of View the B4XView "contains"; it should have a submenu with the list of all the native views existing for the platform you are using.
Last edited: