SNOUHyhQs2 Member Licensed User Longtime User Nov 27, 2016 #1 Not sure if how many users here know Application in b4a. hehe.. i wish for a new property for Application object. Code: Copy 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). Code: Copy .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)
Not sure if how many users here know Application in b4a. hehe.. i wish for a new property for Application object. Code: Copy 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). Code: Copy .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 Nov 27, 2016 #2 SNOUHyhQs2 said: So instead of using something like panel.GetView(index) to get the view Click to expand... You should almost never need to use Panel.GetView. Add global variables with the correct names and they will point to the correct views. SNOUHyhQs2 said: i wish for a new property for Application object. Click to expand... It will be added.
SNOUHyhQs2 said: So instead of using something like panel.GetView(index) to get the view Click to expand... You should almost never need to use Panel.GetView. Add global variables with the correct names and they will point to the correct views. SNOUHyhQs2 said: i wish for a new property for Application object. Click to expand... It will be added.
SNOUHyhQs2 Member Licensed User Longtime User Nov 27, 2016 #3 Erel said: You should almost never need to use Panel.GetView. Add global variables with the correct names and they will point to the correct views. Click to expand... actually im not using GetView. Im just requesting the implementation of those as it might come in handy in library development.
Erel said: You should almost never need to use Panel.GetView. Add global variables with the correct names and they will point to the correct views. Click to expand... actually im not using GetView. Im just requesting the implementation of those as it might come in handy in library development.