Wish new property for application, view identifiers

SNOUHyhQs2

Member
Licensed User
Longtime User
Not sure if how many users here know Application in b4a. hehe..

i wish for a new property for Application object.
B4X:
Application.Icon (readonly) - returns the application icon (bitmap) for easy access.

Also, implement get/set property for the ID (Identifier) for ALL existing views (button, listview, imageview, viewwrappers, etc).

B4X:
.setId(int id) - set view id
.getId - returns view id
.findViewById(int id) - returns Object/View
.findViewWithTag(Object tag) - returns Object/View

So instead of using something like panel.GetView(index) to get the view, we can just use panel.findViewById(id) or panel.findViewWithTag(tag)
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
So instead of using something like panel.GetView(index) to get the view
You should almost never need to use Panel.GetView.
Add global variables with the correct names and they will point to the correct views.

i wish for a new property for Application object.
It will be added.
 

SNOUHyhQs2

Member
Licensed User
Longtime User
You should almost never need to use Panel.GetView.
Add global variables with the correct names and they will point to the correct views.

actually im not using GetView.

Im just requesting the implementation of those as it might come in handy in library development.
 
Top