LudwigRS Member Licensed User Longtime User Jan 28, 2013 #1 I spent a lot of time in searches here but did not found an answer to my question : Why are not all the grouped elements on a panel are disabled, when i disable the panel ? I know this funtionality from VB (with frames) and miss it here. At B4A i have do hide the panel or must disable all the elements on the panel each by each programmatically instead of one command panel.enabled = false. Is there a solution for this problem ? If not, pls. add this to your wish list. Thanks. At this place again many thanks to the programmers of B4A. It is easy, stable and allows me to write android programs i never thought, i could do. :sign0098:
I spent a lot of time in searches here but did not found an answer to my question : Why are not all the grouped elements on a panel are disabled, when i disable the panel ? I know this funtionality from VB (with frames) and miss it here. At B4A i have do hide the panel or must disable all the elements on the panel each by each programmatically instead of one command panel.enabled = false. Is there a solution for this problem ? If not, pls. add this to your wish list. Thanks. At this place again many thanks to the programmers of B4A. It is easy, stable and allows me to write android programs i never thought, i could do. :sign0098:
Erel B4X founder Staff member Licensed User Longtime User Jan 29, 2013 #2 This is how the native Android views behave. You can use this code: Code: Copy Sub EnableAll(p As Panel, Enabled As Boolean) For Each v As View In p If v Is Panel Then EnableAll(v, Enabled) Else v.Enabled = Enabled End If Next End Sub
This is how the native Android views behave. You can use this code: Code: Copy Sub EnableAll(p As Panel, Enabled As Boolean) For Each v As View In p If v Is Panel Then EnableAll(v, Enabled) Else v.Enabled = Enabled End If Next End Sub
R Roger Garstang Well-Known Member Licensed User Longtime User Jan 30, 2013 #4 Good ole Recursion. What type of Stack Space limitations does Android/JAVA have if there were thousands of views to process?
Good ole Recursion. What type of Stack Space limitations does Android/JAVA have if there were thousands of views to process?
Erel B4X founder Staff member Licensed User Longtime User Jan 31, 2013 #5 The recursion depth only depends on the number of nested layouts (Panel -> Panel -> ...). It is hard to believe that you will hit any limit with any reasonable layout.
The recursion depth only depends on the number of nested layouts (Panel -> Panel -> ...). It is hard to believe that you will hit any limit with any reasonable layout.