I have a ScrollView with many views on it, if EnabledAll is called with FALSE, then almost all views are disabled, except Spinners, they grey out, but still can be opened and clicked....
How to make Spinners unusable also....
sub EnableAll(p As Panel, Enabled As Boolean)
For Each v As View In p
v.enabled = Enabled
Next
End Sub
Sub module_ItemClick(Position As Int, Value As Object)
If(Position == 0) Then
EnableAll(ScrollView1.Panel, False)
Else
EnableAll(ScrollView1.Panel, True)
End If
End Sub
How to make Spinners unusable also....
sub EnableAll(p As Panel, Enabled As Boolean)
For Each v As View In p
v.enabled = Enabled
Next
End Sub
Sub module_ItemClick(Position As Int, Value As Object)
If(Position == 0) Then
EnableAll(ScrollView1.Panel, False)
Else
EnableAll(ScrollView1.Panel, True)
End If
End Sub