Panel enabled

rossati

Active Member
Licensed User
Longtime User
Hello

the property Enabled of panels enable the wiews contained?

John Rossati
 

cjguajardo

Member
Licensed User
Longtime User
In a new update it could be implemented or not??

It could be very helpful when a panel has many child controls.
 
Upvote 0

rossati

Active Member
Licensed User
Longtime User
Thanks to all, in particular to JonPM: in effect whit, view, which is "generic" widget, I can disable/enable all panel’s views.
J.R.
 
Upvote 0

luciano deri

Active Member
Licensed User
Longtime User
Yes, this is an example:
B4X:
For Each V As View In PnScreenCodi.GetAllViewsRecursive
      If OpGestione Then 'disabilito ogni view del pannello del "codice" se sono in gestione
          V.Enabled = False
      Else
           V.Enabled = True
      End If
Next
 
Upvote 0

udg

Expert
Licensed User
Longtime User
Another trick to make the panel and its views "read-only" could be that of superimposing a same-sized transparent panel over it. The latter will consume any eventual touch event so the former behaves like it has been disabled.

udg
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…