U unba1300 Guest Dec 5, 2013 #1 Is this the way it's supposed to be, or have I missed something? I have six buttons on a panel and thought I could disable all the buttons at once just by disabling the panel. Thanks.
Is this the way it's supposed to be, or have I missed something? I have six buttons on a panel and thought I could disable all the buttons at once just by disabling the panel. Thanks.
LucaMs Expert Licensed User Longtime User Dec 5, 2013 #2 B4X: Sub EnablePanelViews(Pnl As Panel, Enable As Boolean) For Each vw As View In Pnl vw.Enabled = Enable Next End Sub Ciao Upvote 0
B4X: Sub EnablePanelViews(Pnl As Panel, Enable As Boolean) For Each vw As View In Pnl vw.Enabled = Enable Next End Sub Ciao
Erel B4X founder Staff member Licensed User Longtime User Dec 5, 2013 #3 It is better to use Pnl.GetAllViewsRecursive. Upvote 0
LucaMs Expert Licensed User Longtime User Dec 5, 2013 #4 Erel said: It is better to use Pnl.GetAllViewsRecursive. Click to expand... Right!!! (I did not know it, and when I knew ... I forgot it . Also for each ... was not in 1.80) Upvote 0
Erel said: It is better to use Pnl.GetAllViewsRecursive. Click to expand... Right!!! (I did not know it, and when I knew ... I forgot it . Also for each ... was not in 1.80)