VERY IMPORTANT work for Erel

LucaMs

Expert
Licensed User
Longtime User
A ScrollPane member:

1739031744872.png


What is it for? What does it do? A description, even of the parameters, would be useful and I would say necessary.

There are many members, too many members of many classes that do not have good contextual help.
I am probably wrong but this can also affect the diffusion of B4X.

Another thing. Often Erel, I would say because of haste, declares public variables to be used as if they were properties, instead of writing the set-get of the property. In these cases you will never have a contextual help and you will not know what that "property" is for.
 

stevel05

Expert
Licensed User
Longtime User
As the name is lower case, and requires objects that we don't have direct access to (java.util.HashMap) I would say that is an internal method and shouldn't be used.
 
Last edited:

LucaMs

Expert
Licensed User
Longtime User
diffusion of B4X
In this regard (I'm not opening a new thread, Erel replied here so he will receive a notification of this post).

Let's say I just landed on this site. My intention is to develop only Android apps (or only iOS).
I see the menu LEARN and the submenu GUIDES; I open this last page:

1739058930711.png


I am almost certain that the documentation is made that way so that it is understood how cross-platform B4X is.
I am equally certain, even more so, that a new member would want to find a specific guide for each platform, he would like to find:

B4A Guide - Android
B4i Guide - iOS
B4J Guide - Desktop applications

Inside these he would find references to the other general guides.
_____________________________________________________________________________________________________________________________________________________

Now I'm going to make you have fun 😁 :confused:


Almost just for fun, I wanted to start developing a custom view, a particular TreeView.
I would like it to be cross-platform, but given some problems, I started the B4J version, using ScrollPane.

With the help of ChatGPT, I managed to generate about half a million versions of this class 😁, in each of them ONE child node ended up in the wrong position, at the top, as if it were the Root node.

So I wanted to see how stupid I am and how I did not understand how ScrollPane and B4J work, and I created a new small project just to test ScrollPane. Amazing :oops:: in just two minutes I managed to fill it with nodes, in the right positions and even with different heights.

Well, despite 10,000 lines of log, which confirm the creation of the nodes, that they are visible, their Left, Top, Width and Height...
now... the custom view appears as if it were empty!

THE END

(Obviously I'm not asking you here what the reason might be; also because it... doesn't exist 😄:mad:).

Actually no, this story is not over. I opened the B4X Graphics booklet (which is "cross-platform" it too), I searched for ScollPane and found... zero references.
 
Last edited:
Top