Wish Official Custom Views - Visibility.

LucaMs

Expert
Licensed User
Longtime User
Some official custom views do not have fundamental properties, such as Visible, Left, Top, etc.; for example B4XTable.

I know that it is possible to use:
B4X:
B4XTable1.mBase.Visible
but this is not intuitive nor consistent and especially for newcomers to B4X it can be a problem.
Note that CustomListView, for example, does not provide mBase, you have to use:
B4X:
CustomListView1.GetBase

Since it is very easy to add those properties, I think it is appropriate to do it.
 
Last edited:

klaus

Expert
Licensed User
Longtime User
I agree with you, for newcomers it is not easy to distinguish between standard views and CustomViews which have no direct access to the most standard properties like Left, Top and even Width and Height as you report, but more specialized properties which need to get used to them, using the indirect access via mBase.
Even an AddToParent property could be useful for many users instead of the need to have a layout file to add them in the code.
 
Top